netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
	nicolas.dichtel@6wind.com, donald.hunter@gmail.com,
	jiri@resnulli.us, sdf@google.com,
	Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net-next v2 14/15] tools: ynl: remove the libmnl dependency
Date: Mon, 26 Feb 2024 13:20:20 -0800	[thread overview]
Message-ID: <20240226212021.1247379-15-kuba@kernel.org> (raw)
In-Reply-To: <20240226212021.1247379-1-kuba@kernel.org>

We don't use libmnl any more.

Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
 tools/net/ynl/lib/ynl-priv.h   | 4 +---
 tools/net/ynl/lib/ynl.c        | 1 -
 tools/net/ynl/samples/Makefile | 2 +-
 tools/net/ynl/ynl-gen-c.py     | 1 -
 4 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/tools/net/ynl/lib/ynl-priv.h b/tools/net/ynl/lib/ynl-priv.h
index 791b3f665e26..8beacba00072 100644
--- a/tools/net/ynl/lib/ynl-priv.h
+++ b/tools/net/ynl/lib/ynl-priv.h
@@ -2,8 +2,8 @@
 #ifndef __YNL_C_PRIV_H
 #define __YNL_C_PRIV_H 1
 
+#include <stdbool.h>
 #include <stddef.h>
-#include <libmnl/libmnl.h>
 #include <linux/types.h>
 
 struct ynl_parse_arg;
@@ -12,8 +12,6 @@ struct ynl_parse_arg;
  * YNL internals / low level stuff
  */
 
-/* Generic mnl helper code */
-
 enum ynl_policy_type {
 	YNL_PT_REJECT = 1,
 	YNL_PT_IGNORE,
diff --git a/tools/net/ynl/lib/ynl.c b/tools/net/ynl/lib/ynl.c
index 9d028929117a..f8a66ae88ba9 100644
--- a/tools/net/ynl/lib/ynl.c
+++ b/tools/net/ynl/lib/ynl.c
@@ -6,7 +6,6 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <linux/types.h>
-#include <libmnl/libmnl.h>
 #include <linux/genetlink.h>
 #include <sys/socket.h>
 
diff --git a/tools/net/ynl/samples/Makefile b/tools/net/ynl/samples/Makefile
index 28bdb1557a54..1d33e98e3ffe 100644
--- a/tools/net/ynl/samples/Makefile
+++ b/tools/net/ynl/samples/Makefile
@@ -9,7 +9,7 @@ ifeq ("$(DEBUG)","1")
   CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
 endif
 
-LDLIBS=-lmnl ../lib/ynl.a ../generated/protos.a
+LDLIBS=../lib/ynl.a ../generated/protos.a
 
 SRCS=$(wildcard *.c)
 BINS=$(patsubst %.c,%,${SRCS})
diff --git a/tools/net/ynl/ynl-gen-c.py b/tools/net/ynl/ynl-gen-c.py
index 375d5f5e3052..2f5febfe66a1 100755
--- a/tools/net/ynl/ynl-gen-c.py
+++ b/tools/net/ynl/ynl-gen-c.py
@@ -2677,7 +2677,6 @@ _C_KW = {
 
     if args.mode == "user":
         if not args.header:
-            cw.p("#include <libmnl/libmnl.h>")
             cw.p("#include <linux/genetlink.h>")
             cw.nl()
             for one in args.user_header:
-- 
2.43.2


  parent reply	other threads:[~2024-02-26 21:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-26 21:20 [PATCH net-next v2 00/15] tools: ynl: stop using libmnl Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 01/15] tools: ynl: give up on libmnl for auto-ints Jakub Kicinski
2024-02-27 10:38   ` Nicolas Dichtel
2024-02-26 21:20 ` [PATCH net-next v2 02/15] tools: ynl: create local attribute helpers Jakub Kicinski
2024-02-27 11:05   ` Nicolas Dichtel
2024-02-27 14:56     ` Jakub Kicinski
2024-02-27 15:10       ` Nicolas Dichtel
2024-02-26 21:20 ` [PATCH net-next v2 03/15] tools: ynl: create local for_each helpers Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 04/15] tools: ynl: create local nlmsg access helpers Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 05/15] tools: ynl: create local ARRAY_SIZE() helper Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 06/15] tools: ynl: make yarg the first member of struct ynl_dump_state Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 07/15] tools: ynl-gen: remove unused parse code Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 08/15] tools: ynl: wrap recv() + mnl_cb_run2() into a single helper Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 09/15] tools: ynl: use ynl_sock_read_msgs() for ACK handling Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 10/15] tools: ynl: stop using mnl_cb_run2() Jakub Kicinski
2024-02-27 11:06   ` Nicolas Dichtel
2024-02-26 21:20 ` [PATCH net-next v2 11/15] tools: ynl: switch away from mnl_cb_t Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 12/15] tools: ynl: switch away from MNL_CB_* Jakub Kicinski
2024-02-26 21:20 ` [PATCH net-next v2 13/15] tools: ynl: stop using mnl socket helpers Jakub Kicinski
2024-02-26 21:20 ` Jakub Kicinski [this message]
2024-02-26 21:20 ` [PATCH net-next v2 15/15] tools: ynl: use MSG_DONTWAIT for getting notifications Jakub Kicinski

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=20240226212021.1247379-15-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=davem@davemloft.net \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@google.com \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.com \
    --cc=pabeni@redhat.com \
    --cc=sdf@google.com \
    /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 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).