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

2020-05-26 Thread Nambiar, Amritha
On 5/22/2020 4:34 PM, Daniel Borkmann wrote: On 5/22/20 8:28 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_qu

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

2020-05-22 Thread Daniel Borkmann
On 5/22/20 8:28 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 NO_QUEUE_MAPPING is n

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

2020-05-22 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.