lkml.org 
[lkml]   [2011]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[35/71] PCH_GbE : Fixed the issue of checksum judgment
    2.6.38-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>

    commit 5d05a04d283061b586e8dc819cfa6f4b8cfd5948 upstream.

    The checksum judgment was mistaken.
    Judgment result
    0:Correct 1:Wrong

    This patch fixes the issue.

    Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/net/pch_gbe/pch_gbe_main.c | 9 ++++-----
    1 file changed, 4 insertions(+), 5 deletions(-)

    --- a/drivers/net/pch_gbe/pch_gbe_main.c
    +++ b/drivers/net/pch_gbe/pch_gbe_main.c
    @@ -1493,12 +1493,11 @@ pch_gbe_clean_rx(struct pch_gbe_adapter
    /* Write meta date of skb */
    skb_put(skb, length);
    skb->protocol = eth_type_trans(skb, netdev);
    - if ((tcp_ip_status & PCH_GBE_RXD_ACC_STAT_TCPIPOK) ==
    - PCH_GBE_RXD_ACC_STAT_TCPIPOK) {
    - skb->ip_summed = CHECKSUM_UNNECESSARY;
    - } else {
    + if (tcp_ip_status & PCH_GBE_RXD_ACC_STAT_TCPIPOK)
    skb->ip_summed = CHECKSUM_NONE;
    - }
    + else
    + skb->ip_summed = CHECKSUM_UNNECESSARY;
    +
    napi_gro_receive(&adapter->napi, skb);
    (*work_done)++;
    pr_debug("Receive skb->ip_summed: %d length: %d\n",



    \
     
     \ /
      Last update: 2011-05-19 20:21    [W:0.020 / U:0.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site