git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/octeontx: support ECDSA
[dpdk.git]
/
drivers
/
net
/
enic
/
enic_rxtx_vec_avx2.c
diff --git
a/drivers/net/enic/enic_rxtx_vec_avx2.c
b/drivers/net/enic/enic_rxtx_vec_avx2.c
index
d218549
..
36d4d0d
100644
(file)
--- a/
drivers/net/enic/enic_rxtx_vec_avx2.c
+++ b/
drivers/net/enic/enic_rxtx_vec_avx2.c
@@
-806,12
+806,11
@@
enic_noscatter_vec_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
}
bool
}
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;
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;
/* 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)) {
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;
}
eth_dev->rx_pkt_burst = &enic_noscatter_vec_recv_pkts;
return true;
}