From: Moti Haimovsky Date: Tue, 30 Jan 2018 17:02:51 +0000 (+0200) Subject: net/mlx4: fix Rx offload non-fragmented indication X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c7aaaecd41d9a34a8753aca70c7527ae0c03eb85;p=dpdk.git net/mlx4: fix Rx offload non-fragmented indication This patch fixes the missing RTE_PTYPE_L4_NONFRAG on non-fragmented IP packets with unrecognized payload type. Fixes: aee4a03fee4f ("net/mlx4: enhance Rx packet type offloads") Cc: stable@dpdk.org Signed-off-by: Moti Haimovsky Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index c40c7e8bd1..8ca8b77cc7 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -57,7 +57,8 @@ uint32_t mlx4_ptype_table[0x100] __rte_cache_aligned = { * giving a total of up to 256 entries. */ [0x00] = RTE_PTYPE_L2_ETHER, - [0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN, + [0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | + RTE_PTYPE_L4_NONFRAG, [0x02] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG, [0x03] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |