]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: make skb->tc_classid also readable
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 Mar 2016 00:42:49 +0000 (01:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 23:38:46 +0000 (19:38 -0400)
commit03dbbabb040ce770c74c4d1fcb4186f25c9de1db
tree22860981936d3b36e2cae1bdf22a46c996958bb2
parent1df9ffec9ba1d6239bb4bea576301318703f7057
bpf: make skb->tc_classid also readable

Currently, the tc_classid from eBPF skb context is write-only, but there's
no good reason for tc programs to limit it to write-only. For example,
it can be used to transfer its state via tail calls where the resulting
tc_classid gets filled gradually.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c