]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Eliminate memory allocation in the packet send path
authorKY Srinivasan <kys@microsoft.com>
Mon, 30 Mar 2015 04:08:42 +0000 (21:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 18:12:36 +0000 (14:12 -0400)
commitd5daf9d942f79808c7253d009615f99e36707eac
treef1d9c3316edd991b7c08ae73099d0bd53e0c4b54
parent4f0211be3419c7bb9fc4964d5528bdab11197f7a
hv_netvsc: Eliminate memory allocation in the packet send path

The network protocol used to communicate with the host is the remote ndis (rndis)
protocol. We need to decorate each outgoing packet with a rndis header and
additional rndis state (rndis per-packet state). To manage this state, we
currently allocate memory in the transmit path. Eliminate this allocation by
requesting additional head room in the skb.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c