]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Pass ndo_setup_tc slave callback to drivers
authorVladimir Oltean <olteanv@gmail.com>
Sun, 15 Sep 2019 01:59:59 +0000 (04:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2019 19:32:57 +0000 (21:32 +0200)
commit5ca801aabac4f1b1eee3418188e598479137fb42
tree4a00fc770b2a930258d60e4168627ff9272c26a7
parentf1cce8ec8ee2640c843ee921da54a5ee7667eb69
net: dsa: Pass ndo_setup_tc slave callback to drivers

DSA currently handles shared block filters (for the classifier-action
qdisc) in the core due to what I believe are simply pragmatic reasons -
hiding the complexity from drivers and offerring a simple API for port
mirroring.

Extend the dsa_slave_setup_tc function by passing all other qdisc
offloads to the driver layer, where the driver may choose what it
implements and how. DSA is simply a pass-through in this case.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/slave.c