]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/drivers/net/enic/enic_rxtx_vec_avx2.c
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / enic / enic_rxtx_vec_avx2.c
index d21854901c3a58f6936345893b721cc3c3c8db4e..36d4d0deab0a271cbd3780cfe07540d4c091b72b 100644 (file)
@@ -806,12 +806,11 @@ enic_noscatter_vec_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
 }
 
 bool
-enic_use_vector_rx_handler(struct enic *enic)
+enic_use_vector_rx_handler(struct rte_eth_dev *eth_dev)
 {
-       struct rte_eth_dev *eth_dev;
+       struct enic *enic = pmd_priv(eth_dev);
        struct rte_fdir_conf *fconf;
 
-       eth_dev = enic->rte_dev;
        /* User needs to request for the avx2 handler */
        if (!enic->enable_avx2_rx)
                return false;
@@ -823,7 +822,7 @@ enic_use_vector_rx_handler(struct enic *enic)
        if (fconf->mode != RTE_FDIR_MODE_NONE)
                return false;
        if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2)) {
-               PMD_INIT_LOG(DEBUG, " use the non-scatter avx2 Rx handler");
+               ENICPMD_LOG(DEBUG, " use the non-scatter avx2 Rx handler");
                eth_dev->rx_pkt_burst = &enic_noscatter_vec_recv_pkts;
                return true;
        }