Messages in this thread | | | Subject | Re: [PATCH v2 net-next 3/6] net: dsa: move switchdev event implementation under the same switch/case statement | From | Florian Fainelli <> | Date | Sat, 12 Dec 2020 19:31:01 -0800 |
| |
On 12/12/2020 6:40 PM, Vladimir Oltean wrote: > 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> -- Florian
| |