From: Ferruh Yigit Date: Thu, 4 May 2017 15:43:58 +0000 (+0100) Subject: net/null: do not touch mbuf next or nb segs on Rx X-Git-Tag: spdx-start~3175 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b46069d4b1d5dacade08ae3bd5fb426d25cf03d6;p=dpdk.git net/null: do not touch mbuf next or nb segs on Rx mbuf next and nb_segs fields already have the default values when get from mempool, no need to update them in PMD. See: 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool") Signed-off-by: Ferruh Yigit Reviewed-by: Olivier Matz --- diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index abf3ec7536..2c9433938e 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -139,8 +139,6 @@ eth_null_copy_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) packet_size); bufs[i]->data_len = (uint16_t)packet_size; bufs[i]->pkt_len = packet_size; - bufs[i]->nb_segs = 1; - bufs[i]->next = NULL; bufs[i]->port = h->internals->port_id; }