net: fs_enet: Implement NETIF_F_SG feature
authorLEROY Christophe <christophe.leroy@c-s.fr>
Mon, 2 Feb 2015 17:06:54 +0000 (18:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Feb 2015 21:13:04 +0000 (13:13 -0800)
Freescale ethernet controllers have the capability to re-assemble fragmented
data into a single ethernet frame. This patch uses this capability and
implements NETIP_F_SG feature into the fs_enet ethernet driver.

On a MPC885, I get 53% performance improvement on a ftp transfer of a 15Mb file:
  * Without the patch : 2,8 Mbps
  * With the patch : 4,3 Mbps

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/fs_enet/fs_enet.h