diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-02-15 20:02:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-16 14:21:04 +0300 |
commit | 8d23a54f5beea59b560855fb571e5d73d783e0b4 (patch) | |
tree | 146a1590d46062778c5dd7d2d4acc78916afd2bb /net/batman-adv/trace.h | |
parent | 27c5f74c7ba7b782f9694589ae733ca2ca8f76cc (diff) | |
download | linux-8d23a54f5beea59b560855fb571e5d73d783e0b4.tar.xz |
net: bridge: switchdev: differentiate new VLANs from changed ones
br_switchdev_port_vlan_add() currently emits a SWITCHDEV_PORT_OBJ_ADD
event with a SWITCHDEV_OBJ_ID_PORT_VLAN for 2 distinct cases:
- a struct net_bridge_vlan got created
- an existing struct net_bridge_vlan was modified
This makes it impossible for switchdev drivers to properly balance
PORT_OBJ_ADD with PORT_OBJ_DEL events, so if we want to allow that to
happen, we must provide a way for drivers to distinguish between a
VLAN with changed flags and a new one.
Annotate struct switchdev_obj_port_vlan with a "bool changed" that
distinguishes the 2 cases above.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/trace.h')
0 files changed, 0 insertions, 0 deletions