From: Shahaf Shuler Date: Tue, 24 Oct 2017 06:16:09 +0000 (+0300) Subject: net/mlx5: fix packet type flags for Ethernet only frame X-Git-Tag: spdx-start~1129 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3ca63b88a8c9c79d3ca630e2ed6cdff110b382b0;p=dpdk.git net/mlx5: fix packet type flags for Ethernet only frame Considering the PMD supports only Ethernet transport, packet which arrives without any packet type flags in the completion should be marked with L2_ETHER flag. Fixes: ea16068c0064 ("net/mlx5: fix L4 packet type support") Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler Acked-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 961967bf4e..67e7e06393 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -97,6 +97,8 @@ mlx5_set_ptype_table(void) * bit[6] = tunneled * bit[7] = outer_l3_type */ + /* L2 */ + (*p)[0x00] = RTE_PTYPE_L2_ETHER; /* L3 */ (*p)[0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_NONFRAG;