Re: [ovs-dev] [PATCH] netdev-afxdp: Add delay when reconfiguring xsk.

2019-12-06 Thread Eelco Chaudron
On 6 Dec 2019, at 14:55, William Tu wrote: On Thu, Dec 5, 2019 at 5:43 AM William Tu wrote: On Wed, Dec 4, 2019 at 10:06 PM William Tu wrote: The patch works around an error when reconfigure the netdev-afxdp device into different modes. Currently, when OVS destroy xsk, the

Re: [ovs-dev] [PATCH] netdev-afxdp: Add delay when reconfiguring xsk.

2019-12-06 Thread William Tu
On Thu, Dec 5, 2019 at 5:43 AM William Tu wrote: > > On Wed, Dec 4, 2019 at 10:06 PM William Tu wrote: > > > > The patch works around an error when reconfigure the netdev-afxdp > > device into different modes. Currently, when OVS destroy xsk, the > > xsk_destruct() in linux kernel calls

Re: [ovs-dev] [PATCH] netdev-afxdp: Add delay when reconfiguring xsk.

2019-12-05 Thread William Tu
On Wed, Dec 4, 2019 at 10:06 PM William Tu wrote: > > The patch works around an error when reconfigure the netdev-afxdp > device into different modes. Currently, when OVS destroy xsk, the > xsk_destruct() in linux kernel calls xdp_put_umem() and defers > calling xdp_umem_release_deferred(). > >

[ovs-dev] [PATCH] netdev-afxdp: Add delay when reconfiguring xsk.

2019-12-04 Thread William Tu
The patch works around an error when reconfigure the netdev-afxdp device into different modes. Currently, when OVS destroy xsk, the xsk_destruct() in linux kernel calls xdp_put_umem() and defers calling xdp_umem_release_deferred(). This creates an -EBUSY error when xsk_socket__create() calls