]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): fixes for netmap operation with only some queues active.
authorNavdeep Parhar <np@FreeBSD.org>
Tue, 29 Sep 2020 05:08:45 +0000 (05:08 +0000)
committerNavdeep Parhar <np@FreeBSD.org>
Tue, 29 Sep 2020 05:08:45 +0000 (05:08 +0000)
commita9f476580eb05efc1637bf7c9eb9602e1592d50f
tree9fa7f142aaf45a4abefe5e3641243f666bdb9425
parent34d7dd1561e0836368e94b43e0f5a5f4801f4489
cxgbe(4): fixes for netmap operation with only some queues active.

- Only active netmap receive queues should be in the RSS lookup table.

- The RSS table should be restored for NIC operation when the last
  active netmap queue is switched off, not the first one.

- Support repeated netmap ON/OFF on a subset of the queues.  This works
  whether the the queues being enabled and disabled are the only ones
  active or not.  Some kring indexes have to be reset in the driver for
  the second case.

MFC after: 1 week
Sponsored by: Chelsio Communications
sys/dev/cxgbe/t4_netmap.c