From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A467CA00C2; Sat, 25 Apr 2020 21:24:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 323051C18F; Sat, 25 Apr 2020 21:24:37 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by dpdk.org (Postfix) with ESMTP id 325C11C18E for ; Sat, 25 Apr 2020 21:24:36 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d24so5109347pll.8 for ; Sat, 25 Apr 2020 12:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=pYfl7r9SsFRvsIkGj0nWTBPgQsCO9vli6p0SoqXkp3o=; b=YsjwIYZ4hlend4wa+t0mfzGtI5b1FioQWXq8df0iCMvbXOHABhZHnLiwLYjrBms7+/ QL8RHL1MrEATwF2Ygj77TivaWfpchzDaW1CPSpVQ3uvuIupNO4pIkz0FWQgN98OiCuFQ x/C2l1ENxroqYg7NIqvDjgPNR/8CKsjKBlbiV0OcbwyjvG0nTKU7TSFfZ+ehbbjTYaqi izy0+QXJPPujJurr5YDJRYIBEn/JXnZelVCaaoYfQe0NHsEzLwcUa84IAHdX1wul5p4W hbcCCjwDWCahAs04o+DKifvCyuIOmMdENKrsFee9WRdIQ2+vd2AwgoFlafTGOX5+cBuS 7Zww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=pYfl7r9SsFRvsIkGj0nWTBPgQsCO9vli6p0SoqXkp3o=; b=Lp+mXFiPRUozIDP5qRqGpNVwG+931/jxbCXHC/F1+NO2IijYtMFnjVBpgyyuamafwE MrTEgX/AsSZlEJA2KlhboZdIninticvt46gmJmMULCZBG+brmFldm97sJO34LWxSU5VI xd3oYqRvEF782lgzTkvDh0+k9pkT3m4IDMgR7/RylNexBWHx0Puvu20Z9ai8OuD0jgx2 YU5leULrGDKMqzzdmk5cADqZMjvvMoSrwa592BziDnW37Ft5nO50Be7bTCQ73WTQtsgQ FW+Sn4mHEn8U75XBQx+NKMtyaxoorTR+yESBbHtRWBhPh/GwkEJyZaNaTHuJiR02yHKs o2+g== X-Gm-Message-State: AGi0Pubos/WZ3qBDB0uS+m4gktx07ARSWt/ltuj5jD/pxgLxUTQ8jK0c OUsgZ7kKDVfX9GEclUJ7vB8sabR8BdI= X-Google-Smtp-Source: APiQypKIopGI4RvoK9mGei6betY83c/Wc/XTqxpUfLWJk4L6jOdv0vJkfDh5hdId5Z2wRUvx9oupTQ== X-Received: by 2002:a17:902:b681:: with SMTP id c1mr14411636pls.143.1587842675299; Sat, 25 Apr 2020 12:24:35 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a196sm8774646pfd.184.2020.04.25.12.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 12:24:34 -0700 (PDT) Date: Sat, 25 Apr 2020 12:24:26 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20200425122426.351675d7@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] Common netlink parsing? 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" While adding error handling to tap device, I noticed we already have two places rolling their own netlink message handling (tap and mlx5) and now with proposed IF proxy there is a third. Netlink is non-trivial and easy to get wrong and doing error handling also requires work. There should be a common library for this. My preference would be to use pre-existing code (libmnl) but the DPDK maintainers seem to have an aversion to taking a dependency on any external code and reinvent everything (see RCU etc).