From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1E47A0576; Sat, 14 Mar 2020 19:16:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F9001BFA5; Sat, 14 Mar 2020 19:16:11 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2071.outbound.protection.outlook.com [40.107.237.71]) by dpdk.org (Postfix) with ESMTP id 4ECEB1BF97 for ; Sat, 14 Mar 2020 19:16:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AuRpDkQ7USJz/C8nZrpcn2rOG12m3bnPFock0v5G4B8lDaObx5yCNA1R46BfpaZVimO/2MyZUofSmaclUZxdifq3lF06cyf3jumzpk/Apt2nfejhr25w1wThOt9Py/9QXFdoWfTd+zbApiqbUrtA11Id0rxH0K4RD3J0gxQuNHSHnPvxKTmtZ+KZWWAePYLsWTGwbsnsztqo6rxCmD7Lm5KkEoGGISXFIzQJPic2o6oDaWpDCiseyaIyDpRoegPV2qxvaYuJ2Q6JEdP+0BWqvV8UxR0e7EKfvdV7liRw9QKafyLN9rmisY1uuNvX0phbMfYP3EwkB8LCLkUmoZ6FWQ== 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-SenderADCheck; bh=gikpDt++QvM2+G1mL4LA5+APtxUK+yYbYOuEX6WdR/Q=; b=fkiC8POOQeRsGUNsGgvkKDoWETF2Pyajs+DsKCERxtoNA6RivFhvE8opLhySzaRqgUpEgxKDpGaa6maRij9rQYgQf/YnFTfNnRH5uCh1P46vWQ0/dHM3jno2AWT3JrbUMrg8z4dBunfl5OCgq4SOVuSv+eVCOlEpW1eTE7hf8xYJxK2tTxdr+9aGGQDG2GQWXaEJBjGV8v7/ygOoITFtw/zsULU1NCqb6Zzo0IcmBt7wk9267fE6LYPOKfLPpYrPffTkNgUE808pPscbSL1GYMnTDBf5w97y8jfmLeYDM9Ki9m6lMrVWdu1Sz4jswuRgbsLzv0Dhz7eB6eHibQhH0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gikpDt++QvM2+G1mL4LA5+APtxUK+yYbYOuEX6WdR/Q=; b=qU+l2tngPgSKoM/u4TtPlMNOxRurlsD4TigPz4vCG8lpybc1lWZQbsUA86n6y8C4taHn+uec1XGS1e7e72IPmiv3GOpUE7GhjQ/gjpeVd6W3GYiw5ULmoB2rhughJbJswdD06C3fjiwcBgFhUtomxs7JNeBul337ObZNodUIbZY= Received: from DM6PR12MB2987.namprd12.prod.outlook.com (2603:10b6:5:3b::25) by DM6PR12MB2906.namprd12.prod.outlook.com (2603:10b6:5:15f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.15; Sat, 14 Mar 2020 18:16:02 +0000 Received: from DM6PR12MB2987.namprd12.prod.outlook.com ([fe80::f995:143:21d5:ae04]) by DM6PR12MB2987.namprd12.prod.outlook.com ([fe80::f995:143:21d5:ae04%4]) with mapi id 15.20.2793.021; Sat, 14 Mar 2020 18:16:02 +0000 From: "Kumar, Ravi1" To: "Somalapuram, Amaranath" , "dev@dpdk.org" CC: "ferruh.yigit@intel.com" Thread-Topic: [PATCH v1 1/3] net/axgbe: support for rxq and txq info API Thread-Index: AQHV8Gr8eTKKHUad9EapHWpNCJQErqhIeMAA Date: Sat, 14 Mar 2020 18:16:02 +0000 Message-ID: References: <20200302081655.100443-1-asomalap@amd.com> In-Reply-To: <20200302081655.100443-1-asomalap@amd.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Enabled=true; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_SetDate=2020-03-14T18:17:28Z; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Method=Privileged; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Name=Public_0; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_ActionId=982b778b-bcda-4acb-a1cd-0000ae698b32; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_ContentBits=1 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_enabled: true msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_setdate: 2020-03-14T18:18:01Z msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_method: Privileged msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_name: Public_0 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_actionid: 701f005a-d496-4f60-beb7-000070b82203 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_contentbits: 0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ravi1.Kumar@amd.com; x-originating-ip: [103.117.203.144] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e684b3dd-bab8-4829-cb48-08d7c843c126 x-ms-traffictypediagnostic: DM6PR12MB2906:|DM6PR12MB2906: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1079; x-forefront-prvs: 034215E98F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(396003)(136003)(346002)(376002)(39860400002)(199004)(66556008)(64756008)(33656002)(4326008)(76116006)(66476007)(6506007)(86362001)(5660300002)(186003)(478600001)(66946007)(55016002)(9686003)(316002)(110136005)(26005)(66446008)(71200400001)(81156014)(8936002)(8676002)(2906002)(52536014)(7696005)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR12MB2906; H:DM6PR12MB2987.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UAShJQ4V2z9/0qdwq72K3Zyqo8OLb4urokZn7zi6FFW+9ncDgKLi4ryYMFtAKqATNXf1pp3HByrHbqz8UDoUa0uSPApBo4jdP6GY2EMR5/JxEM8DDM+84GdxjcFsa9mmdgZndMCxPZIg4scDaHCiRp+e0TVewF/ev1lIljkvSls592azh8UmRam+JBPptd8UOYJH8SqHOYftoZYSdnXvcrmxndq0E5UtlKgPYkEvWF5ttWzfrUf8ZpOd2qjen2QJoFX/QLwnYD0q9DqSf1/iHonyLAx8/WMwAZeg9BBKpsX4fXRoVyZbDDDhsHbLv/fuSu+kFlg9KREuGRr5ANYTcVTJdHmJaUJMirwc0ePUhfIi7Rnpg58s/Dh2TRA6nlT8+S117ApgCzQXEW+6P8rVk7GN4wN3Q4QSNdrtZHvlhij3A3vwU2KryL22KUIx3b9J x-ms-exchange-antispam-messagedata: KYeqRzPMQ0QPHDU0KIyi27y4qbfggqmBc/2jD4miNz5azw6g/8+2atz+RBj6CgcbC0p2tuLNJHMo4YEefrMATLu5eM/LK5qarnsHm0zKjm9OR6nWAxkS8RCQ9fa6NmxN6ThSH3RI2oorqFYFm+0ddA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e684b3dd-bab8-4829-cb48-08d7c843c126 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2020 18:16:02.3614 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AD4p+T0EdJVzoMrPbCd07vM9lM0ULZ1VIKsezYsq1G8RR2fYqnvXYEisSZBpJF1FVf0DpuwpIGsnSzWPsZBiFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2906 Subject: Re: [dpdk-dev] [PATCH v1 1/3] net/axgbe: support for rxq and txq info API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" [AMD Public Use] For series, Acked-by: Ravi Kumar =20 >From: Amaranath Somalapuram > >Adding API for axgbe_rxq_info_get, axgbe_txq_info_get > >Signed-off-by: Amaranath Somalapuram >--- > drivers/net/axgbe/axgbe_ethdev.c | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > >diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_et= hdev.c >index d0b6f091f..887b4829d 100644 >--- a/drivers/net/axgbe/axgbe_ethdev.c >+++ b/drivers/net/axgbe/axgbe_ethdev.c >@@ -44,6 +44,10 @@ axgbe_dev_xstats_get_names_by_id(struct rte_eth_dev *de= v, static int axgbe_dev_xstats_reset(struct rte_eth_dev *dev); static int= axgbe_dev_info_get(struct rte_eth_dev *dev, > struct rte_eth_dev_info *dev_info); >+static void axgbe_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id= , >+ struct rte_eth_rxq_info *qinfo); >+static void axgbe_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id= , >+ struct rte_eth_txq_info *qinfo); >=20 > struct axgbe_xstats { > char name[RTE_ETH_XSTATS_NAME_SIZE]; >@@ -170,6 +174,8 @@ static const struct eth_dev_ops axgbe_eth_dev_ops =3D = { > .rx_queue_release =3D axgbe_dev_rx_queue_release, > .tx_queue_setup =3D axgbe_dev_tx_queue_setup, > .tx_queue_release =3D axgbe_dev_tx_queue_release, >+ .rxq_info_get =3D axgbe_rxq_info_get, >+ .txq_info_get =3D axgbe_txq_info_get, > }; >=20 > static int axgbe_phy_reset(struct axgbe_port *pdata) @@ -816,6 +822,30 @@= axgbe_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_i= nfo) > return 0; > } >=20 >+void >+axgbe_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id, >+ struct rte_eth_rxq_info *qinfo) >+{ >+ struct axgbe_rx_queue *rxq; >+ >+ rxq =3D dev->data->rx_queues[queue_id]; >+ qinfo->mp =3D rxq->mb_pool; >+ qinfo->scattered_rx =3D dev->data->scattered_rx; >+ qinfo->nb_desc =3D rxq->nb_desc; >+ qinfo->conf.rx_free_thresh =3D rxq->free_thresh; } >+ >+void >+axgbe_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id, >+ struct rte_eth_txq_info *qinfo) >+{ >+ struct axgbe_tx_queue *txq; >+ >+ txq =3D dev->data->tx_queues[queue_id]; >+ qinfo->nb_desc =3D txq->nb_desc; >+ qinfo->conf.tx_free_thresh =3D txq->free_thresh; } >+ > static void axgbe_get_all_hw_features(struct axgbe_port *pdata) { > unsigned int mac_hfr0, mac_hfr1, mac_hfr2; >-- >2.17.1 >