Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7355/?format=api
https://patches.dpdk.org/api/patches/7355/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1443729293-20753-3-git-send-email-konstantin.ananyev@intel.com/", "project": { "id": 1, "url": "https://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": "<1443729293-20753-3-git-send-email-konstantin.ananyev@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1443729293-20753-3-git-send-email-konstantin.ananyev@intel.com", "date": "2015-10-01T19:54:47", "name": "[dpdk-dev,PATCHv5,2/8] i40e: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "337795c66ed61eb6308292b37f3ebef016a41e8a", "submitter": { "id": 33, "url": "https://patches.dpdk.org/api/people/33/?format=api", "name": "Ananyev, Konstantin", "email": "konstantin.ananyev@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1443729293-20753-3-git-send-email-konstantin.ananyev@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7355/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7355/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id D2A228E93;\n\tThu, 1 Oct 2015 21:55:33 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 3C6F68E86\n\tfor <dev@dpdk.org>; Thu, 1 Oct 2015 21:55:32 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP; 01 Oct 2015 12:55:03 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga003.jf.intel.com with ESMTP; 01 Oct 2015 12:55:02 -0700", "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\n\t[10.237.217.46])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt91Jt2AA015457; Thu, 1 Oct 2015 20:55:02 +0100", "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev02.ir.intel.com with ESMTP id t91Jt2ht020807;\n\tThu, 1 Oct 2015 20:55:02 +0100", "(from kananye1@localhost)\n\tby sivswdev02.ir.intel.com with id t91Jt2v7020800;\n\tThu, 1 Oct 2015 20:55:02 +0100" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,619,1437462000\"; d=\"scan'208\";a=\"656113252\"", "From": "Konstantin Ananyev <konstantin.ananyev@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 1 Oct 2015 20:54:47 +0100", "Message-Id": "<1443729293-20753-3-git-send-email-konstantin.ananyev@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1443729293-20753-1-git-send-email-konstantin.ananyev@intel.com>", "References": "<1443729293-20753-1-git-send-email-konstantin.ananyev@intel.com>", "Subject": "[dpdk-dev] [PATCHv5 2/8] i40e: add support for\n\teth_(rxq|txq)_info_get and (rx|tx)_desc_lim", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: \"Ananyev, Konstantin\" <konstantin.ananyev@intel.com>\n\nThis patch assumes that the patch:\ni40e: fix wrong alignment for the number of HW descriptors\nalready applied.\n\nSigned-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 14 ++++++++++++++\n drivers/net/i40e/i40e_ethdev.h | 5 +++++\n drivers/net/i40e/i40e_ethdev_vf.c | 12 ++++++++++++\n drivers/net/i40e/i40e_rxtx.c | 37 +++++++++++++++++++++++++++++++++++++\n 4 files changed, 68 insertions(+)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 2dd9fdc..cbc1985 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -283,6 +283,8 @@ static const struct eth_dev_ops i40e_eth_dev_ops = {\n \t.udp_tunnel_add = i40e_dev_udp_tunnel_add,\n \t.udp_tunnel_del = i40e_dev_udp_tunnel_del,\n \t.filter_ctrl = i40e_dev_filter_ctrl,\n+\t.rxq_info_get = i40e_rxq_info_get,\n+\t.txq_info_get = i40e_txq_info_get,\n \t.mirror_rule_set = i40e_mirror_rule_set,\n \t.mirror_rule_reset = i40e_mirror_rule_reset,\n \t.timesync_enable = i40e_timesync_enable,\n@@ -1674,6 +1676,18 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \t\t\t\tETH_TXQ_FLAGS_NOOFFLOADS,\n \t};\n \n+\tdev_info->rx_desc_lim = (struct rte_eth_desc_lim) {\n+\t\t.nb_max = I40E_MAX_RING_DESC,\n+\t\t.nb_min = I40E_MIN_RING_DESC,\n+\t\t.nb_align = I40E_ALIGN_RING_DESC,\n+\t};\n+\n+\tdev_info->tx_desc_lim = (struct rte_eth_desc_lim) {\n+\t\t.nb_max = I40E_MAX_RING_DESC,\n+\t\t.nb_min = I40E_MIN_RING_DESC,\n+\t\t.nb_align = I40E_ALIGN_RING_DESC,\n+\t};\n+\n \tif (pf->flags & I40E_FLAG_VMDQ) {\n \t\tdev_info->max_vmdq_pools = pf->max_nb_vmdq_vsi;\n \t\tdev_info->vmdq_queue_base = dev_info->max_rx_queues;\ndiff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h\nindex 6185657..4748392 100644\n--- a/drivers/net/i40e/i40e_ethdev.h\n+++ b/drivers/net/i40e/i40e_ethdev.h\n@@ -502,6 +502,11 @@ int i40e_fdir_ctrl_func(struct rte_eth_dev *dev,\n \t\t\t enum rte_filter_op filter_op,\n \t\t\t void *arg);\n \n+void i40e_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\tstruct rte_eth_rxq_info *qinfo);\n+void i40e_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\tstruct rte_eth_txq_info *qinfo);\n+\n /* I40E_DEV_PRIVATE_TO */\n #define I40E_DEV_PRIVATE_TO_PF(adapter) \\\n \t(&((struct i40e_adapter *)adapter)->pf)\ndiff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex b694400..5dad12d 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -1756,6 +1756,18 @@ i40evf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \t\t.txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS |\n \t\t\t\tETH_TXQ_FLAGS_NOOFFLOADS,\n \t};\n+\n+\tdev_info->rx_desc_lim = (struct rte_eth_desc_lim) {\n+\t\t.nb_max = I40E_MAX_RING_DESC,\n+\t\t.nb_min = I40E_MIN_RING_DESC,\n+\t\t.nb_align = I40E_ALIGN_RING_DESC,\n+\t};\n+\n+\tdev_info->tx_desc_lim = (struct rte_eth_desc_lim) {\n+\t\t.nb_max = I40E_MAX_RING_DESC,\n+\t\t.nb_min = I40E_MIN_RING_DESC,\n+\t\t.nb_align = I40E_ALIGN_RING_DESC,\n+\t};\n }\n \n static void\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 7a30c44..78b2f9b 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -3065,3 +3065,40 @@ i40e_fdir_setup_rx_resources(struct i40e_pf *pf)\n \n \treturn I40E_SUCCESS;\n }\n+\n+void\n+i40e_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\tstruct rte_eth_rxq_info *qinfo)\n+{\n+\tstruct i40e_rx_queue *rxq;\n+\n+\trxq = dev->data->rx_queues[queue_id];\n+\n+\tqinfo->mp = rxq->mp;\n+\tqinfo->scattered_rx = dev->data->scattered_rx;\n+\tqinfo->nb_desc = rxq->nb_rx_desc;\n+\n+\tqinfo->conf.rx_free_thresh = rxq->rx_free_thresh;\n+\tqinfo->conf.rx_drop_en = rxq->drop_en;\n+\tqinfo->conf.rx_deferred_start = rxq->rx_deferred_start;\n+}\n+\n+void\n+i40e_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\tstruct rte_eth_txq_info *qinfo)\n+{\n+\tstruct i40e_tx_queue *txq;\n+\n+\ttxq = dev->data->tx_queues[queue_id];\n+\n+\tqinfo->nb_desc = txq->nb_tx_desc;\n+\n+\tqinfo->conf.tx_thresh.pthresh = txq->pthresh;\n+\tqinfo->conf.tx_thresh.hthresh = txq->hthresh;\n+\tqinfo->conf.tx_thresh.wthresh = txq->wthresh;\n+\n+\tqinfo->conf.tx_free_thresh = txq->tx_free_thresh;\n+\tqinfo->conf.tx_rs_thresh = txq->tx_rs_thresh;\n+\tqinfo->conf.txq_flags = txq->txq_flags;\n+\tqinfo->conf.tx_deferred_start = txq->tx_deferred_start;\n+}\n", "prefixes": [ "dpdk-dev", "PATCHv5", "2/8" ] }{ "id": 7355, "url": "