[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1421009969.9233.5.camel@perches.com>
Date: Sun, 11 Jan 2015 12:59:29 -0800
From: Joe Perches <joe@...ches.com>
To: Richard Weinberger <richard@....at>
Cc: davem@...emloft.net, coreteam@...filter.org,
netfilter-devel@...r.kernel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, bhutchings@...arflare.com,
john.fastabend@...il.com, herbert@...dor.apana.org.au,
vyasevic@...hat.com, jiri@...nulli.us, vfalico@...il.com,
therbert@...gle.com, edumazet@...gle.com, yoshfuji@...ux-ipv6.org,
jmorris@...ei.org, kuznet@....inr.ac.ru, kadlec@...ckhole.kfki.hu,
kaber@...sh.net, pablo@...filter.org, kay@...y.org,
stephen@...workplumber.org
Subject: Re: [PATCH 3/3] x_tables: Factor out 16bit aligment ifname_compare()
On Sun, 2015-01-11 at 21:52 +0100, Richard Weinberger wrote:
> arp_tables.c has a 16bit aligment ifname_compare(), factor
> it out to use it for all tables.
[]
> diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
[]
> @@ -331,14 +331,15 @@ static inline void xt_write_recseq_end(unsigned int addend)
> /*
> * This helper is performance critical and must be inlined
> */
> -static inline unsigned long ifname_compare_aligned(const char *_a,
> - const char *_b,
> - const char *_mask)
> +static inline unsigned long ifname_compare(const char *_a,
> + const char *_b,
> + const char *_mask)
Perhaps this would be better as bool ifname_compare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists