summaryrefslogtreecommitdiffstats
path: root/net/sched/act_police.c
diff options
context:
space:
mode:
authorHadar Hen Zion <hadarh@mellanox.com>2016-12-04 14:25:19 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-05 21:06:58 +0100
commita6e169312971219a34927e8fdece60046fafb8ba (patch)
tree3dffea390e5937f265986672f53165ae34b8790d /net/sched/act_police.c
parentipv6: Allow IPv4-mapped address as next-hop (diff)
downloadlinux-a6e169312971219a34927e8fdece60046fafb8ba.tar.xz
linux-a6e169312971219a34927e8fdece60046fafb8ba.zip
net/sched: cls_flower: Set the filter Hardware device for all use-cases
Check if the returned device from tcf_exts_get_dev function supports tc offload and in case the rule can't be offloaded, set the filter hw_dev parameter to the original device given by the user. The filter hw_device parameter should always be set by fl_hw_replace_filter function, since this pointer is used by dump stats and destroy filter for each flower rule (offloaded or not). Fixes: 7091d8c7055d ('net/sched: cls_flower: Add offload support using egress Hardware device') Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Reported-by: Simon Horman <horms@verge.net.au> Tested-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_police.c')
0 files changed, 0 insertions, 0 deletions