]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve iflib busdma(9) KPI use.
authorkib <kib@FreeBSD.org>
Wed, 16 Jan 2019 05:44:14 +0000 (05:44 +0000)
committerkib <kib@FreeBSD.org>
Wed, 16 Jan 2019 05:44:14 +0000 (05:44 +0000)
commita6ba8f5a5460e9e97373bf63b98d3ca2cfa81548
tree009fb31b23b594e43eedcee5474bd78a88cf4dde
parentf34dbcf7d0400d52f6506c7df304bcc5c5244e32
Improve iflib busdma(9) KPI use.

- Specify BUS_DMA_NOWAIT for bus_dmamap_load() on rx refill, since
  callbacks are not supposed to be used.
- Match tso/non-tso tags to corresponding tx map operations.  Create
  separate tso maps for tx descriptors.  In particular, do not use
  non-tso tag to load, unload, or destroy a map created with tso tag.
- Add missed bus_dmamap_sync() calls.
  Submitted by: marius.

Reported and tested by: pho
Reviewed by: marius
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/net/iflib.c