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
app/eventdev: add ethernet device setup helpers
[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
2ab8652
..
9443e4f
100644
(file)
--- a/
drivers/net/mlx5/mlx5_vlan.c
+++ b/
drivers/net/mlx5/mlx5_vlan.c
@@
-196,7
+196,8
@@
mlx5_vlan_offload_set(struct rte_eth_dev *dev, int mask)
unsigned int i;
if (mask & ETH_VLAN_STRIP_MASK) {
unsigned int i;
if (mask & ETH_VLAN_STRIP_MASK) {
- int hw_vlan_strip = !!dev->data->dev_conf.rxmode.hw_vlan_strip;
+ int hw_vlan_strip = !!(dev->data->dev_conf.rxmode.offloads &
+ DEV_RX_OFFLOAD_VLAN_STRIP);
if (!priv->config.hw_vlan_strip) {
ERROR("VLAN stripping is not supported");
if (!priv->config.hw_vlan_strip) {
ERROR("VLAN stripping is not supported");