summaryrefslogtreecommitdiffstats
path: root/net/sched/ematch.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-10-13 14:01:01 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-16 21:00:40 +0100
commitc1954561cd262b8adf7908c5552fe9ad99f82f81 (patch)
tree66dbb49f01058f111c19966ca7c268e50e12c707 /net/sched/ematch.c
parent34e3759cf86a3e75463e34c1bb9691777406a175 (diff)
downloadlinux-c1954561cd262b8adf7908c5552fe9ad99f82f81.tar.gz
linux-c1954561cd262b8adf7908c5552fe9ad99f82f81.tar.bz2
linux-c1954561cd262b8adf7908c5552fe9ad99f82f81.zip
net: sched: ematch: obtain net pointer from blocks
Instead of using tp->q, use block to get the net pointer. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/ematch.c')
-rw-r--r--net/sched/ematch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/ematch.c b/net/sched/ematch.c
index 03b677bc0700..1331a4c2d8ff 100644
--- a/net/sched/ematch.c
+++ b/net/sched/ematch.c
@@ -178,7 +178,7 @@ static int tcf_em_validate(struct tcf_proto *tp,
struct tcf_ematch_hdr *em_hdr = nla_data(nla);
int data_len = nla_len(nla) - sizeof(*em_hdr);
void *data = (void *) em_hdr + sizeof(*em_hdr);
- struct net *net = dev_net(qdisc_dev(tp->q));
+ struct net *net = tp->chain->block->net;
if (!TCF_EM_REL_VALID(em_hdr->flags))
goto errout;