hv_netvsc: Don't ask for additional head room in the skb
The rndis header is 116 bytes big and can be placed in the default head room that will be available in the skb. Since the netvsc packet is less than 48 bytes, we can use the skb control buffer for the netvsc packet. With these changes we don't need to ask for additional head room. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
074c2fe5ef
commit
c0eb454034
@@ -124,6 +124,9 @@ struct ndis_tcp_ip_checksum_info;
|
||||
/*
|
||||
* Represent netvsc packet which contains 1 RNDIS and 1 ethernet frame
|
||||
* within the RNDIS
|
||||
*
|
||||
* The size of this structure is less than 48 bytes and we can now
|
||||
* place this structure in the skb->cb field.
|
||||
*/
|
||||
struct hv_netvsc_packet {
|
||||
/* Bookkeeping stuff */
|
||||
|
Reference in New Issue
Block a user