]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Use TX PIO for sufficiently small packets
authorJon Cooper <jcooper@solarflare.com>
Mon, 2 Sep 2013 17:24:29 +0000 (18:24 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 20 Sep 2013 18:31:52 +0000 (19:31 +0100)
commitf10634c1de2373700f433562ebd5d69693320b59
tree43955c4c76179b0e80449a4a2c3ae0cb77942006
parent4a2fcce1f2c3385cf248953218c711a31b7ce395
sfc: Use TX PIO for sufficiently small packets

Sufficiently small linear packets can be copied into the PIO buffer
with a single call to memcpy_toio().  Non-linear packets require an
intermediate cache-line-sized buffer.

[bwh: I wrote the first version of this, but Jon did the hard work to
 handle non-linear packets.]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ef10_regs.h
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tx.c