netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] nftables: support concat types in sets
@ 2014-12-12  0:22 Patrick McHardy
  2014-12-12  0:22 ` [PATCH 1/6] datatype: generate name for concat types Patrick McHardy
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Patrick McHardy @ 2014-12-12  0:22 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

This patchset is a first step to implement full concatenation support.
It adds support to specify concat types in set declarations and to
reconstruct the proper type from the data stored in the kernel.

The changes consist of:

 * generate proper names for the concat types for use in error reporting
 * don't use ->size to store the number of subtypes, the size will be
   needed to hold the entire concatenated data size, which may include
   padding
 * change concat_type_alloc() to construct the type from the numeric id
 * change the grammar to support concat type specification

The next step will be to change register addressing to 4 byte register
size and support loads and stores to spawn multiple registers. Patches
for this will follow shorly.


Patrick McHardy (6):
      datatype: generate name for concat types
      datatype: add new subtypes field to account number of concat data types
      datatype: add define for maximum number of bits and mask of datatype id
      utils: add fls()
      datatype: change concat_type_alloc() to construct type from id
      parser: alloc specifying concat types in set declarations

 include/datatype.h |  7 +++++-
 include/utils.h    | 37 ++++++++++++++++++++++++++++++++
 src/datatype.c     | 30 ++++++++++++++++++--------
 src/evaluate.c     | 11 ++++++----
 src/netlink.c      |  2 ++
 src/parser_bison.y | 63 +++++++++++++++++++++++++++++++++++-------------------
 6 files changed, 114 insertions(+), 36 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-12  0:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-12  0:22 [PATCH 0/6] nftables: support concat types in sets Patrick McHardy
2014-12-12  0:22 ` [PATCH 1/6] datatype: generate name for concat types Patrick McHardy
2014-12-12  0:22 ` [PATCH 2/6] datatype: add new subtypes field to account number of concat data types Patrick McHardy
2014-12-12  0:22 ` [PATCH 3/6] datatype: add define for maximum number of bits and mask of datatype id Patrick McHardy
2014-12-12  0:22 ` [PATCH 4/6] utils: add fls() Patrick McHardy
2014-12-12  0:22 ` [PATCH 5/6] datatype: change concat_type_alloc() to construct type from id Patrick McHardy
2014-12-12  0:22 ` [PATCH 6/6] parser: alloc specifying concat types in set declarations Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).