Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1735052
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next 0/4] net: dsa: move master ethtool code |
| Date | 2017-09-19 18:10 +0200 |
| Message-ID | <urtfX-7CA-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The DSA core overrides the master device's ethtool_ops structure so that it can inject statistics and such of its dedicated switch CPU port. This ethtool code is currently called on unnecessary conditions or before the master interface and its switch CPU port get wired up. This patchset fixes this. Similarly to slave.c where the DSA slave net_device is the entry point of the dsa_slave_* functions, this patchset also isolates the master's ethtool code in a new master.c file, where the DSA master net_device is the entry point of the dsa_master_* functions. This is a first step towards better control of the master device and support for multiple CPU ports. Vivien Didelot (4): net: dsa: remove copy of master ethtool_ops net: dsa: setup master ethtool unconditionally net: dsa: setup master ethtool after dsa_ptr net: dsa: move master ethtool code include/net/dsa.h | 1 - net/dsa/Makefile | 2 +- net/dsa/dsa.c | 28 ------------- net/dsa/dsa2.c | 18 ++++---- net/dsa/dsa_priv.h | 7 ++-- net/dsa/legacy.c | 10 ++--- net/dsa/master.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++++ net/dsa/slave.c | 80 ----------------------------------- 8 files changed, 136 insertions(+), 130 deletions(-) create mode 100644 net/dsa/master.c -- 2.14.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next 0/4] net: dsa: move master ethtool code Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-09-19 18:10 +0200
[PATCH net-next 4/4] net: dsa: move master ethtool code Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-09-19 18:10 +0200
Re: [PATCH net-next 4/4] net: dsa: move master ethtool code Florian Fainelli <f.fainelli@gmail.com> - 2017-09-19 22:00 +0200
[PATCH net-next 2/4] net: dsa: setup master ethtool unconditionally Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-09-19 18:10 +0200
Re: [PATCH net-next 2/4] net: dsa: setup master ethtool unconditionally Florian Fainelli <f.fainelli@gmail.com> - 2017-09-19 19:50 +0200
Re: [PATCH net-next 0/4] net: dsa: move master ethtool code Florian Fainelli <f.fainelli@gmail.com> - 2017-09-19 22:10 +0200
Re: [PATCH net-next 0/4] net: dsa: move master ethtool code David Miller <davem@davemloft.net> - 2017-09-20 01:10 +0200
csiph-web