Message ID | 20210119115616.1807-1-heinrich.kuhn@netronome.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 193E8A0A05; Tue, 19 Jan 2021 12:56:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD0A3140D27; Tue, 19 Jan 2021 12:56:39 +0100 (CET) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mails.dpdk.org (Postfix) with ESMTP id B9A08140D1D for <dev@dpdk.org>; Tue, 19 Jan 2021 12:56:37 +0100 (CET) Received: by mail-ej1-f48.google.com with SMTP id hs11so25770386ejc.1 for <dev@dpdk.org>; Tue, 19 Jan 2021 03:56:37 -0800 (PST) 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=wS4dWxIK+t0h6twLIPum78d2EeL3SFda9acfHPA2rAg=; b=J3jJG/BU1blXkxydMqndr+HVgMcauRz2Fw0/xYR22JsK34ltm6Q68BVQHdJsIFOA44 sZ93kUwCxyEBc3T27VfW6XAFnDiXypouc7IxUykIFrIef2XLLLsh8nt4RCWX1KLCwqgr Y/02J3BsykMum2v7LwHEWsa2KPQDVDPplwYDOL89fxyPQgM9bWkKAHpMDrHkwAgsskIa xQYDiIYEybxkt8NSVY0f0x6H2Yso9iKNdJdMs6dU7LjkvhTjNul7iWjqBhojqIIuw7qp e6ja9VwLlAeUDQQFhKGH2v3jJKDQL+wnBihe71LB0R+d0TFnJa1djJD8Yh5jrk+NYMvE TUFg== 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=wS4dWxIK+t0h6twLIPum78d2EeL3SFda9acfHPA2rAg=; b=h4PXgaTECI9L7444qYaJcenAS4rlwYQYOkNkdiJL1Va/ccTfb/uy+6zf2MeEZfwI/e utyRuphXBm5YUkMIJ7XJlO5oaVHJhSTcK63pwRo2PoABlRIyJOcjFBAZeOg1vbChnLZG IOeUGOpnx0dw8X2BTa9t2JwxCHMpwgl3H/oU/RUTUYSh6BperTYVZfbx8pbXCrpsbKXQ A3RaRvK3IKsqu64UWHWpxcQt1Mp23qelSsRFSCH3QP/htOmQgQX5fYzZjYBTFULi9Jok +OImyiOool1o91J0ScsG/AK2KrOMzdUb3WVsYL8VddlasmJzZDRv9Qh4mHEDc8TPGb2R G0qw== X-Gm-Message-State: AOAM533NavXgitIHGVXzE7uGkCdYKcr71l35IZKseOi/B04uJiyLBHY8 ZjNliYD9QdMlwjBiFcZi9hgRzhq+wYIvf6Hz5dxJeNlGniAIIoQMQ/vspMVGn92iaOGWOXP9boU Dmi1gb35oyhvf+VuI+YYPIsfunJRdVXvmpb2vjT2NvqwHyqi1mOotz8AOU7ffONjg1zo= X-Google-Smtp-Source: ABdhPJw86QZw2vVI2YRH4a5ZgYI1gS8CipIhSvftaIO5sP2v8CfU1elLo/GWj7hLdeWVE3/fmczIeg== X-Received: by 2002:a17:906:a445:: with SMTP id cb5mr2766438ejb.0.1611057397372; Tue, 19 Jan 2021 03:56:37 -0800 (PST) Received: from localhost.localdomain (dsl-197-245-67-23.voxdsl.co.za. [197.245.67.23]) by smtp.gmail.com with ESMTPSA id b17sm2406467ejj.83.2021.01.19.03.56.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2021 03:56:36 -0800 (PST) From: Heinrich Kuhn <heinrich.kuhn@netronome.com> To: dev@dpdk.org Cc: Heinrich Kuhn <heinrich.kuhn@netronome.com> Date: Tue, 19 Jan 2021 13:56:14 +0200 Message-Id: <20210119115616.1807-1-heinrich.kuhn@netronome.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] free port private data in dev_close callback X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
free port private data in dev_close callback
|
|
Message
Heinrich Kuhn
Jan. 19, 2021, 11:56 a.m. UTC
The first patch in this series prepares the NFP PMD for the new expected behavior of the .dev_close() callback function, most recently described in commit fbd191356148 ("ethdev: remove old close behaviour"). Patch one makes the needed infrastructure changes to make this possible. The second patch in the series makes the changes in nfp_net_close to free the private data of a given port. PF resources are only freed once all other ports under the PF has also been cleaned up. Heinrich Kuhn (2): net/nfp: create a separate entity for a NFP PF device net/nfp: free port private data in dev close callback drivers/net/nfp/nfp_net.c | 604 ++++++++++++++++++---------------- drivers/net/nfp/nfp_net_pmd.h | 67 +++- 2 files changed, 390 insertions(+), 281 deletions(-)
Comments
On 1/19/2021 11:56 AM, Heinrich Kuhn wrote: > The first patch in this series prepares the NFP PMD for the new expected > behavior of the .dev_close() callback function, most recently described > in commit fbd191356148 ("ethdev: remove old close behaviour"). Patch one > makes the needed infrastructure changes to make this possible. > > The second patch in the series makes the changes in nfp_net_close to > free the private data of a given port. PF resources are only freed once > all other ports under the PF has also been cleaned up. > > Heinrich Kuhn (2): > net/nfp: create a separate entity for a NFP PF device > net/nfp: free port private data in dev close callback > Thanks for the update. Series applied to dpdk-next-net/main, thanks.