Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/memif: fix extra mbuf refcnt update in zero copy Tx
[ upstream commit aa3e97fcb55d7b68fef864aa76078bdae375ad3d ] The refcnt update of stored mbufs in memif driver is redundant since those mbufs are only freed in eth_memif_tx_zc(). No other place can free those stored mbufs quietly. By removing this redundant update single core dpdk memif performance can be improved by 7.5%. testpmd stats on Arm Neoverse N1 (Ampere Altra) +-----------------------------+-----------------------+ | | With refcnt update | Without refcnt update | +--------+--------------------+-----------------------+ | Rx-pps | 2748851 | 2955487 | +--------+--------------------+-----------------------+ | Tx-pps | 2748812 | 2955436 | +--------+--------------------+-----------------------+ Fixes: 43b815d ("net/memif: support zero-copy slave") Signed-off-by: Liangxing Wang <liangxing.wang@arm.com> Signed-off-by: Wathsala Vithanage <wathsala.vithanage@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
- Loading branch information