lkml.org 
[lkml]   [2005]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[ Patch ]: Fix loopback communication latency bug
    From
    Date
    Hi, Ingo

    For the option PREEMPT_RT, local communication latency is very very big,
    it is about 30 to 50 times as big as the option PREEMPT_NONE as far as
    local ping latency is concerned. Obviously, this should be fixed ASAP.

    This patch fixes this bug by changing netif_rx to netif_rx_ni in
    loopback device driver.

    --- linux-2.6.10-orig/drivers/net/loopback.c 2005-04-19
    15:12:34.000000000 +0800
    +++ linux-2.6.10/drivers/net/loopback.c 2005-04-19 15:13:28.000000000
    +0800
    @@ -153,7 +153,7 @@ static int loopback_xmit(struct sk_buff
    lb_stats->tx_packets++;
    put_cpu();

    - netif_rx(skb);
    + netif_rx_ni(skb);

    return(0);
    }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-19 10:22    [W:0.023 / U:8.788 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site