Re: [PATCH bpf-next] xsk: save the undone skb

2020-12-14 Thread Magnus Karlsson
On Sat, Dec 12, 2020 at 9:47 AM Xuan Zhuo wrote: > > On Fri, 11 Dec 2020 16:32:06 +0100, Magnus Karlsson > wrote: > > On Fri, Dec 11, 2020 at 2:12 PM Xuan Zhuo > > wrote: > > > > > > We can reserve the skb. When sending fails, NETDEV_TX_BUSY or > > > xskq_prod_reserve fails. As long as skb is

Re: [PATCH bpf-next] xsk: save the undone skb

2020-12-11 Thread Magnus Karlsson
On Fri, Dec 11, 2020 at 2:12 PM Xuan Zhuo wrote: > > We can reserve the skb. When sending fails, NETDEV_TX_BUSY or > xskq_prod_reserve fails. As long as skb is successfully generated and > successfully configured, we can reserve skb if we encounter exceptions > later. > > Especially when

[PATCH bpf-next] xsk: save the undone skb

2020-12-11 Thread Xuan Zhuo
We can reserve the skb. When sending fails, NETDEV_TX_BUSY or xskq_prod_reserve fails. As long as skb is successfully generated and successfully configured, we can reserve skb if we encounter exceptions later. Especially when NETDEV_TX_BUSY fails, there is no need to deal with the problem that