]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/null/rte_eth_null.c
net/null: do not touch mbuf next or nb segs on Rx
[dpdk.git] / drivers / net / null / rte_eth_null.c
index abf3ec7536bfd38aa4b87b35c92cda5078b79b68..2c9433938edae4924a5d115d9962df5a0eda7ec6 100644 (file)
@@ -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;
        }