Re: [bpf-next PATCH v3] bpf: Add rx_queue_mapping to bpf_sock

2020-06-01 Thread Alexei Starovoitov
On Tue, May 26, 2020 at 5:34 PM Amritha Nambiar wrote: > > Add "rx_queue_mapping" to bpf_sock. This gives read access for the > existing field (sk_rx_queue_mapping) of struct sock from bpf_sock. > Semantics for the bpf_sock rx_queue_mapping access are similar to > sk_rx_queue_get(), i.e the value

[bpf-next PATCH v3] bpf: Add rx_queue_mapping to bpf_sock

2020-05-26 Thread Amritha Nambiar
Add "rx_queue_mapping" to bpf_sock. This gives read access for the existing field (sk_rx_queue_mapping) of struct sock from bpf_sock. Semantics for the bpf_sock rx_queue_mapping access are similar to sk_rx_queue_get(), i.e the value NO_QUEUE_MAPPING is not allowed and -1 is returned in that case. T