[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081016220624.512a1e61@extreme>
Date: Thu, 16 Oct 2008 22:06:24 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Neil Horman <nhorman@...driver.com>
Cc: Eric Dumazet <dada1@...mosbay.com>,
David Miller <davem@...emloft.net>, billfink@...dspring.com,
netdev@...r.kernel.org, kuznet@....inr.ac.ru, pekkas@...core.fi,
jmorris@...ei.org, yoshfuji@...ux-ipv6.org, kaber@...sh.net,
johnpol@....mipt.ru
Subject: Re: [PATCH] net: implement emergency route cache rebulds when
gc_elasticity is exceeded
O
> +static inline int rt_caching(struct net *net)
> +{
> + return net->ipv4.current_rt_cache_rebuild_count <=
> + net->ipv4.sysctl_rt_cache_rebuild_count;
> +}
Why not?
static inline bool rt_caching(const struct net *)
> +static inline int compare_hash_inputs(struct flowi *fl1, struct flowi *fl2)
> +{
> + return (__force u32)(((fl1->nl_u.ip4_u.daddr ^ fl2->nl_u.ip4_u.daddr) |
> + (fl1->nl_u.ip4_u.saddr ^ fl2->nl_u.ip4_u.saddr) |
> + (fl1->iif ^ fl2->iif)) == 0);
> +}
static inline bool compare_hash_inputs(const struct flowi *fl1, struct flowi *fl2)
...
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists