]> git.baikalelectronics.ru Git - kernel.git/commit
bgmac: pass received packet to the netif instead of copying it
authorRafał Miłecki <zajec5@gmail.com>
Wed, 30 Oct 2013 07:00:00 +0000 (08:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2013 20:58:19 +0000 (16:58 -0400)
commitc0e9ca9679a31092aab2d5a9fcc5d7e1d4352462
treeb16f6ec80c8654d29174620e12a4ef3f8770a569
parent1108d99aa25d5bc775aa18f1e470194ae8c707f0
bgmac: pass received packet to the netif instead of copying it

Copying whole packets with skb_copy_from_linear_data_offset is a pretty
bad idea. CPU was spending time in __copy_user_common and network
performance was lower. With the new solution iperf-measured speed
increased from 116Mb/s to 134Mb/s.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c