• K
    hv_netvsc: Fix a bug in netvsc_start_xmit() · b56fc3c5
    KY Srinivasan 提交于
    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: NK. Y. Srinivasan <kys@microsoft.com>
    Tested-by: NDexuan Cui <decui@microsoft.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    b56fc3c5
hyperv_net.h 30.6 KB