HomeFreeBSD

Fix bug in VNIC causing phony number of available TX descriptors

Description

Fix bug in VNIC causing phony number of available TX descriptors

TSO packets will signal segments TX completion in the separate CQ
descriptors. Each CQ descriptor for HW TSO will point to the same
SQ entry.
Do not invoke nicvf_put_sq_desc() for secondary segments to avoid
free_cnt corruption and eventually integer overflow that will result
in the negative free_cnt value and hence impossibility of further
transmission.

Reviewed by: wma
Obtained from: Semihalf
Sponsored by: Cavium
Differential Revision: https://reviews.freebsd.org/D5535

Details

Provenance
zbbAuthored on
Reviewer
wma
Differential Revision
D5535: Fix bug in VNIC causing phony number of available TX descriptors
Parents
rS296601: Fix "received NULL mbuf" bug in VNIC
Branches
Unknown
Tags
Unknown