From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E1B0FA0C50; Fri, 16 Jul 2021 10:23:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9CD4540151; Fri, 16 Jul 2021 10:23:51 +0200 (CEST) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by mails.dpdk.org (Postfix) with ESMTP id A06DD4014D for ; Fri, 16 Jul 2021 10:23:50 +0200 (CEST) Received: by mail-ej1-f46.google.com with SMTP id ga14so13922996ejc.6 for ; Fri, 16 Jul 2021 01:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tc4ZARvH6MYN7tDQNDWcdWoJZ0OTMbxczzHKwSxHouc=; b=tByTPh3Y2Z3kkaPvRzFShdgeIi4vQAZiaF6pJyx1aTGVgv/n/rfVLgUGG9cpm9RRVt QK00gob1rTAzA6EE0mLTGesX7NEdwuuDnxNSOoAHltbBNDrxtc4fVvAIg0OTYbOglOxW EJ9Yk8+rUCaRVlKn/Y9cbdlCwEF9gcf0kFR11XrINIk6kocoXC/xcxOdq1b0pFgdATzW +/o5tQ50oM6iXSEYEMZKz9uYpNkTmHfQYi8Oeflao+hG2pPmRZLv1cgiAU4hTO/+yBMt MkaUQmxzg5g3HxUjvXGpexFSKMR26PJuSzb0qSLSaVLm0zzFhb9g6uhWa01f4Z0sYfoh mUdA== 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:mime-version :content-transfer-encoding; bh=Tc4ZARvH6MYN7tDQNDWcdWoJZ0OTMbxczzHKwSxHouc=; b=lBBi/9rJ2eg/wJW8BpP9Y82EyKMYvZaePLq6SrHMhjVz3swaMxXBtJlTaJwTwK9PIF JMgrzP2sz+of6dEqYZSQgOVpWtHye5O7SyYDiSz/Pqaraxm2zScL/C0QEAUbDx4gQ2AA /dTYx0U002LfeRfc2Z7gU4udrj6SYUUqa42DjreT0paC8BDRBGE4wJnUB+421pM2pfcn jCXl/x073Qt3kV/6+Q4Jc8XiCdn/kOeq7KzFuYPtUPFv7kH/vBb5Nw9n1dHfwurSa6De mFD78ZtiCyY+MF0xt3KPEMdoqItS/53S1gvO2wGm6kB88juMVgHs0h6HmD5LYjGEIlYW Zthg== X-Gm-Message-State: AOAM530tEzIRJOYl2ZQUtLKRVn3VdpzkI1rrE9qmNh9LujBvGLqT5B00 fSEjQQToyToEe+kalSvemKBWbJih02QHK5IXkJmgdi+4ERYal5WQDoD+CMnlI+6vU34owxD4BWC 9k3vbEa1DAS0PhiFHyId9tffT9NQJf8Z/RbZm1WiyE1z4E++BmDBqxIJsyT9o00RL X-Google-Smtp-Source: ABdhPJwbZcrN81yP1XDR9w3AVEOA9mm26qdB99bGqRX12tFKtq8DbaKHu9w2qtIKtKwDN3aBZ66YQw== X-Received: by 2002:a17:906:b7c3:: with SMTP id fy3mr802273ejb.97.1626423830184; Fri, 16 Jul 2021 01:23:50 -0700 (PDT) Received: from localhost.localdomain ([155.93.216.150]) by smtp.gmail.com with ESMTPSA id q9sm2636777ejf.70.2021.07.16.01.23.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jul 2021 01:23:49 -0700 (PDT) From: Heinrich Kuhn To: dev@dpdk.org Cc: heinrich.kuhn@corigine.com, Heinrich Kuhn Date: Fri, 16 Jul 2021 10:23:07 +0200 Message-Id: <20210716082314.33865-1-heinrich.kuhn@netronome.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/7] Refactor the NFP PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This patch set restructures the NFP PMD, aligning it more with the common layout adopted by most other PMD's. Although the changes look fairly large, functionally nothing is added or removed from the driver and the existing code is mostly just reorganized into the familiar structure seen in other PMD's. Apart form adopting the common PMD layout this change should also aid in future feature development to the NFP PMD. The previous layout where most of the logic resided in a single file (nfp_net.c) would have become tedious to support going forward. Heinrich Kuhn (7): net/nfp: split rxtx headers into separate file net/nfp: move rxtx functions to their own file net/nfp: move CPP bridge to a separate file net/nfp: prototype common functions in header file net/nfp: move VF functions into new file net/nfp: move PF functions into new file net/nfp: batch file rename for consistency drivers/net/nfp/meson.build | 6 +- drivers/net/nfp/nfp_common.c | 1322 ++++++ drivers/net/nfp/nfp_common.h | 413 ++ drivers/net/nfp/nfp_cpp_bridge.c | 392 ++ drivers/net/nfp/nfp_cpp_bridge.h | 36 + .../net/nfp/{nfp_net_ctrl.h => nfp_ctrl.h} | 6 +- drivers/net/nfp/nfp_ethdev.c | 1099 +++++ drivers/net/nfp/nfp_ethdev_vf.c | 504 +++ .../net/nfp/{nfp_net_logs.h => nfp_logs.h} | 6 +- drivers/net/nfp/nfp_net.c | 3921 ----------------- drivers/net/nfp/nfp_rxtx.c | 1002 +++++ drivers/net/nfp/{nfp_net_pmd.h => nfp_rxtx.h} | 279 +- 12 files changed, 4815 insertions(+), 4171 deletions(-) create mode 100644 drivers/net/nfp/nfp_common.c create mode 100644 drivers/net/nfp/nfp_common.h create mode 100644 drivers/net/nfp/nfp_cpp_bridge.c create mode 100644 drivers/net/nfp/nfp_cpp_bridge.h rename drivers/net/nfp/{nfp_net_ctrl.h => nfp_ctrl.h} (99%) create mode 100644 drivers/net/nfp/nfp_ethdev.c create mode 100644 drivers/net/nfp/nfp_ethdev_vf.c rename drivers/net/nfp/{nfp_net_logs.h => nfp_logs.h} (94%) delete mode 100644 drivers/net/nfp/nfp_net.c create mode 100644 drivers/net/nfp/nfp_rxtx.c rename drivers/net/nfp/{nfp_net_pmd.h => nfp_rxtx.h} (54%) -- 2.30.1 (Apple Git-130)