Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115535/?format=api
http://patches.dpdk.org/api/patches/115535/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1661560509-11009-7-git-send-email-longli@linuxonhyperv.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1661560509-11009-7-git-send-email-longli@linuxonhyperv.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1661560509-11009-7-git-send-email-longli@linuxonhyperv.com", "date": "2022-08-27T00:34:57", "name": "[v5,06/18] net/mana: add device info", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8e4a7757863f788cf6d5a284f9d9724a34e287fc", "submitter": { "id": 1784, "url": "http://patches.dpdk.org/api/people/1784/?format=api", "name": "Long Li", "email": "longli@linuxonhyperv.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1661560509-11009-7-git-send-email-longli@linuxonhyperv.com/mbox/", "series": [ { "id": 24430, "url": "http://patches.dpdk.org/api/series/24430/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24430", "date": "2022-08-27T00:34:51", "name": "Introduce Microsoft Azure Network Adatper (MANA) PMD", "version": 5, "mbox": "http://patches.dpdk.org/series/24430/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/115535/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/115535/checks/", "tags": {}, "related": [], "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8B16CA0554;\n\tSat, 27 Aug 2022 02:35:53 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5C4C642B6E;\n\tSat, 27 Aug 2022 02:35:26 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 548ED4282D\n for <dev@dpdk.org>; Sat, 27 Aug 2022 02:35:23 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1004)\n id BA12C236D9A7; Fri, 26 Aug 2022 17:35:22 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com BA12C236D9A7", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com;\n s=default; t=1661560522;\n bh=bxGVA8M1qEI8wMSj1Ce4w0q4BFZJii9SVyLrgUbB/fM=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=gT2Vm0bSICF60oP4Mc+LON3s+dEEcTVNmZLUg5Oj3d7/AEuw+8WdYXJGu7bYd5+g0\n 9OHN0jTDAA222G9jBs1z39Wh+nEpPM1APZsI/ETsZA9miiXuiifScaK1j9PIs25E7l\n WYZ+MgU2ceW4fyEO8tr5ThqZDkQXJBcjlVBdOwzc=", "From": "longli@linuxonhyperv.com", "To": "Ferruh Yigit <ferruh.yigit@xilinx.com>", "Cc": "dev@dpdk.org, Ajay Sharma <sharmaajay@microsoft.com>,\n Stephen Hemminger <sthemmin@microsoft.com>, Long Li <longli@microsoft.com>", "Subject": "[Patch v5 06/18] net/mana: add device info", "Date": "Fri, 26 Aug 2022 17:34:57 -0700", "Message-Id": "<1661560509-11009-7-git-send-email-longli@linuxonhyperv.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1661560509-11009-1-git-send-email-longli@linuxonhyperv.com>", "References": "<1661560509-11009-1-git-send-email-longli@linuxonhyperv.com>", "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>,\n <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>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Long Li <longli@microsoft.com>\n\nAdd the function to get device info.\n\nSigned-off-by: Long Li <longli@microsoft.com>\n---\n doc/guides/nics/features/mana.ini | 1 +\n drivers/net/mana/mana.c | 82 +++++++++++++++++++++++++++++++\n 2 files changed, 83 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/mana.ini b/doc/guides/nics/features/mana.ini\nindex 8043e11f99..566b3e8770 100644\n--- a/doc/guides/nics/features/mana.ini\n+++ b/doc/guides/nics/features/mana.ini\n@@ -8,5 +8,6 @@ Link status = P\n Linux = Y\n Multiprocess aware = Y\n Removal event = Y\n+Speed capabilities = P\n Usage doc = Y\n x86-64 = Y\ndiff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c\nindex c9591035ac..e1550b3c08 100644\n--- a/drivers/net/mana/mana.c\n+++ b/drivers/net/mana/mana.c\n@@ -116,6 +116,86 @@ mana_dev_close(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int mana_dev_info_get(struct rte_eth_dev *dev,\n+\t\t\t struct rte_eth_dev_info *dev_info)\n+{\n+\tstruct mana_priv *priv = dev->data->dev_private;\n+\n+\tdev_info->max_mtu = RTE_ETHER_MTU;\n+\n+\t/* RX params */\n+\tdev_info->min_rx_bufsize = MIN_RX_BUF_SIZE;\n+\tdev_info->max_rx_pktlen = MAX_FRAME_SIZE;\n+\n+\tdev_info->max_rx_queues = priv->max_rx_queues;\n+\tdev_info->max_tx_queues = priv->max_tx_queues;\n+\n+\tdev_info->max_mac_addrs = BNIC_MAX_MAC_ADDR;\n+\tdev_info->max_hash_mac_addrs = 0;\n+\n+\tdev_info->max_vfs = 1;\n+\n+\t/* Offload params */\n+\tdev_info->rx_offload_capa = BNIC_DEV_RX_OFFLOAD_SUPPORT;\n+\n+\tdev_info->tx_offload_capa = BNIC_DEV_TX_OFFLOAD_SUPPORT;\n+\n+\t/* RSS */\n+\tdev_info->reta_size = INDIRECTION_TABLE_NUM_ELEMENTS;\n+\tdev_info->hash_key_size = TOEPLITZ_HASH_KEY_SIZE_IN_BYTES;\n+\tdev_info->flow_type_rss_offloads = BNIC_ETH_RSS_SUPPORT;\n+\n+\t/* Thresholds */\n+\tdev_info->default_rxconf = (struct rte_eth_rxconf){\n+\t\t.rx_thresh = {\n+\t\t\t.pthresh = 8,\n+\t\t\t.hthresh = 8,\n+\t\t\t.wthresh = 0,\n+\t\t},\n+\t\t.rx_free_thresh = 32,\n+\t\t/* If no descriptors available, pkts are dropped by default */\n+\t\t.rx_drop_en = 1,\n+\t};\n+\n+\tdev_info->default_txconf = (struct rte_eth_txconf){\n+\t\t.tx_thresh = {\n+\t\t\t.pthresh = 32,\n+\t\t\t.hthresh = 0,\n+\t\t\t.wthresh = 0,\n+\t\t},\n+\t\t.tx_rs_thresh = 32,\n+\t\t.tx_free_thresh = 32,\n+\t};\n+\n+\t/* Buffer limits */\n+\tdev_info->rx_desc_lim.nb_min = MIN_BUFFERS_PER_QUEUE;\n+\tdev_info->rx_desc_lim.nb_max = priv->max_rx_desc;\n+\tdev_info->rx_desc_lim.nb_align = MIN_BUFFERS_PER_QUEUE;\n+\tdev_info->rx_desc_lim.nb_seg_max = priv->max_recv_sge;\n+\tdev_info->rx_desc_lim.nb_mtu_seg_max = priv->max_recv_sge;\n+\n+\tdev_info->tx_desc_lim.nb_min = MIN_BUFFERS_PER_QUEUE;\n+\tdev_info->tx_desc_lim.nb_max = priv->max_tx_desc;\n+\tdev_info->tx_desc_lim.nb_align = MIN_BUFFERS_PER_QUEUE;\n+\tdev_info->tx_desc_lim.nb_seg_max = priv->max_send_sge;\n+\tdev_info->rx_desc_lim.nb_mtu_seg_max = priv->max_recv_sge;\n+\n+\t/* Speed */\n+\tdev_info->speed_capa = ETH_LINK_SPEED_100G;\n+\n+\t/* RX params */\n+\tdev_info->default_rxportconf.burst_size = 1;\n+\tdev_info->default_rxportconf.ring_size = MAX_RECEIVE_BUFFERS_PER_QUEUE;\n+\tdev_info->default_rxportconf.nb_queues = 1;\n+\n+\t/* TX params */\n+\tdev_info->default_txportconf.burst_size = 1;\n+\tdev_info->default_txportconf.ring_size = MAX_SEND_BUFFERS_PER_QUEUE;\n+\tdev_info->default_txportconf.nb_queues = 1;\n+\n+\treturn 0;\n+}\n+\n static const uint32_t *mana_supported_ptypes(struct rte_eth_dev *dev __rte_unused)\n {\n \tstatic const uint32_t ptypes[] = {\n@@ -150,11 +230,13 @@ static int mana_dev_link_update(struct rte_eth_dev *dev,\n const struct eth_dev_ops mana_dev_ops = {\n \t.dev_configure\t\t= mana_dev_configure,\n \t.dev_close\t\t= mana_dev_close,\n+\t.dev_infos_get\t\t= mana_dev_info_get,\n \t.dev_supported_ptypes_get = mana_supported_ptypes,\n \t.link_update\t\t= mana_dev_link_update,\n };\n \n const struct eth_dev_ops mana_dev_sec_ops = {\n+\t.dev_infos_get = mana_dev_info_get,\n };\n \n uint16_t\n", "prefixes": [ "v5", "06/18" ] }{ "id": 115535, "url": "