]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_mirred: Add new tc_action_ops get_dev()
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 1 Dec 2016 12:06:36 +0000 (14:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 18:28:36 +0000 (13:28 -0500)
commitb9892659bbdf2ff65a8711e8cce1b2bf4c0b85c1
tree757ac8b0039f730754d70d633eafe1fdd3bb87e5
parent5db42e8d65edf82ea8131af6f63600ea63dda918
net/sched: act_mirred: Add new tc_action_ops get_dev()

Adding support to a new tc_action_ops.
get_dev is a general option which allows to get the underline
device when trying to offload a tc rule.

In case of mirred action the returned device is the mirred (egress)
device.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
net/sched/act_mirred.c