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
mempool/dpaa2: add functions for CMDIF
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_ef10_rx_ev.h
diff --git
a/drivers/net/sfc/sfc_ef10_rx_ev.h
b/drivers/net/sfc/sfc_ef10_rx_ev.h
index
774a789
..
615bd29
100644
(file)
--- a/
drivers/net/sfc/sfc_ef10_rx_ev.h
+++ b/
drivers/net/sfc/sfc_ef10_rx_ev.h
@@
-34,9
+34,13
@@
sfc_ef10_rx_ev_to_offloads(const efx_qword_t rx_ev, struct rte_mbuf *m,
uint32_t l4_ptype = 0;
uint64_t ol_flags = 0;
uint32_t l4_ptype = 0;
uint64_t ol_flags = 0;
- if (unlikely(EFX_TEST_QWORD_BIT(rx_ev, ESF_DZ_RX_PARSE_INCOMPLETE_LBN)))
+ if (unlikely(rx_ev.eq_u64[0] &
+ rte_cpu_to_le_64((1ull << ESF_DZ_RX_ECC_ERR_LBN) |
+ (1ull << ESF_DZ_RX_ECRC_ERR_LBN) |
+ (1ull << ESF_DZ_RX_PARSE_INCOMPLETE_LBN))))
goto done;
goto done;
+#if SFC_EF10_RX_EV_ENCAP_SUPPORT
switch (EFX_QWORD_FIELD(rx_ev, ESF_EZ_RX_ENCAP_HDR)) {
default:
/* Unexpected encapsulation tag class */
switch (EFX_QWORD_FIELD(rx_ev, ESF_EZ_RX_ENCAP_HDR)) {
default:
/* Unexpected encapsulation tag class */
@@
-58,6
+62,7
@@
sfc_ef10_rx_ev_to_offloads(const efx_qword_t rx_ev, struct rte_mbuf *m,
tun_ptype = RTE_PTYPE_TUNNEL_NVGRE;
break;
}
tun_ptype = RTE_PTYPE_TUNNEL_NVGRE;
break;
}
+#endif
if (tun_ptype == 0) {
ip_csum_err_bit = ESF_DZ_RX_IPCKSUM_ERR_LBN;
if (tun_ptype == 0) {
ip_csum_err_bit = ESF_DZ_RX_IPCKSUM_ERR_LBN;