diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-02-23 16:00:51 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-24 21:31:43 -0800 |
commit | e35f12e993d4c3b5c290d9640e88e7ff76798109 (patch) | |
tree | 61dc75284fbd358e983b32c2dbec59191dd0c854 /mm/page_io.c | |
parent | ec638740fce990ad2b9af43ead8088d6d6eb2145 (diff) | |
download | linux-stable-e35f12e993d4c3b5c290d9640e88e7ff76798109.tar.gz linux-stable-e35f12e993d4c3b5c290d9640e88e7ff76798109.tar.bz2 linux-stable-e35f12e993d4c3b5c290d9640e88e7ff76798109.zip |
net: dsa: remove "ds" and "port" from struct dsa_switchdev_event_work
By construction, the struct net_device *dev passed to
dsa_slave_switchdev_event_work() via struct dsa_switchdev_event_work
is always a DSA slave device.
Therefore, it is redundant to pass struct dsa_switch and int port
information in the deferred work structure. This can be retrieved at all
times from the provided struct net_device via dsa_slave_to_port().
For the same reason, we can drop the dsa_is_user_port() check in
dsa_fdb_offload_notify().
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 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions