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
net/txgbe: support VF promiscuous and allmulticast
[dpdk.git]
/
drivers
/
net
/
ark
/
ark_ethdev_rx.c
diff --git
a/drivers/net/ark/ark_ethdev_rx.c
b/drivers/net/ark/ark_ethdev_rx.c
index
825b479
..
d29d3db
100644
(file)
--- a/
drivers/net/ark/ark_ethdev_rx.c
+++ b/
drivers/net/ark/ark_ethdev_rx.c
@@
-272,7
+272,12
@@
eth_ark_recv_pkts(void *rx_queue,
mbuf->port = meta->port;
mbuf->pkt_len = meta->pkt_len;
mbuf->data_len = meta->pkt_len;
mbuf->port = meta->port;
mbuf->pkt_len = meta->pkt_len;
mbuf->data_len = meta->pkt_len;
- mbuf->timestamp = meta->timestamp;
+ /* set timestamp if enabled at least on one device */
+ if (ark_timestamp_rx_dynflag > 0) {
+ *RTE_MBUF_DYNFIELD(mbuf, ark_timestamp_dynfield_offset,
+ rte_mbuf_timestamp_t *) = meta->timestamp;
+ mbuf->ol_flags |= ark_timestamp_rx_dynflag;
+ }
rte_pmd_ark_mbuf_rx_userdata_set(mbuf, meta->user_data);
if (ARK_DEBUG_CORE) { /* debug sanity checks */
rte_pmd_ark_mbuf_rx_userdata_set(mbuf, meta->user_data);
if (ARK_DEBUG_CORE) { /* debug sanity checks */
@@
-302,8
+307,6
@@
eth_ark_recv_pkts(void *rx_queue,
mbuf->pkt_len = 63;
meta->pkt_len = 63;
}
mbuf->pkt_len = 63;
meta->pkt_len = 63;
}
- /* seqn is only set under debug */
- mbuf->seqn = cons_index;
}
if (unlikely(meta->pkt_len > ARK_RX_MAX_NOCHAIN))
}
if (unlikely(meta->pkt_len > ARK_RX_MAX_NOCHAIN))
@@
-360,8
+363,6
@@
eth_ark_rx_jumbo(struct ark_rx_queue *queue,
mbuf_prev = mbuf;
mbuf->data_len = data_len;
mbuf->data_off = 0;
mbuf_prev = mbuf;
mbuf->data_len = data_len;
mbuf->data_off = 0;
- if (ARK_DEBUG_CORE)
- mbuf->seqn = cons_index; /* for debug only */
cons_index += 1;
}
cons_index += 1;
}
@@
-667,8
+668,8
@@
dump_mbuf_data(struct rte_mbuf *mbuf, uint16_t lo, uint16_t hi)
{
uint16_t i, j;
{
uint16_t i, j;
- ARK_PMD_LOG(DEBUG, " MBUF: %p len %d, off: %d
, seq: %" PRIU32 "
\n",
- mbuf, mbuf->pkt_len, mbuf->data_off
, mbuf->seqn
);
+ ARK_PMD_LOG(DEBUG, " MBUF: %p len %d, off: %d\n",
+ mbuf, mbuf->pkt_len, mbuf->data_off);
for (i = lo; i < hi; i += 16) {
uint8_t *dp = RTE_PTR_ADD(mbuf->buf_addr, i);
for (i = lo; i < hi; i += 16) {
uint8_t *dp = RTE_PTR_ADD(mbuf->buf_addr, i);