From fb83a23eebc471122ad27590b162726d65eaaa6f Mon Sep 17 00:00:00 2001 From: John Daley Date: Mon, 10 Apr 2017 18:37:19 -0700 Subject: [PATCH] net/enic: remove initialization of some mbuf fields Remove initialization of next and nb_segs mbuf fields in the Rx path since they are now initialized in the mbuf pool. See commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"). Signed-off-by: John Daley --- drivers/net/enic/enic_rxtx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/enic/enic_rxtx.c b/drivers/net/enic/enic_rxtx.c index 1ee5cbb507..ba0cfd01a5 100644 --- a/drivers/net/enic/enic_rxtx.c +++ b/drivers/net/enic/enic_rxtx.c @@ -386,7 +386,6 @@ enic_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, if (rq->is_sop) { first_seg = rxmb; - first_seg->nb_segs = 1; first_seg->pkt_len = seg_length; } else { first_seg->pkt_len = (uint16_t)(first_seg->pkt_len @@ -395,7 +394,6 @@ enic_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, last_seg->next = rxmb; } - rxmb->next = NULL; rxmb->port = enic->port_id; rxmb->data_len = seg_length; -- 2.20.1