Re: netfilter: add xt_cpu match

From: Geert Uytterhoeven
Date: Mon Aug 09 2010 - 15:52:43 EST


On Wed, Aug 4, 2010 at 22:11, Linux Kernel Mailing List
<linux-kernel@xxxxxxxxxxxxxxx> wrote:
> Gitweb: Â Â http://git.kernel.org/linus/e8648a1fdb54da1f683784b36a17aa65ea56e931
> Commit: Â Â e8648a1fdb54da1f683784b36a17aa65ea56e931
> Parent: Â Â 7f1c407579519e71a0dcadc05614fd98acec585e
> Author: Â Â Eric Dumazet <eric.dumazet@xxxxxxxxx>
> AuthorDate: Fri Jul 23 12:59:36 2010 +0200
> Committer: ÂPatrick McHardy <kaber@xxxxxxxxx>
> CommitDate: Fri Jul 23 12:59:36 2010 +0200
>
> Â Ânetfilter: add xt_cpu match
>
> Â ÂIn some situations a CPU match permits a better spreading of
> Â Âconnections, or select targets only for a given cpu.

> --- a/net/netfilter/Kconfig
> +++ b/net/netfilter/Kconfig
> @@ -663,6 +663,15 @@ config NETFILTER_XT_MATCH_CONNTRACK
>
> Â Â Â Â ÂTo compile it as a module, choose M here. ÂIf unsure, say N.
>
> +config NETFILTER_XT_MATCH_CPU
> + Â Â Â tristate '"cpu" match support'
> + Â Â Â depends on NETFILTER_ADVANCED
> + Â Â Â help
> + Â Â Â Â CPU matching allows you to match packets based on the CPU
> + Â Â Â Â currently handling the packet.

Shouldn't this depend on SMP? Or does it make sense to have it on UP, too?

Gr{oetje,eeting}s,

            Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
             Â Â -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/