net/enetc: fix crash at high speed traffic
authorGagandeep Singh <g.singh@nxp.com>
Fri, 12 Apr 2019 12:29:11 +0000 (12:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commite091c6915e3ed468d4f5299e409afa4a89436735
treecc6f0408a28428bfec68c29787df374146332548
parentf5a2e3bad4860ae4e3be2bfe13cff20aa93e3ba1
net/enetc: fix crash at high speed traffic

On xmit side, there should be a check whether BD ring
has free BDs available before transmit a packet to avoid
data corruption and buffer leak issue.

Fixes: 469c6111a799 ("net/enetc: enable Rx and Tx")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
drivers/net/enetc/enetc_rxtx.c