Home
last modified time | relevance | path

Searched hist:"878 db9f0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/include/net/
H A Dpkt_cls.h878db9f0 Thu Jan 25 16:00:43 CST 2018 Jakub Kicinski <jakub.kicinski@netronome.com> pkt_cls: add new tc cls helper to check offload flag and chain index

Very few (mlxsw) upstream drivers seem to allow offload of chains
other than 0. Save driver developers typing and add a helper for
checking both if ethtool's TC offload flag is on and if chain is 0.
This helper will set the extack appropriately in both error cases.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
878db9f0 Thu Jan 25 16:00:43 CST 2018 Jakub Kicinski <jakub.kicinski@netronome.com> pkt_cls: add new tc cls helper to check offload flag and chain index

Very few (mlxsw) upstream drivers seem to allow offload of chains
other than 0. Save driver developers typing and add a helper for
checking both if ethtool's TC offload flag is on and if chain is 0.
This helper will set the extack appropriately in both error cases.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>