* [PATCH net 0/3] Documentation: dsa: misc fixes
@ 2016-05-24 4:32 Florian Fainelli
2016-05-24 4:32 ` [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description Florian Fainelli
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Florian Fainelli @ 2016-05-24 4:32 UTC (permalink / raw)
To: netdev; +Cc: davem, vivien.didelot, andrew, Florian Fainelli
Hi David,
Here are some miscelaneous documentation fixes for DSA, I targeted "net"
because these are not functional code changes, but still documentation fixes
per-se.
Florian Fainelli (3):
Documentation: networking: dsa: Remove poll_link description
Documentation: networking: dsa: Remove priv_size description
Documentation: networking: dsa: Describe port_vlan_filtering
Documentation/networking/dsa/dsa.txt | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description
2016-05-24 4:32 [PATCH net 0/3] Documentation: dsa: misc fixes Florian Fainelli
@ 2016-05-24 4:32 ` Florian Fainelli
2016-05-24 14:16 ` Vivien Didelot
2016-05-24 4:32 ` [PATCH net 2/3] Documentation: networking: dsa: Remove priv_size description Florian Fainelli
2016-05-24 4:32 ` [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering Florian Fainelli
2 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2016-05-24 4:32 UTC (permalink / raw)
To: netdev; +Cc: davem, vivien.didelot, andrew, Florian Fainelli
This function has been removed in 4baee937b8d5 ("net: dsa: remove DSA
link polling") in favor of using the PHYLIB polling mechanism.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
Documentation/networking/dsa/dsa.txt | 5 -----
1 file changed, 5 deletions(-)
diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt
index 631b0f7ae16f..8303eb8ced79 100644
--- a/Documentation/networking/dsa/dsa.txt
+++ b/Documentation/networking/dsa/dsa.txt
@@ -416,11 +416,6 @@ PHY devices and link management
to the switch port MDIO registers. If unavailable return a negative error
code.
-- poll_link: Function invoked by DSA to query the link state of the switch
- builtin Ethernet PHYs, per port. This function is responsible for calling
- netif_carrier_{on,off} when appropriate, and can be used to poll all ports in a
- single call. Executes from workqueue context.
-
- adjust_link: Function invoked by the PHY library when a slave network device
is attached to a PHY device. This function is responsible for appropriately
configuring the switch port link parameters: speed, duplex, pause based on
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH net 2/3] Documentation: networking: dsa: Remove priv_size description
2016-05-24 4:32 [PATCH net 0/3] Documentation: dsa: misc fixes Florian Fainelli
2016-05-24 4:32 ` [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description Florian Fainelli
@ 2016-05-24 4:32 ` Florian Fainelli
2016-05-24 14:17 ` Vivien Didelot
2016-05-24 4:32 ` [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering Florian Fainelli
2 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2016-05-24 4:32 UTC (permalink / raw)
To: netdev; +Cc: davem, vivien.didelot, andrew, Florian Fainelli
We no longer have a priv_size structure member since 5feebd0a8a79 ("net:
dsa: Remove allocation of driver private memory")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
Documentation/networking/dsa/dsa.txt | 2 --
1 file changed, 2 deletions(-)
diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt
index 8303eb8ced79..411b57fd73aa 100644
--- a/Documentation/networking/dsa/dsa.txt
+++ b/Documentation/networking/dsa/dsa.txt
@@ -369,8 +369,6 @@ does not allocate any driver private context space.
Switch configuration
--------------------
-- priv_size: additional size needed by the switch driver for its private context
-
- tag_protocol: this is to indicate what kind of tagging protocol is supported,
should be a valid value from the dsa_tag_protocol enum
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering
2016-05-24 4:32 [PATCH net 0/3] Documentation: dsa: misc fixes Florian Fainelli
2016-05-24 4:32 ` [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description Florian Fainelli
2016-05-24 4:32 ` [PATCH net 2/3] Documentation: networking: dsa: Remove priv_size description Florian Fainelli
@ 2016-05-24 4:32 ` Florian Fainelli
2016-05-24 14:32 ` Vivien Didelot
2 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2016-05-24 4:32 UTC (permalink / raw)
To: netdev; +Cc: davem, vivien.didelot, andrew, Florian Fainelli
Described what the port_vlan_filtering function is supposed to
accomplish.
Fixes: fb2dabad69f0 ("net: dsa: support VLAN filtering switchdev attr")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
Documentation/networking/dsa/dsa.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt
index 411b57fd73aa..a42fd2ec32a5 100644
--- a/Documentation/networking/dsa/dsa.txt
+++ b/Documentation/networking/dsa/dsa.txt
@@ -535,6 +535,12 @@ Bridge layer
Bridge VLAN filtering
---------------------
+- port_vlan_filtering: bridge layer function invoked when the bridge gets
+ configured for turning on or off VLAN filtering. If nothing specific needs to
+ be done at the hardware level, 0 must be returned. When VLAN filtering is
+ turned on, the hardware must be programmed with rejecting non-802.1Q frames,
+ when turned off the switch must accept any 802.1Q frames.
+
- 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 supported
by the hardware, this function should return -EOPNOTSUPP to inform the bridge
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description
2016-05-24 4:32 ` [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description Florian Fainelli
@ 2016-05-24 14:16 ` Vivien Didelot
0 siblings, 0 replies; 8+ messages in thread
From: Vivien Didelot @ 2016-05-24 14:16 UTC (permalink / raw)
To: Florian Fainelli, netdev; +Cc: davem, andrew, Florian Fainelli
Florian Fainelli <f.fainelli@gmail.com> writes:
> This function has been removed in 4baee937b8d5 ("net: dsa: remove DSA
> link polling") in favor of using the PHYLIB polling mechanism.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net 2/3] Documentation: networking: dsa: Remove priv_size description
2016-05-24 4:32 ` [PATCH net 2/3] Documentation: networking: dsa: Remove priv_size description Florian Fainelli
@ 2016-05-24 14:17 ` Vivien Didelot
0 siblings, 0 replies; 8+ messages in thread
From: Vivien Didelot @ 2016-05-24 14:17 UTC (permalink / raw)
To: Florian Fainelli, netdev; +Cc: davem, andrew, Florian Fainelli
Florian Fainelli <f.fainelli@gmail.com> writes:
> We no longer have a priv_size structure member since 5feebd0a8a79 ("net:
> dsa: Remove allocation of driver private memory")
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering
2016-05-24 4:32 ` [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering Florian Fainelli
@ 2016-05-24 14:32 ` Vivien Didelot
2016-05-24 15:09 ` Ido Schimmel
0 siblings, 1 reply; 8+ messages in thread
From: Vivien Didelot @ 2016-05-24 14:32 UTC (permalink / raw)
To: Florian Fainelli, netdev; +Cc: davem, andrew, Florian Fainelli
Hi Florian,
Florian Fainelli <f.fainelli@gmail.com> writes:
> Described what the port_vlan_filtering function is supposed to
> accomplish.
>
> Fixes: fb2dabad69f0 ("net: dsa: support VLAN filtering switchdev attr")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Documentation/networking/dsa/dsa.txt | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt
> index 411b57fd73aa..a42fd2ec32a5 100644
> --- a/Documentation/networking/dsa/dsa.txt
> +++ b/Documentation/networking/dsa/dsa.txt
> @@ -535,6 +535,12 @@ Bridge layer
> Bridge VLAN filtering
> ---------------------
>
> +- port_vlan_filtering: bridge layer function invoked when the bridge gets
> + configured for turning on or off VLAN filtering. If nothing specific needs to
> + be done at the hardware level, 0 must be returned. When VLAN filtering is
> + turned on, the hardware must be programmed with rejecting non-802.1Q frames,
> + when turned off the switch must accept any 802.1Q frames.
Note that port_vlan_filtering is optional so a driver don't need to
implement it if nothing specific needs to be done at the hardware level.
Also I'd think that with VLAN filtering on, the hardware must not reject
untagged frames, only 802.1Q frames which don't respect the programmed
VLAN rules.
Thanks,
Vivien
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering
2016-05-24 14:32 ` Vivien Didelot
@ 2016-05-24 15:09 ` Ido Schimmel
0 siblings, 0 replies; 8+ messages in thread
From: Ido Schimmel @ 2016-05-24 15:09 UTC (permalink / raw)
To: Vivien Didelot; +Cc: Florian Fainelli, netdev, davem, andrew
Hi Vivien, Florian,
Tue, May 24, 2016 at 05:32:33PM IDT, vivien.didelot@savoirfairelinux.com wrote:
>Hi Florian,
>
>Florian Fainelli <f.fainelli@gmail.com> writes:
>
>> Described what the port_vlan_filtering function is supposed to
>> accomplish.
>>
>> Fixes: fb2dabad69f0 ("net: dsa: support VLAN filtering switchdev attr")
>> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
>> ---
>> Documentation/networking/dsa/dsa.txt | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/dsa.txt
>> index 411b57fd73aa..a42fd2ec32a5 100644
>> --- a/Documentation/networking/dsa/dsa.txt
>> +++ b/Documentation/networking/dsa/dsa.txt
>> @@ -535,6 +535,12 @@ Bridge layer
>> Bridge VLAN filtering
>> ---------------------
>>
>> +- port_vlan_filtering: bridge layer function invoked when the bridge gets
>> + configured for turning on or off VLAN filtering. If nothing specific needs to
>> + be done at the hardware level, 0 must be returned. When VLAN filtering is
>> + turned on, the hardware must be programmed with rejecting non-802.1Q frames,
>> + when turned off the switch must accept any 802.1Q frames.
>
>Note that port_vlan_filtering is optional so a driver don't need to
>implement it if nothing specific needs to be done at the hardware level.
>
>Also I'd think that with VLAN filtering on, the hardware must not reject
>untagged frames, only 802.1Q frames which don't respect the programmed
>VLAN rules.
With VLAN filtering on I believe you only need to reject untagged frames
when there's no PVID on the port. See __allowed_ingress() in
net/bridge/br_vlan.c
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-05-24 15:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 4:32 [PATCH net 0/3] Documentation: dsa: misc fixes Florian Fainelli
2016-05-24 4:32 ` [PATCH net 1/3] Documentation: networking: dsa: Remove poll_link description Florian Fainelli
2016-05-24 14:16 ` Vivien Didelot
2016-05-24 4:32 ` [PATCH net 2/3] Documentation: networking: dsa: Remove priv_size description Florian Fainelli
2016-05-24 14:17 ` Vivien Didelot
2016-05-24 4:32 ` [PATCH net 3/3] Documentation: networking: dsa: Describe port_vlan_filtering Florian Fainelli
2016-05-24 14:32 ` Vivien Didelot
2016-05-24 15:09 ` Ido Schimmel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).