From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 01F58548B for ; Tue, 13 Mar 2018 13:29:44 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id l8so7791961wrg.5 for ; Tue, 13 Mar 2018 05:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=UmMV6uZf45FACv/wuuOO8HOdwZeJ64IaOl8eJYq2B9c=; b=MEJqmb+eLrGSbFhf5mS7v7AgM4+DXmVuwDT7oKbfChu/SpBVbVZ4WPvjinzlziPvj1 MNSV7fZE3dRPl6c61OBFEs8urqHX7MdRpK9Wc6JUHAtj0C93PwKwQyVyYMuHTw5iM1nY Rnmg+J/kRDyKnJPnAmFNpow9QfI+srdBlDHDoM6RL6IRdgEDcBir02wuN6wm0cT0Ydu8 JLxpeVab4xySW+Yxgl0bgIqxPiO3ykXRST9LFuYT7dRSCzOCtKX0N8XtgzMmGRTI6PnZ pPl69PHCTCu+uL6kaQBNI2r0gS1TMWT1eH3nMBUuUAihiP7FRf2LeGAg4itxYsoJnW1X 1ppA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UmMV6uZf45FACv/wuuOO8HOdwZeJ64IaOl8eJYq2B9c=; b=AcKK7Q2x7j0xPsmi7iEpVCUNlcmlFRjuPSWlz2ivYuPFzwrY/fETN1MLvfx6W8WXgW 8ei+WltX87pv/PrN+imXqyCJoMfMZ+RTysxKn0oxTdJVC5cdR85hVzsa1uXyjN/HL/xq 7JiI65iC3vEVIDcr0//P7eNzh14oxYaXF9t/wqStvZlTixj24zvAQeVwBK+mZ2/c8Wnb TORjLzGlxK/aUOYFekQtH1fW1QHEqyPPIfMv9sy+XUaTkXdnF5sdhmBgjHzWrYfMXHyA KNsAtA9JW5OfhLT7sfRo4xrpxERuEeoF4CkdwDHFIUleSe0b6w3vMF5i0PETj4ikuk2U DGrg== X-Gm-Message-State: AElRT7HiY0CYmWZoOk1nMXdkio86XIFePgyjxbGOco2nUk+YlLgWcgeo 1f0+FTobxFkIS6A+YyfjYCk3626Gbg== X-Google-Smtp-Source: AG47ELvuQpHDiUyDL/0vvrjJlLrtYugio1fhhoEksk/eSDW59l2Pyz9CuYazD0NEem7CAsblb7/k5Q== X-Received: by 10.28.68.132 with SMTP id r126mr659774wma.118.1520944184613; Tue, 13 Mar 2018 05:29:44 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id s8sm176148wrg.5.2018.03.13.05.29.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 05:29:44 -0700 (PDT) From: Nelio Laranjeiro To: Pascal Mazon Cc: dev@dpdk.org Date: Tue, 13 Mar 2018 13:28:25 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 0/2] lib: move Netlink wrapper to lib X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2018 12:29:45 -0000 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 -- 2.11.0