Page MenuHomeFreeBSD

iflib: netmap: Declare the correct number of rx descriptor
Needs ReviewPublic

Authored by manu on Mar 4 2020, 8:03 PM.

Details

Reviewers
shurd
Group Reviewers
iflib
Summary

When a driver is declaring supporting IFLIB_HAS_RXCQ, we do not use the
free list 0 but the free list 1, which may not contain the same number of
available descriptors.
This fixes using netmap on the vmxnet3 driver (and probably on the if_bnxt one
too).
MFC-After: 1 week
Sponsored by: EfficientIP

Test Plan

Tested on VMWare esxi on 12-stable and 13-current

Diff Detail

Repository
rS FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

manu created this revision.Mar 4 2020, 8:03 PM
Herald added 1 blocking reviewer(s): iflib. · View Herald Transcript
Herald added subscribers: melifaro, ae, imp. · View Herald Transcript