From: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>,
netfilter-devel@vger.kernel.org
Cc: pablo@netfilter.org
Subject: Re: [nftables kernel PATCH v2] netfilter: nf_tables: fix nft_meta_target module
Date: Thu, 12 Dec 2013 14:27:17 +0200 [thread overview]
Message-ID: <52A9ABA5.4020200@linux.intel.com> (raw)
In-Reply-To: <20131212111201.4462.9945.stgit@nfdev.cica.es>
Hi Arturo,
> * @NFTA_META_DREG: destination register (NLA_U32)
> + * @NFTA_META_VALUE: source data to load (NLA_U32)
> * @NFTA_META_KEY: meta data item to load (NLA_U32: nft_meta_keys)
> */
> enum nft_meta_attributes {
> NFTA_META_UNSPEC,
> NFTA_META_DREG,
> + NFTA_META_VALUE,
> NFTA_META_KEY,
You have to move NFTA_META_VALUE after NFTA_META_KEY, or then it will
break with 3.13 kernel API version.
(your patch is going to be part of 3.14 I guess)
> __NFTA_META_MAX
> };
> (...)
> +
> static const struct nla_policy nft_meta_policy[NFTA_META_MAX + 1] = {
> [NFTA_META_DREG] = { .type = NLA_U32 },
> + [NFTA_META_VALUE] = { .type = NLA_U32 },
> [NFTA_META_KEY] = { .type = NLA_U32 },
So switch these 2 last lines accordingly.
Besides that the _match/_target naming looks still awkward to me.
But _get/_set would be more "semantically relevant" imho.
Of course it's purely subjective, as usual with naming ;)
Tomasz
next prev parent reply other threads:[~2013-12-12 12:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-12 11:12 [nftables kernel PATCH v2] netfilter: nf_tables: fix nft_meta_target module Arturo Borrero Gonzalez
2013-12-12 12:27 ` Tomasz Bursztyka [this message]
2013-12-12 12:40 ` Arturo Borrero Gonzalez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52A9ABA5.4020200@linux.intel.com \
--to=tomasz.bursztyka@linux.intel.com \
--cc=arturo.borrero.glez@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.