]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-dsa-Setup-dsa_netdev_ops'
authorDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 23:48:22 +0000 (16:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 23:48:22 +0000 (16:48 -0700)
commit88b57f7ee5e3661d484a974c38630fe423488862
treec0624b765dec69ddd84fda731835322feaca29b7
parent9b679f3af0ca6c780a6833bdcf8cabec3639562f
parent3ba7f11a96d91e5128e9099a5f5770e48f4f02db
Merge branch 'net-dsa-Setup-dsa_netdev_ops'

Florian Fainelli says:

====================
net: dsa: Setup dsa_netdev_ops

This patch series addresses the overloading of a DSA CPU/management
interface's netdev_ops for the purpose of providing useful information
from the switch side.

Up until now we had duplicated the existing netdev_ops structure and
added specific function pointers to return information of interest. Here
we have a more controlled way of doing this by involving the specific
netdev_ops function pointers that we want to be patched, which is easier
for auditing code in the future. As a byproduct we can now maintain
netdev_ops pointer comparisons which would be failing before (no known
in tree problems because of that though).

Let me know if this approach looks reasonable to you and we might do the
same with our ethtool_ops overloading as well.

Changes in v2:

- use static inline int vs. static int inline (Kbuild robot)
- fixed typos in patch 4 (Andrew)
- avoid using macros (Andrew)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>