Skip to content
  • KY Srinivasan's avatar
    hv_netvsc: Fix a bug in netvsc_start_xmit() · b56fc3c5
    KY Srinivasan authored
    Commit b08cc791
    
     eliminated memory
    allocation in the packet send path:
    
        "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."
    
    This commit introduced a bug since it did not account for the case if the skb
    was cloned. Fix this bug.
    
    Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
    Tested-by: default avatarDexuan Cui <decui@microsoft.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b56fc3c5