From: NĂ©lio Laranjeiro Date: Mon, 29 May 2017 09:45:09 +0000 (+0200) Subject: net/mlx5: remove already initialised mbuf fields X-Git-Tag: spdx-start~3091 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d6ed7be7b4c7bcb9ea658b2c1912cc8fe60d80dd;p=dpdk.git net/mlx5: remove already initialised mbuf fields Since commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"), some fields are already initialised and do not need to be modified by the PMD anymore. Signed-off-by: Nelio Laranjeiro Acked-by: Shahaf Shuler Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 53b5c68bdd..3f6fb7002c 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -2048,9 +2048,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) DATA_LEN(rep) = DATA_LEN(seg); PKT_LEN(rep) = PKT_LEN(seg); SET_DATA_OFF(rep, DATA_OFF(seg)); - NB_SEGS(rep) = NB_SEGS(seg); PORT(rep) = PORT(seg); - NEXT(rep) = NULL; (*rxq->elts)[idx] = rep; /* * Fill NIC descriptor with the new buffer. The lkey and size