Re: [PATCH v8 bpf-next 02/10] veth: Add driver XDP

2018-08-07 Thread Toshiaki Makita
Hi Daniel, Thank you for taking a look! On 2018/08/07 23:26, Daniel Borkmann wrote: > On 08/03/2018 09:58 AM, Toshiaki Makita wrote: > [...] >> + >> +static struct sk_buff *veth_xdp_rcv_skb(struct veth_priv *priv, >> +struct sk_buff *skb) >> +{ >> +u32 pktl

Re: [PATCH v8 bpf-next 02/10] veth: Add driver XDP

2018-08-07 Thread Daniel Borkmann
On 08/03/2018 09:58 AM, Toshiaki Makita wrote: > This is the basic implementation of veth driver XDP. > > Incoming packets are sent from the peer veth device in the form of skb, > so this is generally doing the same thing as generic XDP. > > This itself is not so useful, but a starting point to i

[PATCH v8 bpf-next 02/10] veth: Add driver XDP

2018-08-03 Thread Toshiaki Makita
This is the basic implementation of veth driver XDP. Incoming packets are sent from the peer veth device in the form of skb, so this is generally doing the same thing as generic XDP. This itself is not so useful, but a starting point to implement other useful veth XDP features like TX and REDIREC