HomeFreeBSD

vmxnet3: make descriptor count checks more robust

Description

vmxnet3: make descriptor count checks more robust

When we update credits there is a potential for a race causing an
overflow of vxcr_next (i.e. incrementing it past vxcr_ndesc). Change the
check to >= rather than == to be more robust against this.

Reviewed by: emaste
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D43712

Details

Provenance
kpAuthored on Mon, Jun 10, 8:47 AM
Reviewer
emaste
Differential Revision
D43712: vmxnet3: make descriptor count checks more robust
Parents
rGe5a54f19be8e: accf_tls(9): Fix grammar in description (singular/plural)
Branches
Unknown
Tags
Unknown