]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Only use TX push if a single descriptor is to be written
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 27 Feb 2013 16:50:38 +0000 (16:50 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 12 Mar 2013 17:07:56 +0000 (17:07 +0000)
commit5e033aebebdb779fa514ab073ec5ad9fcc564a36
tree3a3722b4905ad3de3cc467108290ae4a779249f7
parenta80554223eb66b33c56abcaeb0aa1f007a39f5cf
sfc: Only use TX push if a single descriptor is to be written

Using TX push when notifying the NIC of multiple new descriptors in
the ring will very occasionally cause the TX DMA engine to re-use an
old descriptor.  This can result in a duplicated or partly duplicated
packet (new headers with old data), or an IOMMU page fault.  This does
not happen when the pushed descriptor is the only one written.

TX push also provides little latency benefit when a packet requires
more than one descriptor.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/nic.c