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

2018-01-19 Thread Alexei Starovoitov
On Fri, Jan 19, 2018 at 05:45:40PM -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 sock_ops_convert_ctx_

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

2018-01-19 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 th