diff options
author | 2021-01-06 11:51:33 +0200 | |
---|---|---|
committer | 2021-01-07 15:34:46 -0800 | |
commit | 447d290a58bd335d68f665713842365d3d6447df (patch) | |
tree | f448d76413564a3420067b12a32b532927e8011b /net/core/sock_map.c | |
parent | net: dsa: don't use switchdev_notifier_fdb_info in dsa_switchdev_event_work (diff) | |
download | wireguard-linux-447d290a58bd335d68f665713842365d3d6447df.tar.xz wireguard-linux-447d290a58bd335d68f665713842365d3d6447df.zip |
net: dsa: move switchdev event implementation under the same switch/case statement
We'll need to start listening to SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE
events even for interfaces where dsa_slave_dev_check returns false, so
we need that check inside the switch-case statement for SWITCHDEV_FDB_*.
This movement also avoids a useless allocation / free of switchdev_work
on the untreated "default event" case.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/sock_map.c')
0 files changed, 0 insertions, 0 deletions