X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fiavf%2Fiavf_rxtx.h;h=3d02c6589d660096baa52ecfc15a4d803f81b19b;hb=c1d4e9d37abdc6c07a05f7d96928e624fea9ebb5;hp=73968847feb6e98114e89f18eb1736cb8f451ff5;hpb=f71dbf852d467b6684408b2957acf6a124ec2c32;p=dpdk.git diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index 73968847fe..3d02c6589d 100644 --- a/drivers/net/iavf/iavf_rxtx.h +++ b/drivers/net/iavf/iavf_rxtx.h @@ -379,6 +379,7 @@ int iavf_dev_tx_queue_setup(struct rte_eth_dev *dev, const struct rte_eth_txconf *tx_conf); int iavf_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id); int iavf_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id); +int iavf_dev_tx_done_cleanup(void *txq, uint32_t free_cnt); void iavf_dev_tx_queue_release(void *txq); void iavf_stop_queues(struct rte_eth_dev *dev); uint16_t iavf_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, @@ -509,8 +510,8 @@ void iavf_fdir_rx_proc_enable(struct iavf_adapter *ad, bool on) { if (on) { /* enable flow director processing */ - if (ad->fdir_ref_cnt++ == 0) - FDIR_PROC_ENABLE_PER_QUEUE(ad, on); + FDIR_PROC_ENABLE_PER_QUEUE(ad, on); + ad->fdir_ref_cnt++; } else { if (ad->fdir_ref_cnt >= 1) { ad->fdir_ref_cnt--;