Skip to content

more various cleanups related to struct datatype

Thomas Haller netfilter-devel 1 version Applied

Status from this message: Applied this little patch, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5datatype: make "flags" field of datatype struct simple booleansinclude/datatype.h src/datatype.c src/meta.c +3 more+30 -341 reply
2/5datatype: don't clone static name/desc strings for datatypeinclude/datatype.h src/datatype.c+12 -50 replies
3/5datatype: don't clone datatype in set_datatype_alloc() if byteorder already matchessrc/datatype.c src/evaluate.c+12 -130 replies
4/5datatype: extend set_datatype_alloc() to change sizeinclude/datatype.h src/datatype.c src/evaluate.c +2 more+37 -260 replies
5/5datatype: use xmalloc() for allocating datatype in datatype_clone()src/datatype.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/5] more various cleanups related to struct datatype

This is a followup to

Subject: [PATCH nft 0/9] various cleanups related to enums and struct datatype
Date: Wed, 20 Sep 2023 16:26:01 +0200

From that patchset, several patches were merged. Except:

1) [PATCH nft 8/9] datatype: use __attribute__((packed)) instead of enum bitfields This patch was rejected. It's gone and no longer present.

2) [PATCH nft 3/9] datatype: drop flags field from datatype
This patch become the new "datatype: make "flags" field of datatype struct simple booleans" in this series. The flag DTYPE_F_ALLOC flag is preserved (as new "f_alloc" field).

Thomas Haller (5):
datatype: make "flags" field of datatype struct simple booleans
datatype: don't clone static name/desc strings for datatype
datatype: don't clone datatype in set_datatype_alloc() if byteorder
already matches
datatype: extend set_datatype_alloc() to change size
datatype: use xmalloc() for allocating datatype in datatype_clone()

 include/datatype.h        | 39 +++++++++++++------------
 src/datatype.c            | 61 +++++++++++++++++++++++++--------------
 src/evaluate.c            | 43 ++++++++++++---------------
 src/meta.c                |  2 +-
 src/netlink.c             |  4 +--
 src/netlink_delinearize.c |  2 +-
 src/payload.c             |  7 ++---
 src/rt.c                  |  2 +-
 src/segtree.c             |  5 ++--
 9 files changed, 89 insertions(+), 76 deletions(-)
Signature · 1 line
2.41.0