From: Pawel Wodkowski Date: Fri, 9 Jan 2015 15:05:25 +0000 (+0100) Subject: ethdev: fix missing parenthesis in mac check X-Git-Tag: spdx-start~9855 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d62edecaafee5e72b5bb5bd945e757215354624;p=dpdk.git ethdev: fix missing parenthesis in mac check Fix check introduced in commit 4bdefaade6d1 (VMDQ enhancements). Signed-off-by: Pawel Wodkowski Acked-by: Thomas Monjalon --- 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",