]> git.droids-corp.org - dpdk.git/commit
net/ena: assert on outstanding mbuf in Tx
authorMichal Krawczyk <mk@semihalf.com>
Wed, 23 Feb 2022 12:19:25 +0000 (13:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Feb 2022 17:53:49 +0000 (18:53 +0100)
commit3d47e9b102313d08082878fc0ebe6bf01aae3edb
tree63da2329fceba86ef8d01c01086cb418898ea9ff
parent96ffa8a70f31c5988075b9dfc16ad5faed399257
net/ena: assert on outstanding mbuf in Tx

To make sure there is no outstanding mbuf in the reused Tx queue (due to
improper cleanup, or some invalid logic on Tx path), the assertion was
added on the Tx path.

As it's being compiled out in the release version, it won't affect
the IO path performance.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
drivers/net/ena/ena_ethdev.c