summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/bpf.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-25 14:00:43 -0800
committerDavid S. Miller <davem@davemloft.net>2018-01-25 21:23:07 -0500
commit878db9f0f26df7674f6fc46f1c1c9390c99880ec (patch)
tree12cfa91f89d0b6e23ae7e03e095d9938df372d4c /drivers/net/netdevsim/bpf.c
parentfdd6d771c7de9d351c6dbdbab5bdc83805c06955 (diff)
downloadlinux-878db9f0f26df7674f6fc46f1c1c9390c99880ec.tar.gz
linux-878db9f0f26df7674f6fc46f1c1c9390c99880ec.tar.xz
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>
Diffstat (limited to 'drivers/net/netdevsim/bpf.c')
0 files changed, 0 insertions, 0 deletions