summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2017-10-24 09:16:09 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-26 02:33:01 +0200
commit3ca63b88a8c9c79d3ca630e2ed6cdff110b382b0 (patch)
treeb28b8c422ad443be456a5825e37b8efbfa54926c /drivers/net/mlx5/mlx5_rxtx.c
parentf59908fe499bc0e908295bf8ef874048f55186cd (diff)
downloaddpdk-3ca63b88a8c9c79d3ca630e2ed6cdff110b382b0.zip
dpdk-3ca63b88a8c9c79d3ca630e2ed6cdff110b382b0.tar.gz
dpdk-3ca63b88a8c9c79d3ca630e2ed6cdff110b382b0.tar.xz
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 <shahafs@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 961967b..67e7e06 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;