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 56BE6A0C45; Sat, 18 Sep 2021 14:36:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19EE040041; Sat, 18 Sep 2021 14:36:09 +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 12E994003D for ; Sat, 18 Sep 2021 14:36:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=klInKQp3oO3YY3T7bxq9iJeVk6rvk64FwNoawL3jLX5gYsTkhw+DhYh61rr1m91GLeGBksGJDcKiSp71tYqp46Yb871AD+m8SuGmoH7mCJ664UkBUJlbk6uLpxHIg1bDxZbEkJH9CK91YyRoApzrgP8XO8LtErq6JDNW8kGb1hSo6Cd0eaRhLYX6B9l4KXW+M7bayR11jX6X+TiylRvTVfnQwgZYnXAcxYpjq7StUjGrjM1GmVrD95LnADn/TmU3QJaGfk7GdeqBG41pwHP3u8fN6GCO9nLYMP7q9f7womyphcoMM7ZA7hLKTOcI/MBLcpewS6Wp/YQjAT/1vjw4Hg== 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=5dk/oux4VzjDk7gjJ0Y+IgiEAgsocq3Dv+3OOLLZEx0=; b=mGtINXxOpCzNZVDX2PqFQSn2M3+zmwZ3ntOkLQybmGzopz3J0VlTWen1PWUPrZqluCwMChXqiTWOZyZxF0AaY1DGsIyOYIjhho0hRPD6S/jcTZaLqaf3GMBmlrDVlmVvPDuUmc7IPJ1uYDRjm7r1ABwykCkEbgSMBFDxmksMjL57iDpmHWHqpMerevgECDPEq1TttfTu7wMk9zfApj+Xtq5g8CwaRJz5I/x2/HyErJlK6RFxX4y7VAF/GT3WSyGCO65zyRRU2G2z2LylVZ0lG5waiLlMYVnAGJ5yYE/38f6jzwDx4wq7gfdLD7pF9etIBfnecL4eLQbC/smh5Vp1GA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org 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=5dk/oux4VzjDk7gjJ0Y+IgiEAgsocq3Dv+3OOLLZEx0=; b=ZcKbFftqcXDsQ2ObiNQFXYm/AvGPw1DDb12meXDvx+RfqdbzS0rNkjzDWJryVsrbKyznGd3aJUs67dZEj2208hri0s0+DFdyEraCeJ/wQ9UfGx8Rxi5n2Q5sInrUxPKw2u0ojAxQ1LTCpjE0H8trTxQcLTek1X9i0t8MDYAE/00OmVE/Ww0/lkho9IAGjnlKhiEydqZaMVLRFM0MBxD6caLWGGqrLy6tm65OUV9ND1QPnBsHhUCZkxFOLsHoF8K7BHRCMrceUtjDO6mg3oCkjtHSEIHtdzAHpZ5Vibt7YBeTtc6JH3a1wBybMckkNP6U8J0+m+N/4OIuAmMuESm8pg== Received: from MWHPR21CA0031.namprd21.prod.outlook.com (2603:10b6:300:129::17) by BN7PR12MB2769.namprd12.prod.outlook.com (2603:10b6:408:2b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Sat, 18 Sep 2021 12:36:04 +0000 Received: from CO1NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:300:129:cafe::85) by MWHPR21CA0031.outlook.office365.com (2603:10b6:300:129::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.4 via Frontend Transport; Sat, 18 Sep 2021 12:36:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 CO1NAM11FT036.mail.protection.outlook.com (10.13.174.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4523.14 via Frontend Transport; Sat, 18 Sep 2021 12:36:04 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 18 Sep 2021 12:36:03 +0000 Received: from nvidia.com (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 18 Sep 2021 12:36:01 +0000 From: Xueming Li To: CC: , Ferruh Yigit , "Andrew Rybchenko" , "Singh, Aman Deep" , Thomas Monjalon Date: Sat, 18 Sep 2021 20:35:23 +0800 Message-ID: <20210918123525.135129-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 DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d16cffd-6554-4b5c-b3c4-08d97aa0e156 X-MS-TrafficTypeDiagnostic: BN7PR12MB2769: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:576; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o9GdkE5OVQbWoEruspwgEMkvvE39RnMoMIQZGuaIBwgPCKVY49P+W2rzIGrAITSlrxBFDy4WwY+XZiqaxQpG30af4iKE3vev9/ypn6nTvlbokIY7TUtvqHb2EfoYY/kAJC3w6AcLIgUJhX6wfNQsVhNyvilZaphMqjFQ5qDreBE3FwTPnap+oDkHkXHIILbEuouI38zuRDEN6HgxlJbf9KryKh28RuJAhaolh0v18zFxsKgcsGaQ8lVDa7slTu7+qhLffkUB016FTzUjBitlegz5ormVW+LxEXm9twaCsM+gVfwosTOIXy6JpNpAScT6DMsoM1/YqVvEwG1KJjFhpNblp6Pz07nfSwAeZytdo7Gatu1LBb0K2kTrH/a5kjZWYeGb9mcqK+WpZ8o7aK/3s77xHpOHoMf39agQE7aXGrxEY0oORwYKqXIhBV5gmXkzy3lL93GQO1V5sH/iumvv9NJpGiWQQHXqVkuHDjlQrX2J0Ub2+ecC7wuXm2JJbSPXWWj6gDd2WsLlwYtX7wrHsnP0QVGRlNwhBTyYN3/xS1NHTzbZtjMSvYLimZQ79hlFPXL4bOg/2QWf3yjK3M9ybtFH24cY3iF2mzh8iMXK1yjf/MmYxkYh3HQQ8+LITwtIHCdPk2GLFToQNgcpx3yJNG/7eBe6l0GuGM1oESV9y2fGiJnVE9xm2B7RoWfKqKcyBuITOTmZyxKgV+CUg9hgOCjaFh/OcgSrxJ2c6L6GYMrqdHSYiaTGmzkl2kPJzowyGvRi0/elt4w2Z85xmiKgUT8dn6GXEo1gTfxehanjqTA= 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)(136003)(346002)(396003)(376002)(39860400002)(36840700001)(46966006)(54906003)(70206006)(36860700001)(36756003)(1076003)(82310400003)(2616005)(7636003)(82740400003)(36906005)(86362001)(8936002)(26005)(316002)(70586007)(966005)(7696005)(336012)(356005)(6666004)(186003)(5660300002)(16526019)(2906002)(83380400001)(6916009)(4326008)(8676002)(478600001)(55016002)(6286002)(426003)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2021 12:36:04.2528 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d16cffd-6554-4b5c-b3c4-08d97aa0e156 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: CO1NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR12MB2769 Subject: [dpdk-dev] [PATCH v5 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 [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 | 15 ++-- 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 | 25 ++++--- 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, 631 insertions(+), 709 deletions(-) -- 2.33.0