• V
    ehea: Fix TSO and hw checksums with non-accelerated vlan packets. · be1d1486
    Vlad Yasevich 提交于
    The driver claims that it can do TSO and IP checksums on vlan
    devices and also allows user to control vlan acceleration offloading.
    This makes it possible to push traffic to this driver that has TSO or
    partial checksums set, but also have a non-accelearted vlan
    header.  In this case, the driver will fail to correctly
    identify such traffic and will not correctly perform
    segmentation and checksum calculation.
    
    Fix this by using vlan_get_protocol() helper instead of
    assuming skb->protocol always has this information.
    
    CC: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
    Signed-off-by: NVladislav Yasevich <vyasevic@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    be1d1486
ehea_main.c 84.1 KB