Re: [PATCH bpf-next 3/3] xsk: add sock_diag interface for AF_XDP

2019-01-24 Thread Björn Töpel
Den tors 24 jan. 2019 kl 14:08 skrev Daniel Borkmann : > [...] > >>> +#ifndef _LINUX_XDP_DIAG_H > >>> +#define _LINUX_XDP_DIAG_H > >>> + > >>> +#include > >>> + > >>> +struct xdp_diag_req { > >>> + __u8sdiag_family; > >>> + __u8sdiag_protocol; > >>> + __u16 pad; > >> > >> Pre

Re: [PATCH bpf-next 3/3] xsk: add sock_diag interface for AF_XDP

2019-01-24 Thread Daniel Borkmann
On 01/23/2019 03:24 PM, Björn Töpel wrote: > Den ons 23 jan. 2019 kl 14:19 skrev Daniel Borkmann : >> >> On 01/18/2019 02:03 PM, bjorn.to...@gmail.com wrote: >>> From: Björn Töpel >>> >>> This patch adds the sock_diag interface for querying sockets from user >>> space. Tools like iproute2 ss(8) ca

Re: [PATCH bpf-next 3/3] xsk: add sock_diag interface for AF_XDP

2019-01-23 Thread Björn Töpel
Den ons 23 jan. 2019 kl 14:19 skrev Daniel Borkmann : > > On 01/18/2019 02:03 PM, bjorn.to...@gmail.com wrote: > > From: Björn Töpel > > > > This patch adds the sock_diag interface for querying sockets from user > > space. Tools like iproute2 ss(8) can use this interface to list open > > AF_XDP so

Re: [PATCH bpf-next 3/3] xsk: add sock_diag interface for AF_XDP

2019-01-23 Thread Daniel Borkmann
On 01/18/2019 02:03 PM, bjorn.to...@gmail.com wrote: > From: Björn Töpel > > This patch adds the sock_diag interface for querying sockets from user > space. Tools like iproute2 ss(8) can use this interface to list open > AF_XDP sockets. > > The user-space ABI is defined in linux/xdp_diag.h and i

[PATCH bpf-next 3/3] xsk: add sock_diag interface for AF_XDP

2019-01-18 Thread bjorn . topel
From: Björn Töpel This patch adds the sock_diag interface for querying sockets from user space. Tools like iproute2 ss(8) can use this interface to list open AF_XDP sockets. The user-space ABI is defined in linux/xdp_diag.h and includes netlink request and response structs. The request can query