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 37E8BA0C41; Thu, 30 Sep 2021 17:17:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A724A410E5; Thu, 30 Sep 2021 17:17:34 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2061.outbound.protection.outlook.com [40.107.93.61]) by mails.dpdk.org (Postfix) with ESMTP id 1EFC240DDA for ; Thu, 30 Sep 2021 17:17:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DEipstnPmK94rvOFTbSdki6IAyeGmCu/y2yT+o0ynbHA5kjr715inDkhqvVPU2KrdHdRNxlNnktNaaRKRdBOCyLXfZNo6+4N2jmRjZG1VYCztj5nVG5suk7kvCnj5bCCBXQhG9FNylFBFcSIyQs9MbU9H+OQt3f5ni4Lr/ZGiF0Tb77Y8EY2kiPwLc/6Dr95+Yu+EArFTBCLPnS2M2Rlnk4LZ4M85zKjJIFHSN7USBFusc975xiCEEkyFC+l2RskQWubbb+YcO29ZbO3EQd2DB1gQ7+k5F7ouzt0wBGC+ejVw7rDN6/MkiAhjJ2kTQmHwmu0BhuKDBVBs06Ip3yCJQ== 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; bh=tt6v00fWj1Dk8Pcg4aGsWjM510L1P6zbQfTgoHtmbxI=; b=lyVw/i2kJpTdfNhQaA1+98ZCKzoHcAYXKH00gNz/k0R6cQaK1QqXWq1Mr8vtgPAB2WMTzqzOMvAyGPnG0AwuagG590tmOnzMvTJw2Pg3tKaVVKBdUt7PYY5eaVVmEwS0c35l6xSRZVkqV6FrN4s7hf/J+P72P3LmIKF05CJbBBOak11W4N62HA6M1tM0/T4OVRXmEVhUPodos7B3oFv7ltbTHvwmBp7ikoq1IApICLHt1WIgfy8qPCE6kZblXWrXSlqrYFQR6yCoQrHBojlB3p9RSpCrtYINm58af60rqXN8gpbCC3Hs5ldjXVtl+eYxLQXXMCDWcUjztOZfth2Hrg== 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=tt6v00fWj1Dk8Pcg4aGsWjM510L1P6zbQfTgoHtmbxI=; b=WVTw5B7462KExSZyGiV9ZfEeIpkESOTw2T1UgLJrcPeR6f+x/slDDPH+QVYtX9lIFutR7ngEqFBgtiMdfASHqujYDx/tC9Z2B5yEejdSHdaHbqHj4FoIL2EFH8yb/aSH2Jcd5fyR1TD+Y4vU73B8UcXwtWVQIX56RTYGbS0NIwM0rqg2V1P4DEpMWZofd5BEgGSzPRQBS2D0cl9ewIw4kAplcqCj1sC5yBcmrkPcv7Pxb9GF7zolp4wNBlHX+rrPsNfWt+QGEh90Qq6MkndHlwNxKnVa+Yl85agvPrra7hUCU/ijXFhNtu8ZmzyZ/M5mtJkHEL8vm7GqU5YjREf2IA== Received: from BN1PR14CA0011.namprd14.prod.outlook.com (2603:10b6:408:e3::16) by DM6PR12MB3196.namprd12.prod.outlook.com (2603:10b6:5:187::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Thu, 30 Sep 2021 15:17:31 +0000 Received: from BN8NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e3:cafe::e3) by BN1PR14CA0011.outlook.office365.com (2603:10b6:408:e3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13 via Frontend Transport; Thu, 30 Sep 2021 15:17:31 +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 BN8NAM11FT051.mail.protection.outlook.com (10.13.177.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4566.14 via Frontend Transport; Thu, 30 Sep 2021 15:17:30 +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; Thu, 30 Sep 2021 15:17:28 +0000 From: Xueming Li To: CC: Lior Margalit , , Ferruh Yigit , Andrew Rybchenko , Singh Aman Deep , Thomas Monjalon Date: Thu, 30 Sep 2021 23:17:09 +0800 Message-ID: <20210930151711.779493-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: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ab91289-41dd-4ffd-676e-08d984256c15 X-MS-TrafficTypeDiagnostic: DM6PR12MB3196: 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: E0u5Z9LYaBD3/mIKHBZ2UbQdyNZZqEa+KqnQ7bs5XKYBrqR8VIab9KJjLsFkz6KRyVOLqfbN5vH9Ima1CSrKKUBqjhhY+gHOwxB+s7xGODMIH0fC7lv0bsb96uLn5kEJDZbmDlq3sfrgG7cWm+P0Jr3j2sR9Cy+fSyXhKvZXB0p/ggKkqFHmi9TJZ/CBks2LRPYj4T76OcR3QFEO7LN3XzCG4UuLVR0ERbsNi2CB2orVJpotqCxPRBZIoWOF20Z4fOu67UIsPUUn3viv1qVuKc6dTVk13NhJY3F0rlr/O8E66Fr1XnR+ji3JXfnX1BsuiboidVOWpVDltNQEuMxfm0yC5JqUjsMgfBu1pTDnJPyqcjdRfFZTjLkcT2CJ2l3Li3fPbWoF5GMBzfHRIXb9bSHliQRgzzgJeauNOJyroLSPbeVfmCqjhffUfqWSZvYOADi63QFKDY4OBXaRJNUI08g/G7P633JkI6mwd3Ec+GahZzB9tNvrPGaOCIEDwyhlNcejCStNDhWgMjS7FbgkaAWB0BceFf6z6EdFJSSoii5Ri4F6IHb/jD92FMT0iLgBDUoTDeWjIhcLgiCv+2hHmBHkSW113MyTjS/eQS2flufx5LJQHqerKwlUrLy14mhzOovRTdz+MPBomY70WZt2H+7zvdgsEv+6LPXTphuya4O9+KHCnOjQ1T8WFs9zB55RN5cnkv90AImwBqwVWrUz9z3QSuE0h8ZmsC4cR5fo3hRBuJgNKAtYwI87Ccc2aqopaGI82rm2Taku0mr3AZ1TOzCv/yu5cMmBuy/XAswuogA= 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)(36840700001)(46966006)(36860700001)(83380400001)(16526019)(6916009)(47076005)(2906002)(82310400003)(966005)(1076003)(5660300002)(7636003)(54906003)(36756003)(356005)(6666004)(336012)(426003)(8676002)(6286002)(186003)(86362001)(508600001)(26005)(7696005)(70206006)(70586007)(2616005)(8936002)(316002)(36906005)(4326008)(55016002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 15:17:30.9957 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ab91289-41dd-4ffd-676e-08d984256c15 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: BN8NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3196 Subject: [dpdk-dev] [PATCH v6 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 [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_ethdev.h | 3 + drivers/net/hns3/hns3_rxtx.c | 21 +++--- 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 ++++++++++------------- 105 files changed, 631 insertions(+), 712 deletions(-) -- 2.33.0