Re: [PATCH net-next] samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel

2017-05-01 Thread Jesper Dangaard Brouer
On Sun, 30 Apr 2017 17:46:13 -0600 David Ahern wrote: > On 4/28/17 3:40 PM, Jesper Dangaard Brouer wrote: > > [...] > >> diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c > >> index 0d449d8032d1..d4433a47e6c3 100644 > >> --- a/samples/bpf/bpf_load.c > >> +++ b/samples/bpf/bpf_load.c

Re: [PATCH net-next] samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel

2017-04-30 Thread David Ahern
On 4/28/17 3:40 PM, Jesper Dangaard Brouer wrote: > [...] >> diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c >> index 0d449d8032d1..d4433a47e6c3 100644 >> --- a/samples/bpf/bpf_load.c >> +++ b/samples/bpf/bpf_load.c >> @@ -563,7 +563,7 @@ struct ksym *ksym_search(long key) >> retu

Re: [PATCH net-next] samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel

2017-04-28 Thread Jesper Dangaard Brouer
On Thu, 27 Apr 2017 09:11:13 -0700 David Ahern wrote: > Add option to xdp1 and xdp_tx_iptunnel to insert xdp program in > SKB_MODE: > - update set_link_xdp_fd to take a flags argument that is added to the >RTM_SETLINK message > > - Add -S option to xdp1 and xdp_tx_iptunnel user code. When

Re: [PATCH net-next] samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel

2017-04-27 Thread David Miller
From: Alexei Starovoitov Date: Thu, 27 Apr 2017 09:38:37 -0700 > On 4/27/17 9:11 AM, David Ahern wrote: >> Add option to xdp1 and xdp_tx_iptunnel to insert xdp program in >> SKB_MODE: >> - update set_link_xdp_fd to take a flags argument that is added to the >>RTM_SETLINK message >> >> - Add

Re: [PATCH net-next] samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel

2017-04-27 Thread Alexei Starovoitov
On 4/27/17 9:11 AM, David Ahern wrote: Add option to xdp1 and xdp_tx_iptunnel to insert xdp program in SKB_MODE: - update set_link_xdp_fd to take a flags argument that is added to the RTM_SETLINK message - Add -S option to xdp1 and xdp_tx_iptunnel user code. When passed in XDP_FLAGS_SKB_

[PATCH net-next] samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel

2017-04-27 Thread David Ahern
Add option to xdp1 and xdp_tx_iptunnel to insert xdp program in SKB_MODE: - update set_link_xdp_fd to take a flags argument that is added to the RTM_SETLINK message - Add -S option to xdp1 and xdp_tx_iptunnel user code. When passed in XDP_FLAGS_SKB_MODE is set in the flags arg passed to se