]> git.droids-corp.org - dpdk.git/commit
net/i40e: remove redundant reset operation
authorFeifei Wang <feifei.wang2@arm.com>
Thu, 27 Jan 2022 07:40:01 +0000 (15:40 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 28 Jan 2022 06:56:20 +0000 (07:56 +0100)
commitbf4444261232eb36106067cbef8188dda784cd57
treed228eb6660d2f17388a4be553422ae219afc6f13
parent87b26522f7ff65375fb1d773a7f93c70bf857b96
net/i40e: remove redundant reset operation

For free buffer operation in i40e vector path, it is unnecessary to
store 'NULL' into txep.mbuf. This is because when putting mbuf into Tx
queue, tx_tail is the sentinel. And when doing tx_free, tx_next_dd is
the sentinel. In all processes, mbuf==NULL is not a condition in check.
Thus reset of mbuf is unnecessary and can be omitted.

Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_rxtx_vec_common.h