From: Matan Azrad Date: Mon, 29 Jul 2019 11:53:21 +0000 (+0000) Subject: net/mlx5: remove redundant offload flag reset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d64e1e28eb05c8c73fea5c9cbed0a1a55535a798;p=dpdk.git net/mlx5: remove redundant offload flag reset When mbuf is allocated by rte_pktmbuf_alloc the offload flag is reset by it, so data-path function should not do it again. Remove the above offload flag reset from MPRQ data-path. Signed-off-by: Matan Azrad Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 007df8f062..a7ec73d022 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1623,8 +1623,6 @@ mlx5_rx_burst_mprq(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) len -= RTE_ETHER_CRC_LEN; offset = strd_idx * strd_sz + strd_shift; addr = RTE_PTR_ADD(mlx5_mprq_buf_addr(buf, strd_n), offset); - /* Initialize the offload flag. */ - pkt->ol_flags = 0; /* * Memcpy packets to the target mbuf if: * - The size of packet is smaller than mprq_max_memcpy_len.