alistair23-linux/drivers/net/ethernet
Christophe Leroy 070e1f0182 net: fs_enet: don't unmap DMA when packet len is below copybreak
When the length of the packet is below the defined copybreak limit,
the received packet is copied into a newly allocated skb in order
to reuse the skb. This is only interesting if it allow us to avoid
a new DMA mapping. We shall therefore not DMA unmap and remap the
skb->data. Instead, we invalidate the cache
with dma_sync_single_for_cpu() once the received data has been
copied into the new skb.

The following measures have been obtained on a mpc885 running at 132Mhz.
Measurement is done using the timebase with packets sent to the target
with 'ping -s 1' (packet len is 60):
* Without this patch: 182 TB ticks
* With this patch: 143 TB ticks

As a comparison, if we set the copybreak limit to 0, then we get
148 TB ticks. It means that without this patch, duration is even
worse when copying received data to a new skb instead of
allocating a new skb for next packet to be received

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-10 21:17:13 -07:00
..
3com
8390
adaptec
adi
aeroflex
agere net: ethernet: et131x: constify ethtool_ops structures 2016-08-31 09:22:30 -07:00
allwinner
alteon
altera
amazon net: ena: change the return type of ena_set_push_mode() to be void. 2016-08-23 17:42:33 -07:00
amd xgbe: constify get_netdev_ops and get_ethtool_ops 2016-08-31 14:17:30 -07:00
apm net: xgene: fix backward compatibility fix 2016-09-01 10:00:42 -07:00
apple
arc net: arc_emac: mark arc_mdio_reset() static 2016-09-06 15:58:59 -07:00
atheros alx: add module parameter to enable msi-x support 2016-09-09 20:51:22 -07:00
aurora
broadcom bnx2x: Add support for segmentation of tunnels with outer checksums 2016-09-06 14:18:45 -07:00
brocade
cadence net: ethernet: macb: Add support for rx_clk 2016-08-18 20:58:42 -07:00
calxeda
cavium liquidio:CN23XX pause frame support 2016-09-02 17:11:31 -07:00
chelsio cxgb4: Add support for ndo_get_vf_config 2016-09-04 11:46:00 -07:00
cirrus
cisco
davicom
dec
dlink
emulex be2net: Update the driver version to 11.1.0.0 2016-09-07 22:44:56 -07:00
ezchip
faraday
freescale net: fs_enet: don't unmap DMA when packet len is below copybreak 2016-09-10 21:17:13 -07:00
fujitsu
hisilicon net: hisilicon: constify ethtool_ops structures 2016-08-31 09:22:31 -07:00
hp
i825xx
ibm ibmvnic: fix error return code in ibmvnic_probe() 2016-08-25 16:41:00 -07:00
intel ixgbe: Eliminate useless message and improve logic 2016-08-30 22:12:35 -07:00
marvell sky2: use napi_complete_done 2016-09-01 14:09:51 -07:00
mediatek net: ethernet: mediatek: enhance RX path by aggregating more SKBs into NAPI 2016-09-06 13:33:19 -07:00
mellanox net/mlx4_en: protect ring->xdp_prog with rcu_read_lock 2016-09-06 13:39:33 -07:00
micrel
microchip
moxa
myricom
natsemi
neterion
netronome
nuvoton net: ethernet: nuvoton: fix spelling mistake: "aligment" -> "alignment" 2016-08-18 23:29:43 -07:00
nvidia
nxp net: lpc_eth: Check clk_prepare_enable() error 2016-08-23 17:10:16 -07:00
oki-semi
packetengines
pasemi
qlogic qed: mark symbols static where possible 2016-09-09 19:37:00 -07:00
qualcomm net: emac: emac gigabit ethernet controller driver 2016-09-01 23:32:05 -07:00
rdc
realtek 8139cp: Fix one possible deadloop in cp_rx_poll 2016-08-25 17:02:48 -07:00
renesas ravb: avoid unused function warnings 2016-08-30 23:32:11 -07:00
rocker bridge: switchdev: Add forward mark support for stacked devices 2016-08-26 13:13:36 -07:00
samsung
seeq
sfc sfc: check MTU against minimum threshold 2016-09-06 16:54:18 -07:00
sgi
silan
sis
smsc net: smsc911x: request and deassert optional RESET GPIO 2016-09-07 21:05:54 -07:00
stmicro net: stmmac: dwmac-rk: add pd_gmac support for rk3399 2016-09-02 17:08:57 -07:00
sun
synopsys dwc_eth_qos: constify ethtool_ops structures 2016-08-31 09:22:31 -07:00
tehuti net: tehuti: fix typo: "eneble" -> "enable" 2016-08-21 15:21:36 -07:00
ti net: ti: cpmac: Fix compiler warning due to type confusion 2016-09-04 11:47:20 -07:00
tile
toshiba
tundra
via via-velocity: remove null pointer check on array tdinfo->skb_dma 2016-09-09 18:17:33 -07:00
wiznet
xilinx net: ethernet: xilinx: Enable emaclite for MIPS 2016-09-08 16:06:37 -07:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
netx-eth.c