[dpdk-dev] [PATCH v7 04/26] ethdev: fix missing parenthesis in mac check
Neil Horman
nhorman at tuxdriver.com
Wed Jan 21 21:57:28 CET 2015
From: Pawel Wodkowski <pawelx.wodkowski at intel.com>
Fix check introduced in commit 4bdefaade6d1 (VMDQ enhancements).
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski at intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
lib/librte_ether/rte_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 95f2ceb..ff26bd0 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -814,7 +814,7 @@ rte_eth_dev_config_restore(uint8_t port_id)
/* add address to the hardware */
if (*dev->dev_ops->mac_addr_add &&
- dev->data->mac_pool_sel[i] & (1ULL << pool))
+ (dev->data->mac_pool_sel[i] & (1ULL << pool)))
(*dev->dev_ops->mac_addr_add)(dev, &addr, i, pool);
else {
PMD_DEBUG_TRACE("port %d: MAC address array not supported\n",
--
2.1.0
More information about the dev
mailing list