[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <feeb7b23-44cf-cbef-e014-723e8d0647dd@cumulusnetworks.com>
Date: Fri, 17 Feb 2017 10:36:05 +0100
From: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
To: Roopa Prabhu <roopa@...ulusnetworks.com>, davem@...emloft.net
Cc: netdev@...r.kernel.org, jiri@...nulli.us, idosch@...lanox.com
Subject: Re: [PATCH net-next] bridge: don't indicate expiry on NTF_EXT_LEARNED
fdb entries
On 16/02/17 22:38, Roopa Prabhu wrote:
> From: Roopa Prabhu <roopa@...ulusnetworks.com>
>
> added_by_external_learn fdb entries are added and expired by
> external entities like switchdev driver or external controllers.
> ageing is already disabled for such entries. Hence, don't
> indicate expiry for such fdb entries.
>
> CC: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
> CC: Jiri Pirko <jiri@...nulli.us>
> CC: Ido Schimmel <idosch@...lanox.com>
> Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
> ---
> net/bridge/br_fdb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
> index 4ac1157..4f598dc 100644
> --- a/net/bridge/br_fdb.c
> +++ b/net/bridge/br_fdb.c
> @@ -65,7 +65,7 @@ static inline unsigned long hold_time(const struct net_bridge *br)
> static inline int has_expired(const struct net_bridge *br,
> const struct net_bridge_fdb_entry *fdb)
> {
> - return !fdb->is_static &&
> + return !fdb->is_static && !fdb->added_by_external_learn &&
> time_before_eq(fdb->updated + hold_time(br), jiffies);
> }
>
>
Good catch,
Reviewed-by: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
Powered by blists - more mailing lists