From 8d62edecaafee5e72b5bb5bd945e757215354624 Mon Sep 17 00:00:00 2001 From: Pawel Wodkowski Date: Fri, 9 Jan 2015 16:05:25 +0100 Subject: [PATCH] ethdev: fix missing parenthesis in mac check Fix check introduced in commit 4bdefaade6d1 (VMDQ enhancements). Signed-off-by: Pawel Wodkowski Acked-by: Thomas Monjalon --- 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 95f2ceb1bf..ff26bd054a 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.20.1