From: Xiaolong Ye Date: Sun, 7 Jul 2019 15:57:05 +0000 (+0800) Subject: net/af_xdp: correct XDP frame size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3e912e39d1b2d12e350e82b7fef07d8ba484a0eb;p=dpdk.git net/af_xdp: correct XDP frame size XSK_UMEM__DEFAULT_FRAME_SIZE has been changed to 4096 in kernel commit 123e8da1d330 (xsk: Change the default frame size to 4096 and allow controlling it), but we still need to keep ETH_AF_XDP_FRAME_SIZE as 2048 to fit most dpdk apps. Signed-off-by: Xiaolong Ye Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index 5ce90a760e..ff8e90589e 100644 --- a/drivers/net/af_xdp/rte_eth_af_xdp.c +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c @@ -56,7 +56,7 @@ static int af_xdp_logtype; rte_log(RTE_LOG_ ## level, af_xdp_logtype, \ "%s(): " fmt, __func__, ##args) -#define ETH_AF_XDP_FRAME_SIZE XSK_UMEM__DEFAULT_FRAME_SIZE +#define ETH_AF_XDP_FRAME_SIZE 2048 #define ETH_AF_XDP_NUM_BUFFERS 4096 #define ETH_AF_XDP_DATA_HEADROOM 0 #define ETH_AF_XDP_DFLT_NUM_DESCS XSK_RING_CONS__DEFAULT_NUM_DESCS