ixgbe: fix build with IEEE1588 enabled
authorCunming Liang <cunming.liang@intel.com>
Thu, 26 Jun 2014 06:53:31 +0000 (14:53 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Jun 2014 10:37:07 +0000 (12:37 +0200)
Vectorized Rx cannot be enabled if RTE_LIBRTE_IEEE1588=y.
So variable dev is not used in this case.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Yong Liu <yong.liu@intel.com>
Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c

index b8721dd..74d1b36 100644 (file)
@@ -700,6 +700,7 @@ int ixgbe_rx_vec_condition_check(struct rte_eth_dev *dev)
 
        return 0;
 #else
+       RTE_SET_USED(dev);
        return -1;
 #endif
 }