]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-master-ethtool-move'
authorDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:04:23 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:04:23 +0000 (16:04 -0700)
commit8c9c5a5aa6d84c4e41f8410bc85d6b291fc12c9f
tree1186ff809f74031be7a52681aa0cb9f2be03221f
parenta8c8580a70c14a306107b912dc50c6d24b964b2e
parentcc05208fc1954f471698b0161c85150321b7990e
Merge branch 'dsa-master-ethtool-move'

Vivien Didelot says:

====================
net: dsa: move master ethtool code

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.
====================

Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>