git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
543dbfe
)
net/dpaa2: fix VLAN filter enablement
author
Hemant Agrawal
<hemant.agrawal@nxp.com>
Fri, 12 Oct 2018 10:04:13 +0000
(15:34 +0530)
committer
Thomas Monjalon
<thomas@monjalon.net>
Tue, 16 Oct 2018 12:54:25 +0000
(14:54 +0200)
Enable the VLAN filters only when requested in rx offload.
Fixes:
0ebce6129bc6
("net/dpaa2: support new ethdev offload APIs")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/dpaa2/dpaa2_ethdev.c
b/drivers/net/dpaa2/dpaa2_ethdev.c
index
9ae3260
..
bfe78c0
100644
(file)
--- a/
drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/
drivers/net/dpaa2/dpaa2_ethdev.c
@@
-405,7
+405,8
@@
dpaa2_eth_dev_configure(struct rte_eth_dev *dev)
}
}
- dpaa2_vlan_offload_set(dev, ETH_VLAN_FILTER_MASK);
+ if (rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
+ dpaa2_vlan_offload_set(dev, ETH_VLAN_FILTER_MASK);
/* update the current status */
dpaa2_dev_link_update(dev, 0);