This patch series enables storing userdata for tables. In addition, using this userdata to save an optional comment when declaring new tables. * nf-next netfilter: nf_tables: add userdata attributes to nft_table include/net/netfilter/nf_tables.h | 2 ++ include/uapi/linux/netfilter/nf_tables.h | 2 ++ net/netfilter/nf_tables_api.c | 25 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+) * libnftnlt table: add userdata support include/libnftnl/table.h | 1 + include/libnftnl/udata.h | 6 ++++++ include/linux/netfilter/nf_tables.h | 1 + src/table.c | 33 +++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) * nftables src: add comment support when adding tables include/rule.h | 1 + src/mnl.c | 19 +++++++++-- src/netlink.c | 32 +++++++++++++++++++ src/parser_bison.y | 4 +++ src/rule.c | 5 +++ .../testcases/optionals/comments_table_0 | 0 .../testcases/optionals/comments_table_1 | 0 .../optionals/dumps/comments_table_0.nft | 0 .../optionals/dumps/comments_table_1.nft | 0 9 files changed, 59 insertions(+), 2 deletions(-) create mode 100755 tests/shell/testcases/optionals/comments_table_0 create mode 100755 tests/shell/testcases/optionals/comments_table_1 create mode 100644 tests/shell/testcases/optionals/dumps/comments_table_0.nft create mode 100644 tests/shell/testcases/optionals/dumps/comments_table_1.nft -- 2.27.0