projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34e3759
)
net: sched: ematch: obtain net pointer from blocks
author
Jiri Pirko
<jiri@mellanox.com>
Fri, 13 Oct 2017 12:01:01 +0000
(14:01 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 16 Oct 2017 20:00:40 +0000
(21:00 +0100)
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>
net/sched/ematch.c
patch
|
blob
|
history
diff --git
a/net/sched/ematch.c
b/net/sched/ematch.c
index 03b677bc07005c7f864077edad6f22ca9dadbfdd..1331a4c2d8ff55fdc802b85b819939836feda4e1 100644
(file)
--- 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;