[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e9dbd5f6-4a8d-1763-5533-1aa39dd6ff25@cumulusnetworks.com>
Date: Thu, 13 Oct 2016 15:39:23 -0600
From: David Ahern <dsa@...ulusnetworks.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: Require exact match for TCP socket lookups if dif is
l3mdev
On 10/13/16 3:29 PM, Eric Dumazet wrote:
> Since netif_index_is_l3_master() is not cheap, can you reorder the
> test ?
>
> if (!net->ipv4.sysctl_tcp_l3mdev_accept)
> return netif_index_is_l3_master(net, dif);
sure. Since this use case is called under rcu_read_lock I can make a netif_index_is_l3_master_rcu which saves a few cycles.
Powered by blists - more mailing lists