]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: fec: implement rx_copybreak to improve rx performance
authorNimrod Andy <B38611@freescale.com>
Tue, 30 Sep 2014 01:28:05 +0000 (09:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Oct 2014 01:28:21 +0000 (21:28 -0400)
commit1b7bde6d659d30f171259cc2dfba8e5dab34e735
tree93990ae75315127b3c75a5e4441923889268e78f
parentce1a4ea3f125863bfbcb1afb76590ee2b7b93fbf
net: fec: implement rx_copybreak to improve rx performance

- Copy short frames and keep the buffers mapped, re-allocate skb instead of
  memory copy for long frames.
- Add support for setting/getting rx_copybreak using generic ethtool tunable

Changes V3:
* As Eric Dumazet's suggestion that removing the copybreak module parameter
  and only keep the ethtool API support for rx_copybreak.

Changes V2:
* Implements rx_copybreak
* Rx_copybreak provides module parameter to change this value
* Add tunable_ops support for rx_copybreak

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c