diff options
| author | David S. Miller <davem@davemloft.net> | 2020-05-07 17:31:57 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2020-05-07 17:31:57 -0700 |
| commit | eb55d7b65f1735dfb39fb14e47007d3c8fb74c43 (patch) | |
| tree | 7291c4c01e4c92710866db5cf84a67e0972a461d /include | |
| parent | bb206a0869b7f1e7c853d7b94e91510c321402c7 (diff) | |
| parent | 47cfa3af4e23f5ea29ed9202557c428b43742c57 (diff) | |
| download | cachepc-linux-eb55d7b65f1735dfb39fb14e47007d3c8fb74c43.tar.gz cachepc-linux-eb55d7b65f1735dfb39fb14e47007d3c8fb74c43.zip | |
Merge branch 'tc-gate-offload-for-SJA1105-DSA-switch'
Vladimir Oltean says:
====================
tc-gate offload for SJA1105 DSA switch
Expose the TTEthernet hardware features of the switch using standard
tc-flower actions: trap, drop, redirect and gate.
v1 was submitted at:
https://patchwork.ozlabs.org/project/netdev/cover/20200503211035.19363-1-olteanv@gmail.com/
v2 was submitted at:
https://patchwork.ozlabs.org/project/netdev/cover/20200503211035.19363-1-olteanv@gmail.com/
Changes in v3:
Made sure there are no compilation warnings when
CONFIG_NET_DSA_SJA1105_TAS or CONFIG_NET_DSA_SJA1105_VL are disabled.
Changes in v2:
Using a newly introduced dsa_port_from_netdev public helper.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index fb3f9222f2a1..6dfc8c2f68b8 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -637,6 +637,7 @@ void dsa_devlink_resource_occ_get_register(struct dsa_switch *ds, void *occ_get_priv); void dsa_devlink_resource_occ_get_unregister(struct dsa_switch *ds, u64 resource_id); +struct dsa_port *dsa_port_from_netdev(struct net_device *netdev); struct dsa_devlink_priv { struct dsa_switch *ds; |
