]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
enic: implement rx_copybreak
authorGovindarajulu Varadarajan <_govind@gmx.com>
Tue, 2 Sep 2014 21:47:19 +0000 (03:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Sep 2014 19:12:20 +0000 (12:12 -0700)
commita03bb56e67c357980dae886683733dab5583dc14
tree787611409812bc85e37ebdbd09a86aa309b61f7b
parente020836d953eb1ce5b9221b32f4613646a4d5772
enic: implement rx_copybreak

Calling dma_map_single()/dma_unmap_single() is quite expensive compared
to copying a small packet. So let's copy short frames and keep the buffers
mapped.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c