aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-08-01 12:40:05 +0200
committerDavid S. Miller <davem@davemloft.net>2021-08-03 12:58:22 +0100
commit41107ac22fcf39c45afaf1a59e259e5e0059e31a (patch)
treead68924aa2b0cb7fd6341ab818a6a245f1c1d84d /net/switchdev/switchdev.c
parentc5ab51df03e2d7ec8e57904aaa2c4d03b607b2b5 (diff)
downloadlinux-41107ac22fcf39c45afaf1a59e259e5e0059e31a.tar.gz
linux-41107ac22fcf39c45afaf1a59e259e5e0059e31a.tar.bz2
linux-41107ac22fcf39c45afaf1a59e259e5e0059e31a.zip
ethtool: move netif_device_present check from ethnl_parse_header_dev_get to ethnl_ops_begin
If device is runtime-suspended and not accessible then it may be flagged as not present. If checking whether device is present is done too early then we may bail out before we have the chance to runtime-resume the device. Therefore move this check to ethnl_ops_begin(). This is in preparation of a follow-up patch that tries to runtime-resume the device before executing ethtool ops. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions