Re: [PATCH bpf-next v5 03/11] bpf: Add write access to tcp_sock and sock fields

2018-01-09 Thread Lawrence Brakmo
On 1/9/18, 3:22 PM, "netdev-ow...@vger.kernel.org on behalf of Eric Dumazet" wrote: On Tue, 2018-01-09 at 13:06 -0800, Lawrence Brakmo wrote: > This patch adds a macro, SOCK_OPS_SET_FIELD, for writing to > struct

Re: [PATCH bpf-next v5 03/11] bpf: Add write access to tcp_sock and sock fields

2018-01-09 Thread Eric Dumazet
On Tue, 2018-01-09 at 13:06 -0800, Lawrence Brakmo wrote: > This patch adds a macro, SOCK_OPS_SET_FIELD, for writing to > struct tcp_sock or struct sock fields. This required adding a new > field "temp" to struct bpf_sock_ops_kern for temporary storage that > is used by

[PATCH bpf-next v5 03/11] bpf: Add write access to tcp_sock and sock fields

2018-01-09 Thread Lawrence Brakmo
This patch adds a macro, SOCK_OPS_SET_FIELD, for writing to struct tcp_sock or struct sock fields. This required adding a new field "temp" to struct bpf_sock_ops_kern for temporary storage that is used by sock_ops_convert_ctx_access. It is used to store and recover the contents of a register, so