diff options
| author | 2017-09-19 11:56:57 -0400 | |
|---|---|---|
| committer | 2017-09-19 16:04:22 -0700 | |
| commit | f5619866592c65adc087364cc1a3ba709201ea26 (patch) | |
| tree | ec738ec423be6543161bb9a81accb6a075b75fc8 /net/dsa/legacy.c | |
| parent | selftests: rtnetlink.sh: add test case for device ifalias (diff) | |
| download | linux-dev-f5619866592c65adc087364cc1a3ba709201ea26.tar.xz linux-dev-f5619866592c65adc087364cc1a3ba709201ea26.zip | |
net: dsa: remove copy of master ethtool_ops
There is no need to store a copy of the master ethtool ops, storing the
original pointer in DSA and the new one in the master netdev itself is
enough.
In the meantime, set orig_ethtool_ops to NULL when restoring the master
ethtool ops and check the presence of the master original ethtool ops as
well as its needed functions before calling them.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/legacy.c')
0 files changed, 0 insertions, 0 deletions
