Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1371718 > unrolled thread
| Started by | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| First post | 2016-04-05 17:30 +0200 |
| Last post | 2016-04-06 04:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH net-next] net: dsa: document missing functions Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-04-05 17:30 +0200
Re: [PATCH net-next] net: dsa: document missing functions Andrew Lunn <andrew@lunn.ch> - 2016-04-06 01:50 +0200
Re: [PATCH net-next] net: dsa: document missing functions Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-04-06 04:10 +0200
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Date | 2016-04-05 17:30 +0200 |
| Subject | [PATCH net-next] net: dsa: document missing functions |
| Message-ID | <rkB5w-5V6-17@gated-at.bofh.it> |
Add description for the missing port_vlan_prepare, port_fdb_prepare, port_fdb_dump functions in the DSA documentation. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> --- Documentation/networking/dsa/dsa.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt index 3b196c3..8ba3369 100644 --- a/Documentation/networking/dsa/dsa.txt +++ b/Documentation/networking/dsa/dsa.txt @@ -542,6 +542,12 @@ Bridge layer Bridge VLAN filtering --------------------- +- port_vlan_prepare: bridge layer function invoked when the bridge prepares the + configuration of a VLAN on the given port. If the operation is not + programmable, this function should return -EOPNOTSUPP to inform the bridge + code to fallback to a software implementation. No hardware programmation + must be done in this function. See port_vlan_add for this and details. + - port_vlan_add: bridge layer function invoked when a VLAN is configured (tagged or untagged) for the given switch port @@ -552,6 +558,12 @@ Bridge VLAN filtering function that the driver has to call for each VLAN the given port is a member of. A switchdev object is used to carry the VID and bridge flags. +- port_fdb_prepare: bridge layer function invoked when the bridge prepares the + installation of a Forwarding Database entry. If the operation is not + programmable, this function should return -EOPNOTSUPP to inform the bridge + code to fallback to a software implementation. No hardware programmation + must be done in this function. See port_fdb_add for this and details. + - port_fdb_add: bridge layer function invoked when the bridge wants to install a Forwarding Database entry, the switch hardware should be programmed with the specified address in the specified VLAN Id in the forwarding database @@ -565,6 +577,10 @@ of DSA, would be the its port-based VLAN, used by the associated bridge device. the specified MAC address from the specified VLAN ID if it was mapped into this port forwarding database +- port_fdb_dump: bridge layer function invoked with a switchdev callback + function that the driver has to call for each MAC address known to be behind + the given port. A switchdev object is used to carry the VID and FDB info. + TODO ==== -- 2.8.0
[toc] | [next] | [standalone]
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Date | 2016-04-06 01:50 +0200 |
| Message-ID | <rkITo-3fK-13@gated-at.bofh.it> |
| In reply to | #1371718 |
On Tue, Apr 05, 2016 at 11:22:40AM -0400, Vivien Didelot wrote: > Add description for the missing port_vlan_prepare, port_fdb_prepare, > port_fdb_dump functions in the DSA documentation. > > Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Hi Vivien A few English improvements: > --- > Documentation/networking/dsa/dsa.txt | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt > index 3b196c3..8ba3369 100644 > --- a/Documentation/networking/dsa/dsa.txt > +++ b/Documentation/networking/dsa/dsa.txt > @@ -542,6 +542,12 @@ Bridge layer > Bridge VLAN filtering > --------------------- > > +- port_vlan_prepare: bridge layer function invoked when the bridge prepares the > + configuration of a VLAN on the given port. If the operation is not > + programmable, this function should return -EOPNOTSUPP to inform the bridge s/programmable/supported by the hardware > + code to fallback to a software implementation. No hardware programmation s/programmation/setup > + must be done in this function. See port_vlan_add for this and details. > + > - port_vlan_add: bridge layer function invoked when a VLAN is configured > (tagged or untagged) for the given switch port > > @@ -552,6 +558,12 @@ Bridge VLAN filtering > function that the driver has to call for each VLAN the given port is a member > of. A switchdev object is used to carry the VID and bridge flags. > > +- port_fdb_prepare: bridge layer function invoked when the bridge prepares the > + installation of a Forwarding Database entry. If the operation is not > + programmable, this function should return -EOPNOTSUPP to inform the bridge s/programmable/supported > + code to fallback to a software implementation. No hardware programmation s/programmation/setup Andrew
[toc] | [prev] | [next] | [standalone]
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Date | 2016-04-06 04:10 +0200 |
| Message-ID | <rkL4S-54d-27@gated-at.bofh.it> |
| In reply to | #1372070 |
Hi Andrew, Andrew Lunn <andrew@lunn.ch> writes: > On Tue, Apr 05, 2016 at 11:22:40AM -0400, Vivien Didelot wrote: >> Add description for the missing port_vlan_prepare, port_fdb_prepare, >> port_fdb_dump functions in the DSA documentation. >> >> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> > > Hi Vivien > > A few English improvements: > >> --- >> Documentation/networking/dsa/dsa.txt | 16 ++++++++++++++++ >> 1 file changed, 16 insertions(+) >> >> diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt >> index 3b196c3..8ba3369 100644 >> --- a/Documentation/networking/dsa/dsa.txt >> +++ b/Documentation/networking/dsa/dsa.txt >> @@ -542,6 +542,12 @@ Bridge layer >> Bridge VLAN filtering >> --------------------- >> >> +- port_vlan_prepare: bridge layer function invoked when the bridge prepares the >> + configuration of a VLAN on the given port. If the operation is not >> + programmable, this function should return -EOPNOTSUPP to inform the bridge > > s/programmable/supported by the hardware > >> + code to fallback to a software implementation. No hardware programmation > > s/programmation/setup > >> + must be done in this function. See port_vlan_add for this and details. >> + >> - port_vlan_add: bridge layer function invoked when a VLAN is configured >> (tagged or untagged) for the given switch port >> >> @@ -552,6 +558,12 @@ Bridge VLAN filtering >> function that the driver has to call for each VLAN the given port is a member >> of. A switchdev object is used to carry the VID and bridge flags. >> >> +- port_fdb_prepare: bridge layer function invoked when the bridge prepares the >> + installation of a Forwarding Database entry. If the operation is not >> + programmable, this function should return -EOPNOTSUPP to inform the bridge > > s/programmable/supported > >> + code to fallback to a software implementation. No hardware programmation > > s/programmation/setup Done, v2 on its way. Thanks, Vivien
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web