numam-dpdk/drivers/net/enic
Wei Hu (Xavier) 50ce3e7aec ethdev: fix VLAN offloads set if no relative capabilities
Currently, there is a potential problem that calling the API function
rte_eth_dev_set_vlan_offload to start VLAN hardware offloads which the
driver does not support. If the PMD driver does not support certain VLAN
hardware offloads and does not check for it, the hardware setting will
not change, but the VLAN offloads in dev->data->dev_conf.rxmode.offloads
will be turned on.

It is supposed to check the hardware capabilities to decide whether the
relative callback needs to be called just like the behavior in the API
function named rte_eth_dev_configure. And it is also needed to cleanup
duplicated checks which are done in some PMDs. Also, note that it is
behaviour change for some PMDs which simply ignore (with error/warning
log message) unsupported VLAN offloads, but now it will fail.

Fixes: a4996bd89c ("ethdev: new Rx/Tx offloads API")
Fixes: 0ebce6129b ("net/dpaa2: support new ethdev offload APIs")
Fixes: f9416bbafd ("net/enic: remove VLAN filter handler")
Fixes: 4f7d9e383e ("fm10k: update vlan offload features")
Fixes: fdba3bf15c ("net/hinic: add VLAN filter and offload")
Fixes: b96fb2f0d2 ("net/i40e: handle QinQ strip")
Fixes: d4a27a3b09 ("nfp: add basic features")
Fixes: 56139e85ab ("net/octeontx: support VLAN filter offload")
Fixes: ba1b3b081e ("net/octeontx2: support VLAN offloads")
Fixes: d87246a437 ("net/qede: enable and disable VLAN filtering")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Hyong Youb Kim <hyonkim@cisco.com>
Acked-by: Sachin Saxena <sachin.saxena@nxp.com>
Acked-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2020-07-11 06:18:53 +02:00
..
base net/enic: update flow manager API 2020-04-21 13:57:08 +02:00
enic_clsf.c net/enic: consolidate and remove some defines 2020-01-17 19:46:26 +01:00
enic_compat.h net/enic: move min/max macros 2020-01-17 19:46:26 +01:00
enic_ethdev.c ethdev: fix VLAN offloads set if no relative capabilities 2020-07-11 06:18:53 +02:00
enic_flow.c net/enic: consolidate and remove some defines 2020-01-17 19:46:26 +01:00
enic_fm_flow.c net/enic: add more flow manager actions to dump 2020-07-11 06:18:53 +02:00
enic_main.c net/enic: change Rx queue ordering to enable RSS action 2020-04-21 13:57:08 +02:00
enic_res.c net/enic: use common min and max macros 2020-02-05 09:51:19 +01:00
enic_res.h net/enic: use common min and max macros 2020-02-05 09:51:19 +01:00
enic_rxtx_common.h net/enic: replace some PMD macros with standard API 2020-01-17 19:46:26 +01:00
enic_rxtx_vec_avx2.c net/enic: fix probe for secondary process 2019-10-23 16:43:08 +02:00
enic_rxtx.c net/enic: consolidate and remove some defines 2020-01-17 19:46:26 +01:00
enic.h net/enic: change Rx queue ordering to enable RSS action 2020-04-21 13:57:08 +02:00
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_pmd_enic_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00