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>
This commit is contained in:

committed by
David S. Miller

parent
3036dab670
commit
255cb30425
@@ -119,6 +119,8 @@ struct tc_action_ops {
|
||||
int (*walk)(struct net *, struct sk_buff *,
|
||||
struct netlink_callback *, int, const struct tc_action_ops *);
|
||||
void (*stats_update)(struct tc_action *, u64, u32, u64);
|
||||
int (*get_dev)(const struct tc_action *a, struct net *net,
|
||||
struct net_device **mirred_dev);
|
||||
};
|
||||
|
||||
struct tc_action_net {
|
||||
|
Reference in New Issue
Block a user