Re: tc_classid access in skb bpf context

2019-05-22 Thread Matthew Cover
On 05/22/2019 01:52 AM, Matthew Cover wrote: > > > __sk_buff has a member tc_classid which I'm interested in accessing from > > > the skb bpf context. > > > > > > A bpf program which accesses skb->tc_classid compiles, but fails > > > verification; the specific failure is "invalid bpf_context a

Re: tc_classid access in skb bpf context

2019-05-22 Thread Matthew Cover
On 05/22/2019 01:52 AM, Matthew Cover wrote: > > __sk_buff has a member tc_classid which I'm interested in accessing from > > the skb bpf context. > > > > A bpf program which accesses skb->tc_classid compiles, but fails > > verification; the specific failure is "invalid bpf_context access". >

Re: tc_classid access in skb bpf context

2019-05-22 Thread Daniel Borkmann
On 05/22/2019 01:52 AM, Matthew Cover wrote: > __sk_buff has a member tc_classid which I'm interested in accessing from the > skb bpf context. > > A bpf program which accesses skb->tc_classid compiles, but fails > verification; the specific failure is "invalid bpf_context access". > > if (skb->