net/ena: fix cleanup of the Tx bufs
authorMichal Krawczyk <mk@semihalf.com>
Tue, 4 Jul 2017 13:51:52 +0000 (15:51 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commit207a514ce516f8ab3c1ad2b0f930f045b90b773c
treeb763dd639a2afa5650866e8387fe7cf070155f64
parent5f0b95d59a98c77deb5171d2c6f1fdf794f32c01
net/ena: fix cleanup of the Tx bufs

After cleanup of the mbuf on Tx path, queue was still pointing to this
mbuf and upon cleanup of the Tx buffers, it was being freed second time.

Moreover, to make sure that upon interrupt all mbufs will be freed,
whole ring is being cleaned up instead of part of it - originally only
range between head and tail was being cleaned up.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c