git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: support priority configuration of exact node
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_vlan.c
diff --git
a/drivers/net/mlx5/mlx5_vlan.c
b/drivers/net/mlx5/mlx5_vlan.c
index
ea841bb
..
e7161b6
100644
(file)
--- a/
drivers/net/mlx5/mlx5_vlan.c
+++ b/
drivers/net/mlx5/mlx5_vlan.c
@@
-97,7
+97,7
@@
mlx5_vlan_strip_queue_set(struct rte_eth_dev *dev, uint16_t queue, int on)
MLX5_ASSERT(rxq != NULL && rxq->ctrl != NULL);
/* Validate hw support */
MLX5_ASSERT(rxq != NULL && rxq->ctrl != NULL);
/* Validate hw support */
- if (!priv->
config
.hw_vlan_strip) {
+ if (!priv->
sh->dev_cap
.hw_vlan_strip) {
DRV_LOG(ERR, "port %u VLAN stripping is not supported",
dev->data->port_id);
return;
DRV_LOG(ERR, "port %u VLAN stripping is not supported",
dev->data->port_id);
return;
@@
-146,7
+146,7
@@
mlx5_vlan_offload_set(struct rte_eth_dev *dev, int mask)
int hw_vlan_strip = !!(dev->data->dev_conf.rxmode.offloads &
RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
int hw_vlan_strip = !!(dev->data->dev_conf.rxmode.offloads &
RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
- if (!priv->
config
.hw_vlan_strip) {
+ if (!priv->
sh->dev_cap
.hw_vlan_strip) {
DRV_LOG(ERR, "port %u VLAN stripping is not supported",
dev->data->port_id);
return 0;
DRV_LOG(ERR, "port %u VLAN stripping is not supported",
dev->data->port_id);
return 0;