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)
commitb08cc79155fc26d0d112b1470d1ece5034651a4b
treef1d9c3316edd991b7c08ae73099d0bd53e0c4b54
parentcbacec76bcd03ff21b37ac331e652b5a8f3ea644
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