fm10k: fix crash when closing
authorChen Jing D(Mark) <jing.d.chen@intel.com>
Tue, 24 Nov 2015 03:10:16 +0000 (11:10 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 11:35:19 +0000 (12:35 +0100)
commit06977caf347018647dd763fdc91171671c3541a6
treec688365b9a806ea03b42fac3b156316cc2e09def
parent6b59a3bc82b1cb2e69b9a68bc2f0c476bc6d193e
fm10k: fix crash when closing

When the fm10k port is closed, both func tx_queue_clean() and
fm10k_tx_queue_release_mbufs_vec() will try to release buffer in
SW ring. The latter func won't do sanity check on those pointers
and cause crash.

The fix removed Vector TX buffer release func since it can share
the release functions with regular TX.

Fixes: fb9066e479a6 ("fm10k: reset and release mbuf for vector Tx")

Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
drivers/net/fm10k/fm10k.h
drivers/net/fm10k/fm10k_ethdev.c
drivers/net/fm10k/fm10k_rxtx_vec.c