]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitfae8563b25f73dc584a07bcda7a82750ff4f7672
tree3a3722b4905ad3de3cc467108290ae4a779249f7
parentc73e787a8db9117d59b5180baf83203a42ecadca
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