]> git.baikalelectronics.ru Git - kernel.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)
commitf5ac3e64b0dd4a448f4eb4c3ed66ba50b92f22fc
tree787611409812bc85e37ebdbd09a86aa309b61f7b
parent21b4922fb2ec433ca3bf81e80805c1252c7eb3d5
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