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 B20B3A0C41; Wed, 6 Oct 2021 13:18:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39B7A410F2; Wed, 6 Oct 2021 13:18:47 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2057.outbound.protection.outlook.com [40.107.92.57]) by mails.dpdk.org (Postfix) with ESMTP id 604A440F35 for ; Wed, 6 Oct 2021 13:18:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G3JeHhcEA+todBykeN39FTMs14vdvhsKJTbENhnpG/cwSNaIyzW1OAeWgULzJ+kgAE23F/08+A7HaS50WNQRcWV9afCINvuEBpSxBgiTx1B9tmzFiD7JSycBUxY4qjSbYKa9aJU9VbuSC0brlbQzdZu5DDaodsvKGmXcEJK0sR8sHMQUy17h0jjd+BtTcKMYZK+1IapaBIaGC460LSUlqlKkiTbROEVMufI0VOE9H7/nr6OY/Nn3EGNRXMn9btEl47RA8dc0aSpRxb8cRHMH3DyeSVQc3VFn4u4qyUYGABJTmvkdRGRpL/X6/o0xAJeVdHFWbS/0yS3Z9SJ1ZPShhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k7cOXeHvVU8gfIwKet4LPijwuLM9LYDp8FhC6nlFHnY=; b=IT02McDp17PNmA4oxY6JpKR95+Gh1g69eY6sr1GhiJQ5Z7LyLK3r+w407k6wYjxAd+UNsdI4Oh30p9f1WufUf/H+W7BRS0hl23Nj8u6mzbg+csdx5VboG8msvhqM+/VnNfySs03og+J8PEf4zQN/QZpWtMj859na6X7GzitLZ48NKv236crNO7cmzuthzFoHUTexyT/nEZnoymrNZMygiXaNoZqhQAuAvYaN5jFqpDQKt6MCaowth/qKWzhe330mxcjpKEuZSxh1U4VxB6/vImKjeDyjE0CLrw2LrsmxtTAE+LHBeQbmWf61+li24yYWPJNxVhv0SMg/q/NzfTs5dg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k7cOXeHvVU8gfIwKet4LPijwuLM9LYDp8FhC6nlFHnY=; b=o7h4ZL+tvAfvG9q2vT+d+AAoOHzVkj3RQp9vgoibdFSUba+Avogu/ykdlT9EDrCCjA0H95WcLTLsvkrypYd7mBChxuhOYE9N3uWuwxK9m3o95ZyniRLOq8LyvBiUqRSjbqf1/0b+QYEgpaQzK0zrqXSMumexurtlwccGXZRWkwKVWoXLpsXpykbs+Id9xO4ZGUXssM/UF2eaNfyFd7y+xqSyj+77tafN0YvpubL5vRiWNyXm3d1ImXmheSCsR9WJJUzzg97FgKUI5A+zQUOaR2xDNGsw6cZ8rgKSlli6ibyIkorwALqoOi9WGt59jy06DhQDrAWXH5mf2eJPLztoJQ== Received: from DM6PR17CA0006.namprd17.prod.outlook.com (2603:10b6:5:1b3::19) by SN6PR12MB2637.namprd12.prod.outlook.com (2603:10b6:805:6b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Wed, 6 Oct 2021 11:18:44 +0000 Received: from DM6NAM11FT059.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1b3:cafe::5f) by DM6PR17CA0006.outlook.office365.com (2603:10b6:5:1b3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Wed, 6 Oct 2021 11:18:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT059.mail.protection.outlook.com (10.13.172.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4587.18 via Frontend Transport; Wed, 6 Oct 2021 11:18:44 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 6 Oct 2021 11:18:40 +0000 From: Xueming Li To: CC: , Ferruh Yigit , "Andrew Rybchenko" , Singh Aman Deep , Thomas Monjalon Date: Wed, 6 Oct 2021 19:18:20 +0800 Message-ID: <20211006111822.437298-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210727034134.20556-1-xuemingl@nvidia.com> References: <20210727034134.20556-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c3540ef-e50b-4daf-e80f-08d988bb0f12 X-MS-TrafficTypeDiagnostic: SN6PR12MB2637: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:669; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Cg9+GI/NIwv+yZrTgtG2XdXtFlNjeZU6Ob9iEObBKj1t6pQYytFNZdwsxxCyy8KPSSp+KJaXVLWj5C90tPCSzi8Qb+8qZOHwTpw9CoF5rvi7BUxJCbgwpUzbqKC4SQiGYt/ulgJ3He5fp2FWq5PN+uEm2noMoYBplyMzbYffp8/eQugS1e2srTNfrQMlrCuEuj9jMyQNb2nrvxTfqaV21m9zE9h1OshDdG7AV8I1OuNv3vYpjoRqMDAwmlrpZOiEylmXaXI1AjgOQM3+Wqijk5YhTZ1Qw86Erie9StNI2N8O43loNKMGNTWZmxuJTgxua3RJurZpnAd+3XzUalNWSO1pA5UGt4doQYAw4jryfyVbx1uUlxbWa6mMuhCW90Baa4ZLGHzZ7hfdQXat2ymTqhHN/3oXAb0s8NXAyHc+jZl05hlr+DBWCILmozYEGWm3tArIqP+zvoBL9D3xWZQ+hBJ3cjBr/1SlX8D0hVrpYYVqwfTRCALIbo7+62enJ0nNJUynKTPbda2W0qaeY3BnllGr1qMdNrthoFAE//D8fmO8HefvCJuKn1A33g34aGOrdzZJRqJaUDMrQipi8dGO0gF0AZQ16xlWu4dBf5GnJWSpsqC+f6kLcB+hLabSDN6JNwKX9YraKuo7Yo/GXJnUwwxTVWHB9+Zm+6lUO4aCMZWsDDQ+++JmBaTQ1edF/+wCvBzT9PFtviP6ouKJKY1gh1n8rBp/cVUDRdHeOko9VuDrwRss/w5M8NgQMShbsXFT2UMpJI/cevIdjEikaD7/hoFqZSwV1soxEdoOpyphTis= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(55016002)(1076003)(8676002)(508600001)(8936002)(5660300002)(83380400001)(86362001)(7636003)(186003)(4326008)(356005)(47076005)(82310400003)(426003)(70206006)(6666004)(36860700001)(6916009)(54906003)(2906002)(6286002)(70586007)(16526019)(36756003)(336012)(2616005)(7696005)(316002)(26005)(966005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2021 11:18:44.1695 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c3540ef-e50b-4daf-e80f-08d988bb0f12 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT059.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2637 Subject: [dpdk-dev] [PATCH v7 0/2] ethdev: change queue release callback 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 is a preparation of shared Rx queue feature[1]. Rxq object could be shared among ports of a share group, a shared rxq object can't tell which port it belongs to. This is the motativation to clean up queue release callback API to use queue ID. v2: included new NFP PMD driver v3: - commit message update - split allowing empty queue release callback to another patch v4: - use helper funtction to release a single queue - move driver empty callback cleanup to first patch v5: - fix release callback parameter name v6: - some minor fixes thanks Ferruh's comments - add device lookup macro for hns3 v7: - changed hns3 driver to use wrapper [1] https://mails.dpdk.org/archives/dev/2021-July/215575.html Xueming Li (2): ethdev: make queue release callback optional ethdev: change queue release callback app/test/virtual_pmd.c | 12 ---- drivers/net/af_packet/rte_eth_af_packet.c | 7 -- drivers/net/af_xdp/rte_eth_af_xdp.c | 7 -- drivers/net/atlantic/atl_ethdev.h | 4 +- drivers/net/atlantic/atl_rxtx.c | 24 +++---- drivers/net/avp/avp_ethdev.c | 34 +++------ drivers/net/axgbe/axgbe_dev.c | 2 +- drivers/net/axgbe/axgbe_rxtx.c | 8 +-- drivers/net/axgbe/axgbe_rxtx.h | 4 +- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +-- drivers/net/bnx2x/bnx2x_rxtx.h | 4 +- drivers/net/bnxt/bnxt_reps.c | 20 +++--- drivers/net/bnxt/bnxt_reps.h | 4 +- drivers/net/bnxt/bnxt_ring.c | 2 +- drivers/net/bnxt/bnxt_rxq.c | 12 ++-- drivers/net/bnxt/bnxt_rxq.h | 2 +- drivers/net/bnxt/bnxt_txq.c | 19 +++-- drivers/net/bnxt/bnxt_txq.h | 2 +- drivers/net/bonding/rte_eth_bond_pmd.c | 8 ++- drivers/net/cnxk/cnxk_ethdev.c | 33 ++++----- drivers/net/cxgbe/cxgbe_ethdev.c | 12 ++-- drivers/net/cxgbe/cxgbe_pfvf.h | 4 +- drivers/net/dpaa/dpaa_ethdev.c | 13 ---- drivers/net/dpaa2/dpaa2_ethdev.c | 11 +-- drivers/net/e1000/e1000_ethdev.h | 8 +-- drivers/net/e1000/em_rxtx.c | 12 ++-- drivers/net/e1000/igb_rxtx.c | 12 ++-- drivers/net/ena/ena_ethdev.c | 18 +++-- drivers/net/enetc/enetc_ethdev.c | 12 ++-- drivers/net/enic/enic_ethdev.c | 8 ++- drivers/net/enic/enic_vf_representor.c | 8 ++- drivers/net/failsafe/failsafe_ops.c | 42 +++++------ drivers/net/fm10k/fm10k_ethdev.c | 14 ++-- drivers/net/hinic/hinic_pmd_ethdev.c | 20 +++--- drivers/net/hns3/hns3_rxtx.c | 26 +++++-- drivers/net/hns3/hns3_rxtx.h | 4 +- drivers/net/i40e/i40e_fdir.c | 8 +-- drivers/net/i40e/i40e_rxtx.c | 40 +++++++---- drivers/net/i40e/i40e_rxtx.h | 6 +- drivers/net/iavf/iavf_rxtx.c | 12 ++-- drivers/net/iavf/iavf_rxtx.h | 4 +- drivers/net/ice/ice_dcf_ethdev.c | 4 +- drivers/net/ice/ice_ethdev.c | 4 +- drivers/net/ice/ice_rxtx.c | 12 ++++ drivers/net/ice/ice_rxtx.h | 2 + drivers/net/igc/igc_ethdev.c | 4 +- drivers/net/igc/igc_txrx.c | 12 ++-- drivers/net/igc/igc_txrx.h | 4 +- drivers/net/ionic/ionic_lif.c | 4 +- drivers/net/ionic/ionic_rxtx.c | 14 ++-- drivers/net/ionic/ionic_rxtx.h | 4 +- drivers/net/ipn3ke/ipn3ke_representor.c | 12 ---- drivers/net/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/ixgbe/ixgbe_rxtx.c | 12 ++-- drivers/net/kni/rte_eth_kni.c | 7 -- drivers/net/liquidio/lio_ethdev.c | 24 ++++--- drivers/net/liquidio/lio_ethdev.h | 4 +- drivers/net/liquidio/lio_rxtx.c | 4 +- drivers/net/memif/rte_eth_memif.c | 23 ++++-- drivers/net/mlx4/mlx4.c | 4 +- drivers/net/mlx4/mlx4_rxq.c | 27 +++---- drivers/net/mlx4/mlx4_rxtx.h | 4 +- drivers/net/mlx4/mlx4_txq.c | 27 +++---- drivers/net/mlx5/mlx5_rx.h | 2 +- drivers/net/mlx5/mlx5_rxq.c | 21 +++--- drivers/net/mlx5/mlx5_tx.h | 2 +- drivers/net/mlx5/mlx5_txq.c | 25 +++---- drivers/net/mvneta/mvneta_ethdev.c | 4 +- drivers/net/mvneta/mvneta_rxtx.c | 22 +++--- drivers/net/mvneta/mvneta_rxtx.h | 4 +- drivers/net/mvpp2/mrvl_ethdev.c | 20 +++--- drivers/net/netvsc/hn_rxtx.c | 10 +-- drivers/net/netvsc/hn_var.h | 4 +- drivers/net/netvsc/hn_vf.c | 14 ++-- drivers/net/nfb/nfb_ethdev.c | 4 +- drivers/net/nfb/nfb_rx.c | 5 +- drivers/net/nfb/nfb_rx.h | 8 ++- drivers/net/nfb/nfb_tx.c | 5 +- drivers/net/nfb/nfb_tx.h | 8 ++- drivers/net/nfp/nfp_rxtx.c | 30 ++++---- drivers/net/nfp/nfp_rxtx.h | 4 +- drivers/net/ngbe/ngbe_ethdev.h | 4 +- drivers/net/ngbe/ngbe_rxtx.c | 12 ++-- drivers/net/null/rte_eth_null.c | 22 ++++-- drivers/net/octeontx/octeontx_ethdev.c | 18 +++-- drivers/net/octeontx2/otx2_ethdev.c | 59 ++++++---------- drivers/net/octeontx_ep/otx_ep_ethdev.c | 20 +++--- drivers/net/pcap/pcap_ethdev.c | 7 -- drivers/net/pfe/pfe_ethdev.c | 14 ---- drivers/net/qede/qede_ethdev.c | 20 ++++-- drivers/net/ring/rte_eth_ring.c | 4 -- drivers/net/sfc/sfc_ethdev.c | 8 +-- drivers/net/szedata2/rte_eth_szedata2.c | 50 ++++++------- drivers/net/tap/rte_eth_tap.c | 8 +-- drivers/net/thunderx/nicvf_ethdev.c | 28 ++++---- drivers/net/txgbe/txgbe_ethdev.h | 4 +- drivers/net/txgbe/txgbe_rxtx.c | 12 ++-- drivers/net/vhost/rte_eth_vhost.c | 14 ++-- drivers/net/virtio/virtio_ethdev.c | 8 --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 14 ++-- drivers/net/vmxnet3/vmxnet3_ethdev.h | 4 +- drivers/net/vmxnet3/vmxnet3_rxtx.c | 8 +-- lib/ethdev/ethdev_driver.h | 3 +- lib/ethdev/rte_ethdev.c | 86 ++++++++++------------- 104 files changed, 637 insertions(+), 708 deletions(-) -- 2.33.0