]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit09c37a2c5bbc28b5fbc07a01db4bccdbd0a5d8a2
tree22860981936d3b36e2cae1bdf22a46c996958bb2
parent019ded3aa7c9799fbe6533baeac9aafc7063bd39
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