lkml.org 
[lkml]   [2013]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 17/18] net: vxlan: use wrapper functions of net_ratelimit() to simplify code
    Date
    net_ratelimited_function() is called to simplify code.

    Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
    ---
    drivers/net/vxlan.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
    index 2ef5b62..56583ab 100644
    --- a/drivers/net/vxlan.c
    +++ b/drivers/net/vxlan.c
    @@ -893,8 +893,7 @@ static bool vxlan_snoop(struct net_device *dev,
    if (f->state & NUD_NOARP)
    return true;

    - if (net_ratelimit())
    - netdev_info(dev,
    + net_ratelimited_function(netdev_info, dev,
    "%pM migrated from %pIS to %pIS\n",
    src_mac, &rdst->remote_ip, &src_ip);

    --
    1.8.2.1



    \
     
     \ /
      Last update: 2013-10-15 14:21    [W:4.575 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site