Re: [PATCH net-next] bpf, xdp: allow to pass flags to dev_change_xdp_fd

2016-11-30 Thread David Miller
From: Daniel Borkmann Date: Mon, 28 Nov 2016 23:16:54 +0100 > Add an IFLA_XDP_FLAGS attribute that can be passed for setting up > XDP along with IFLA_XDP_FD, which eventually allows user space to > implement typical add/replace/delete logic for programs. Right now, > calling into dev_change_xdp_f

[PATCH net-next] bpf, xdp: allow to pass flags to dev_change_xdp_fd

2016-11-28 Thread Daniel Borkmann
Add an IFLA_XDP_FLAGS attribute that can be passed for setting up XDP along with IFLA_XDP_FD, which eventually allows user space to implement typical add/replace/delete logic for programs. Right now, calling into dev_change_xdp_fd() will always replace previous programs. When passed XDP_FLAGS_UPDA