RE: [PATCH] net/af_xdp: allow using copy mode in XSK

2022-06-14 Thread Li, Xiaoyun
Hi > -Original Message- > From: Zhang, Qi Z > Sent: Tuesday, June 14, 2022 00:38 > To: Li, Xiaoyun ; Loftus, Ciara > ; dev@dpdk.org > Subject: RE: [PATCH] net/af_xdp: allow using copy mode in XSK > > > > > -Original Message- > > From:

RE: [PATCH] net/af_xdp: allow using copy mode in XSK

2022-06-13 Thread Zhang, Qi Z
> -Original Message- > From: Li, Xiaoyun > Sent: Monday, June 13, 2022 11:13 PM > To: Loftus, Ciara ; Zhang, Qi Z > ; dev@dpdk.org > Cc: Li, Xiaoyun > Subject: [PATCH] net/af_xdp: allow using copy mode in XSK > > DPDK assumes that users only want AF_XDP

[PATCH] net/af_xdp: allow using copy mode in XSK

2022-06-13 Thread Xiaoyun Li
DPDK assumes that users only want AF_XDP socket (XSK) into zero copy mode when the kernel supports it. However, sometimes kernel driver doesn't support it well and copy mode is more stable and preferred. This patch allows using devarg "-a xx:xx.x,no_zerocopy=1" to force the AF_XDP socket into copy