summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/ef10_regs.h
diff options
context:
space:
mode:
authorJon Cooper <jcooper@solarflare.com>2013-09-02 21:24:29 +0400
committerBen Hutchings <bhutchings@solarflare.com>2013-09-20 22:31:52 +0400
commitee45fd92c739db5b7950163d91dfe5f016af6d24 (patch)
tree43955c4c76179b0e80449a4a2c3ae0cb77942006 /drivers/net/ethernet/sfc/ef10_regs.h
parent0fe5565b64667677a405cf14df49a7af8de4bff4 (diff)
downloadlinux-ee45fd92c739db5b7950163d91dfe5f016af6d24.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10_regs.h')
-rw-r--r--drivers/net/ethernet/sfc/ef10_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef10_regs.h b/drivers/net/ethernet/sfc/ef10_regs.h
index b3f4e3755fd9..207ac9a1e3de 100644
--- a/drivers/net/ethernet/sfc/ef10_regs.h
+++ b/drivers/net/ethernet/sfc/ef10_regs.h
@@ -315,6 +315,7 @@
#define ESF_DZ_TX_PIO_TYPE_WIDTH 1
#define ESF_DZ_TX_PIO_OPT_LBN 60
#define ESF_DZ_TX_PIO_OPT_WIDTH 3
+#define ESE_DZ_TX_OPTION_DESC_PIO 1
#define ESF_DZ_TX_PIO_CONT_LBN 59
#define ESF_DZ_TX_PIO_CONT_WIDTH 1
#define ESF_DZ_TX_PIO_BYTE_CNT_LBN 32