From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH 0/2] lib: move Netlink wrapper to lib Date: Wed, 14 Mar 2018 13:08:55 +0100 Message-ID: <20180314120855.avapkwbwx6hecwmw@laranjeiro-vm.dev.6wind.com> References: <20180313142031.3fd01cbc@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Pascal Mazon , dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id CDBE25F59 for ; Wed, 14 Mar 2018 13:10:03 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id a20so18195947wmd.1 for ; Wed, 14 Mar 2018 05:10:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20180313142031.3fd01cbc@xeon-e3> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Mar 13, 2018 at 02:20:31PM -0700, Stephen Hemminger wrote: > On Tue, 13 Mar 2018 13:28:25 +0100 > Nelio Laranjeiro wrote: > > > TAP PMD uses a wrapper to communicate with Netlink through a socket. This > > wrapper can be useful for other PMD which may need to communicate also with > > the Linux kernel via Netlink. > > > > This series moves this wrapper to the lib level to let any PMD implement use > > it when necessary. > > > > Nelio Laranjeiro (2): > > lib: move Netlink code into a common library > > lib: add request Netlink messages > > > > MAINTAINERS | 3 + > > config/common_base | 6 ++ > > config/common_linuxapp | 1 + > > drivers/net/tap/Makefile | 3 +- > > drivers/net/tap/rte_eth_tap.c | 16 +-- > > drivers/net/tap/tap_flow.c | 118 ++++++++++----------- > > drivers/net/tap/tap_netlink.h | 42 -------- > > drivers/net/tap/tap_tcmsgs.c | 28 ++--- > > drivers/net/tap/tap_tcmsgs.h | 2 +- > > lib/Makefile | 2 + > > lib/librte_netlink/Makefile | 26 +++++ > > lib/librte_netlink/meson.build | 13 +++ > > .../librte_netlink/rte_netlink.c | 87 +++++++++++---- > > lib/librte_netlink/rte_netlink.h | 43 ++++++++ > > lib/librte_netlink/rte_netlink_version.map | 18 ++++ > > lib/meson.build | 2 +- > > mk/rte.app.mk | 1 + > > 17 files changed, 263 insertions(+), 148 deletions(-) > > delete mode 100644 drivers/net/tap/tap_netlink.h > > create mode 100644 lib/librte_netlink/Makefile > > create mode 100644 lib/librte_netlink/meson.build > > rename drivers/net/tap/tap_netlink.c => lib/librte_netlink/rte_netlink.c (77%) > > create mode 100644 lib/librte_netlink/rte_netlink.h > > create mode 100644 lib/librte_netlink/rte_netlink_version.map > > > > I might have raised this before; but having yet another netlink library is > not a great advantage. It would be much better to use a common external library > libmnl which is already available on every distribution. The question is more do we really want to have a dependency on a so small wrapper for a socket interface? -- Nélio Laranjeiro 6WIND