net: dsa: don't enumerate dsa_switch and dsa_port bit fields using commas
This is a cosmetic incremental fixup to commits7787ff7763("net: dsa: merge all bools of struct dsa_switch into a single u32")bde82f389a("net: dsa: merge all bools of struct dsa_port into a single u8") The desire to make this change was enunciated after posting these patches here: https://patchwork.kernel.org/project/netdevbpf/cover/20220105132141.2648876-1-vladimir.oltean@nxp.com/ but due to a slight timing overlap (message posted at 2:28 p.m. UTC, merge commit is at 2:46 p.m. UTC), that comment was missed and the changes were applied as-is. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
af8c6db197
commit
63cfc65753
@@ -265,14 +265,16 @@ struct dsa_port {
|
|||||||
|
|
||||||
u8 stp_state;
|
u8 stp_state;
|
||||||
|
|
||||||
u8 vlan_filtering:1,
|
u8 vlan_filtering:1;
|
||||||
/* Managed by DSA on user ports and by
|
|
||||||
* drivers on CPU and DSA ports
|
/* Managed by DSA on user ports and by drivers on CPU and DSA ports */
|
||||||
*/
|
u8 learning:1;
|
||||||
learning:1,
|
|
||||||
lag_tx_enabled:1,
|
u8 lag_tx_enabled:1;
|
||||||
devlink_port_setup:1,
|
|
||||||
setup:1;
|
u8 devlink_port_setup:1;
|
||||||
|
|
||||||
|
u8 setup:1;
|
||||||
|
|
||||||
struct device_node *dn;
|
struct device_node *dn;
|
||||||
unsigned int ageing_time;
|
unsigned int ageing_time;
|
||||||
@@ -331,56 +333,52 @@ struct dsa_switch {
|
|||||||
struct dsa_switch_tree *dst;
|
struct dsa_switch_tree *dst;
|
||||||
unsigned int index;
|
unsigned int index;
|
||||||
|
|
||||||
u32 setup:1,
|
u32 setup:1;
|
||||||
/* Disallow bridge core from requesting
|
|
||||||
* different VLAN awareness settings on ports
|
/* Disallow bridge core from requesting different VLAN awareness
|
||||||
* if not hardware-supported
|
* settings on ports if not hardware-supported
|
||||||
*/
|
*/
|
||||||
vlan_filtering_is_global:1,
|
u32 vlan_filtering_is_global:1;
|
||||||
/* Keep VLAN filtering enabled on ports not
|
|
||||||
* offloading any upper
|
/* Keep VLAN filtering enabled on ports not offloading any upper */
|
||||||
*/
|
u32 needs_standalone_vlan_filtering:1;
|
||||||
needs_standalone_vlan_filtering:1,
|
|
||||||
/* Pass .port_vlan_add and .port_vlan_del to
|
/* Pass .port_vlan_add and .port_vlan_del to drivers even for bridges
|
||||||
* drivers even for bridges that have
|
* that have vlan_filtering=0. All drivers should ideally set this (and
|
||||||
* vlan_filtering=0. All drivers should ideally
|
* then the option would get removed), but it is unknown whether this
|
||||||
* set this (and then the option would get
|
* would break things or not.
|
||||||
* removed), but it is unknown whether this
|
*/
|
||||||
* would break things or not.
|
u32 configure_vlan_while_not_filtering:1;
|
||||||
*/
|
|
||||||
configure_vlan_while_not_filtering:1,
|
/* If the switch driver always programs the CPU port as egress tagged
|
||||||
/* If the switch driver always programs the CPU
|
* despite the VLAN configuration indicating otherwise, then setting
|
||||||
* port as egress tagged despite the VLAN
|
* @untag_bridge_pvid will force the DSA receive path to pop the
|
||||||
* configuration indicating otherwise, then
|
* bridge's default_pvid VLAN tagged frames to offer a consistent
|
||||||
* setting @untag_bridge_pvid will force the
|
* behavior between a vlan_filtering=0 and vlan_filtering=1 bridge
|
||||||
* DSA receive path to pop the bridge's
|
* device.
|
||||||
* default_pvid VLAN tagged frames to offer a
|
*/
|
||||||
* consistent behavior between a
|
u32 untag_bridge_pvid:1;
|
||||||
* vlan_filtering=0 and vlan_filtering=1 bridge
|
|
||||||
* device.
|
/* Let DSA manage the FDB entries towards the
|
||||||
*/
|
* CPU, based on the software bridge database.
|
||||||
untag_bridge_pvid:1,
|
*/
|
||||||
/* Let DSA manage the FDB entries towards the
|
u32 assisted_learning_on_cpu_port:1;
|
||||||
* CPU, based on the software bridge database.
|
|
||||||
*/
|
/* In case vlan_filtering_is_global is set, the VLAN awareness state
|
||||||
assisted_learning_on_cpu_port:1,
|
* should be retrieved from here and not from the per-port settings.
|
||||||
/* In case vlan_filtering_is_global is set, the
|
*/
|
||||||
* VLAN awareness state should be retrieved
|
u32 vlan_filtering:1;
|
||||||
* from here and not from the per-port
|
|
||||||
* settings.
|
/* MAC PCS does not provide link state change interrupt, and requires
|
||||||
*/
|
* polling. Flag passed on to PHYLINK.
|
||||||
vlan_filtering:1,
|
*/
|
||||||
/* MAC PCS does not provide link state change
|
u32 pcs_poll:1;
|
||||||
* interrupt, and requires polling. Flag passed
|
|
||||||
* on to PHYLINK.
|
/* For switches that only have the MRU configurable. To ensure the
|
||||||
*/
|
* configured MTU is not exceeded, normalization of MRU on all bridged
|
||||||
pcs_poll:1,
|
* interfaces is needed.
|
||||||
/* For switches that only have the MRU
|
*/
|
||||||
* configurable. To ensure the configured MTU
|
u32 mtu_enforcement_ingress:1;
|
||||||
* is not exceeded, normalization of MRU on all
|
|
||||||
* bridged interfaces is needed.
|
|
||||||
*/
|
|
||||||
mtu_enforcement_ingress:1;
|
|
||||||
|
|
||||||
/* Listener for switch fabric events */
|
/* Listener for switch fabric events */
|
||||||
struct notifier_block nb;
|
struct notifier_block nb;
|
||||||
|
|||||||
Reference in New Issue
Block a user