aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/tc_act
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-10-11 09:41:07 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-11 20:15:42 -0700
commit843e79d05addd8eb06992cd6dfafc7b9d53f2bc8 (patch)
treea8f2d384369cbf8834961bf51a9a67ee5b8947f3 /include/net/tc_act
parentMerge branch 'rmnet-Rewrite-some-existing-functionality' (diff)
downloadwireguard-linux-843e79d05addd8eb06992cd6dfafc7b9d53f2bc8.tar.xz
wireguard-linux-843e79d05addd8eb06992cd6dfafc7b9d53f2bc8.zip
net: sched: make tc_action_ops->get_dev return dev and avoid passing net
Return dev directly, NULL if not possible. That is enough. Makes no sense to pass struct net * to get_dev op, as there is only one net possible, the one the action was created in. So just store it in mirred priv and use directly. Rename the mirred op callback function. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tc_act')
-rw-r--r--include/net/tc_act/tc_mirred.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_mirred.h b/include/net/tc_act/tc_mirred.h
index 604bc31e23ab..21a656569840 100644
--- a/include/net/tc_act/tc_mirred.h
+++ b/include/net/tc_act/tc_mirred.h
@@ -10,6 +10,7 @@ struct tcf_mirred {
int tcfm_ifindex;
bool tcfm_mac_header_xmit;
struct net_device __rcu *tcfm_dev;
+ struct net *net;
struct list_head tcfm_list;
};
#define to_mirred(a) ((struct tcf_mirred *)a)