Re: [bpf-next 2/2] bpf: add BPF_SOCK_OPS_STATS_CB for tcp_stats()

2019-02-12 Thread Yafang Shao
On Tue, Feb 12, 2019 at 11:11 PM Eric Dumazet wrote: > > > > On 02/12/2019 03:31 AM, Yafang Shao wrote: > > Introuce this new op BPF_SOCK_OPS_STATS_CB for tcp_stats() such that it > > can be traced via BPF on a per socket basis. > > There's one argument in BPF_SOCK_OPS_STATS_CB, which is Linux

Re: [bpf-next 2/2] bpf: add BPF_SOCK_OPS_STATS_CB for tcp_stats()

2019-02-12 Thread Eric Dumazet
On 02/12/2019 03:31 AM, Yafang Shao wrote: > Introuce this new op BPF_SOCK_OPS_STATS_CB for tcp_stats() such that it > can be traced via BPF on a per socket basis. > There's one argument in BPF_SOCK_OPS_STATS_CB, which is Linux MIB index > LINUX_MIB_* to indicate the TCP event. > All these

[bpf-next 2/2] bpf: add BPF_SOCK_OPS_STATS_CB for tcp_stats()

2019-02-12 Thread Yafang Shao
Introuce this new op BPF_SOCK_OPS_STATS_CB for tcp_stats() such that it can be traced via BPF on a per socket basis. There's one argument in BPF_SOCK_OPS_STATS_CB, which is Linux MIB index LINUX_MIB_* to indicate the TCP event. All these Linux MIBs are defined in include/uapi/linux/snmp.h.