net/cxgbe: accept VLAN flow items without ethertype
authorKarra Satwik <kaara.satwik@chelsio.com>
Sun, 20 Dec 2020 22:44:43 +0000 (04:14 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 17:51:57 +0000 (18:51 +0100)
commitc3bbc381477f299eef3078ab7c4ef57165fe3121
tree6c8dbe71f3489921792cfaca587f12b2fb8d59a6
parent8ffaae0d097ed308b258339540b72482460c3568
net/cxgbe: accept VLAN flow items without ethertype

When apps pass the RTE_FLOW_ITEM_TYPE_VLAN without setting the
ethertype field in RTE_FLOW_ITEM_TYPE_ETH, then assume 0x8100
VLAN by default and don't reject the rule.

Fixes: 55f003d8884c ("net/cxgbe: support flow API for matching QinQ VLAN")
Cc: stable@dpdk.org
Signed-off-by: Karra Satwik <kaara.satwik@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_flow.c