• Vitaly Kuznetsov's avatar
    hv_netvsc: try linearizing big SKBs before dropping them · e88f7e07
    Vitaly Kuznetsov authored
    In netvsc_start_xmit() we can handle packets which are scattered around not
    more than MAX_PAGE_BUFFER_COUNT-2 pages. It is, however, easy to create a
    packet which is not big in size but occupies more pages (e.g. if it uses frags
    on compound pages boundaries). When we drop such packet it cases sender to try
    resending it but in most cases it will try resending the same packet which will
    also get dropped, this will cause the particular connection to stick. To solve
    the issue we can try linearizing skb.
    Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e88f7e07
netvsc_drv.c 24.8 KB