Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54086/?format=api
http://patches.dpdk.org/api/patches/54086/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190602152434.23996-44-jerinj@marvell.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": "<20190602152434.23996-44-jerinj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190602152434.23996-44-jerinj@marvell.com", "date": "2019-06-02T15:24:19", "name": "[v1,43/58] net/octeontx2: connect flow API to ethdev ops", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "765a01c1d863c5b0d6df090db29adb8d7754c37b", "submitter": { "id": 1188, "url": "http://patches.dpdk.org/api/people/1188/?format=api", "name": "Jerin Jacob Kollanukkaran", "email": "jerinj@marvell.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/20190602152434.23996-44-jerinj@marvell.com/mbox/", "series": [ { "id": 4848, "url": "http://patches.dpdk.org/api/series/4848/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4848", "date": "2019-06-02T15:23:36", "name": "OCTEON TX2 Ethdev driver", "version": 1, "mbox": "http://patches.dpdk.org/series/4848/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54086/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/54086/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 706921BBEA;\n\tSun, 2 Jun 2019 17:26:51 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 70B9F1BBE3\n\tfor <dev@dpdk.org>; Sun, 2 Jun 2019 17:26:49 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n\tby mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx52FJmwT021277; Sun, 2 Jun 2019 08:26:48 -0700", "from sc-exch04.marvell.com ([199.233.58.184])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2supqkvqmk-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tSun, 02 Jun 2019 08:26:48 -0700", "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com\n\t(10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tSun, 2 Jun 2019 08:26:47 -0700", "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Sun, 2 Jun 2019 08:26:47 -0700", "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n\tby maili.marvell.com (Postfix) with ESMTP id B06293F703F;\n\tSun, 2 Jun 2019 08:26:45 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-transfer-encoding : content-type; s=pfpt0818;\n\tbh=oKoKocb0+JGZf/9yBzhsTns/Xtb+DVs22jCbX8oacKw=;\n\tb=EXCtYTmwPi15LOgks/kCisH9x2jRLNayJUc96H/l9iVlPpPoKITaWrslWdLxtK/lsL5Q\n\tWACPIY3acuBUNZ2BEk4UkfybgQ8GsHQwzi3DAZCz6uxOGBWQbRE5GBe7Ub5Pi/JNqDLF\n\tCZtARqcqM/Dqm0M281vSmc2hbya9sAezNccp3DeYSbHw2MCeEUvrjrZwNjfGffR757B8\n\t+wNYBMEn9uR0D7GwOpLJ6QAy2O5fYUcIcP1IC0gTSvZH9slbS3aux01bQihV4MAvrHpQ\n\tk+7cCaWM/2y/0LfA1HJZC8c34XLTJXHF+Qo+lAmKm53iBKRrLKRe31gFfD8CgrL9hKG3\n\t3w== ", "From": "<jerinj@marvell.com>", "To": "<dev@dpdk.org>, John McNamara <john.mcnamara@intel.com>, Marko Kovacevic\n\t<marko.kovacevic@intel.com>, Jerin Jacob <jerinj@marvell.com>, \"Nithin\n\tDabilpuram\" <ndabilpuram@marvell.com>, Kiran Kumar K\n\t<kirankumark@marvell.com>", "CC": "<ferruh.yigit@intel.com>, Vivek Sharma <viveksharma@marvell.com>", "Date": "Sun, 2 Jun 2019 20:54:19 +0530", "Message-ID": "<20190602152434.23996-44-jerinj@marvell.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190602152434.23996-1-jerinj@marvell.com>", "References": "<20190602152434.23996-1-jerinj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-02_09:, , signatures=0", "Subject": "[dpdk-dev] [PATCH v1 43/58] net/octeontx2: connect flow API to\n\tethdev ops", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Vivek Sharma <viveksharma@marvell.com>\n\nConnect rte_flow driver ops to ethdev via .filter_ctrl op.\n\nSigned-off-by: Vivek Sharma <viveksharma@marvell.com>\nSigned-off-by: Kiran Kumar K <kirankumark@marvell.com>\n---\n doc/guides/nics/features/octeontx2.ini | 1 +\n doc/guides/nics/features/octeontx2_vec.ini | 1 +\n doc/guides/nics/features/octeontx2_vf.ini | 1 +\n drivers/net/octeontx2/otx2_ethdev.c | 10 ++++++++++\n drivers/net/octeontx2/otx2_ethdev.h | 3 +++\n drivers/net/octeontx2/otx2_ethdev_ops.c | 21 +++++++++++++++++++++\n 6 files changed, 37 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/octeontx2.ini b/doc/guides/nics/features/octeontx2.ini\nindex 0f416ee4b..4917057f6 100644\n--- a/doc/guides/nics/features/octeontx2.ini\n+++ b/doc/guides/nics/features/octeontx2.ini\n@@ -22,6 +22,7 @@ RSS key update = Y\n RSS reta update = Y\n Inner RSS = Y\n Flow control = Y\n+Flow API = Y\n Packet type parsing = Y\n Timesync = Y\n Timestamp offload = Y\ndiff --git a/doc/guides/nics/features/octeontx2_vec.ini b/doc/guides/nics/features/octeontx2_vec.ini\nindex b909918ce..9049e8e99 100644\n--- a/doc/guides/nics/features/octeontx2_vec.ini\n+++ b/doc/guides/nics/features/octeontx2_vec.ini\n@@ -22,6 +22,7 @@ RSS key update = Y\n RSS reta update = Y\n Inner RSS = Y\n Flow control = Y\n+Flow API = Y\n Packet type parsing = Y\n Rx descriptor status = Y\n Basic stats = Y\ndiff --git a/doc/guides/nics/features/octeontx2_vf.ini b/doc/guides/nics/features/octeontx2_vf.ini\nindex 812d5d649..735b7447a 100644\n--- a/doc/guides/nics/features/octeontx2_vf.ini\n+++ b/doc/guides/nics/features/octeontx2_vf.ini\n@@ -17,6 +17,7 @@ RSS hash = Y\n RSS key update = Y\n RSS reta update = Y\n Inner RSS = Y\n+Flow API = Y\n Packet type parsing = Y\n Rx descriptor status = Y\n Basic stats = Y\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c\nindex 9cd3ce407..bda5b4aa4 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.c\n+++ b/drivers/net/octeontx2/otx2_ethdev.c\n@@ -1079,6 +1079,7 @@ otx2_nix_configure(struct rte_eth_dev *eth_dev)\n \t/* Free the resources allocated from the previous configure */\n \tif (dev->configured == 1) {\n \t\totx2_nix_rxchan_bpid_cfg(eth_dev, false);\n+\t\totx2_flow_fini(dev);\n \t\toxt2_nix_unregister_queue_irqs(eth_dev);\n \t\tnix_set_nop_rxtx_function(eth_dev);\n \t\trc = nix_store_queue_cfg_and_then_release(eth_dev);\n@@ -1324,6 +1325,7 @@ static const struct eth_dev_ops otx2_eth_dev_ops = {\n \t.rx_descriptor_status = otx2_nix_rx_descriptor_status,\n \t.tx_done_cleanup = otx2_nix_tx_done_cleanup,\n \t.pool_ops_supported = otx2_nix_pool_ops_supported,\n+\t.filter_ctrl = otx2_nix_dev_filter_ctrl,\n \t.get_module_info = otx2_nix_get_module_info,\n \t.get_module_eeprom = otx2_nix_get_module_eeprom,\n \t.flow_ctrl_get = otx2_nix_flow_ctrl_get,\n@@ -1503,6 +1505,11 @@ otx2_eth_dev_init(struct rte_eth_dev *eth_dev)\n \t\tdev->hwcap |= OTX2_FIXUP_F_LIMIT_CQ_FULL;\n \t}\n \n+\t/* Initialize rte-flow */\n+\trc = otx2_flow_init(dev);\n+\tif (rc)\n+\t\tgoto free_mac_addrs;\n+\n \totx2_nix_dbg(\"Port=%d pf=%d vf=%d ver=%s msix_off=%d hwcap=0x%\" PRIx64\n \t\t \" rxoffload_capa=0x%\" PRIx64 \" txoffload_capa=0x%\" PRIx64,\n \t\t eth_dev->data->port_id, dev->pf, dev->vf,\n@@ -1539,6 +1546,9 @@ otx2_eth_dev_uninit(struct rte_eth_dev *eth_dev, bool mbox_close)\n \t/* Disable nix bpid config */\n \totx2_nix_rxchan_bpid_cfg(eth_dev, false);\n \n+\t/* Disable other rte_flow entries */\n+\totx2_flow_fini(dev);\n+\n \t/* Disable PTP if already enabled */\n \tif (otx2_ethdev_is_ptp_en(dev))\n \t\totx2_nix_timesync_disable(eth_dev);\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.h b/drivers/net/octeontx2/otx2_ethdev.h\nindex 1edc7da29..e9123641c 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.h\n+++ b/drivers/net/octeontx2/otx2_ethdev.h\n@@ -274,6 +274,9 @@ otx2_eth_pmd_priv(struct rte_eth_dev *eth_dev)\n /* Ops */\n void otx2_nix_info_get(struct rte_eth_dev *eth_dev,\n \t\t struct rte_eth_dev_info *dev_info);\n+int otx2_nix_dev_filter_ctrl(struct rte_eth_dev *eth_dev,\n+\t\t\t enum rte_filter_type filter_type,\n+\t\t\t enum rte_filter_op filter_op, void *arg);\n int otx2_nix_get_module_info(struct rte_eth_dev *eth_dev,\n \t\t\t struct rte_eth_dev_module_info *modinfo);\n int otx2_nix_get_module_eeprom(struct rte_eth_dev *eth_dev,\ndiff --git a/drivers/net/octeontx2/otx2_ethdev_ops.c b/drivers/net/octeontx2/otx2_ethdev_ops.c\nindex 51c156786..1da9222b7 100644\n--- a/drivers/net/octeontx2/otx2_ethdev_ops.c\n+++ b/drivers/net/octeontx2/otx2_ethdev_ops.c\n@@ -220,6 +220,27 @@ otx2_nix_pool_ops_supported(struct rte_eth_dev *eth_dev, const char *pool)\n \treturn -ENOTSUP;\n }\n \n+int\n+otx2_nix_dev_filter_ctrl(struct rte_eth_dev *eth_dev,\n+\t\t\t enum rte_filter_type filter_type,\n+\t\t\t enum rte_filter_op filter_op, void *arg)\n+{\n+\tRTE_SET_USED(eth_dev);\n+\n+\tif (filter_type != RTE_ETH_FILTER_GENERIC) {\n+\t\totx2_err(\"Unsupported filter type %d\", filter_type);\n+\t\treturn -ENOTSUP;\n+\t}\n+\n+\tif (filter_op == RTE_ETH_FILTER_GET) {\n+\t\t*(const void **)arg = &otx2_flow_ops;\n+\t\treturn 0;\n+\t}\n+\n+\totx2_err(\"Invalid filter_op %d\", filter_op);\n+\treturn -EINVAL;\n+}\n+\n static struct cgx_fw_data *\n nix_get_fwdata(struct otx2_eth_dev *dev)\n {\n", "prefixes": [ "v1", "43/58" ] }{ "id": 54086, "url": "