Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/35371/?format=api
http://patches.dpdk.org/api/patches/35371/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180223115913.19266-2-shweta.choudaha@gmail.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": "<20180223115913.19266-2-shweta.choudaha@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180223115913.19266-2-shweta.choudaha@gmail.com", "date": "2018-02-23T11:59:13", "name": "[dpdk-dev,1/1] net/ixgbe: Add API to update SBP bit", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "d6bbdc24e26d7d3c7c322091246db81530dd60d3", "submitter": { "id": 881, "url": "http://patches.dpdk.org/api/people/881/?format=api", "name": "Shweta Choudaha", "email": "shweta.choudaha@gmail.com" }, "delegate": { "id": 24, "url": "http://patches.dpdk.org/api/users/24/?format=api", "username": "helin_zhang", "first_name": "Helin", "last_name": "Zhang", "email": "helin.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180223115913.19266-2-shweta.choudaha@gmail.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/35371/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/35371/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 EA9984CB5;\n\tFri, 23 Feb 2018 12:59:34 +0100 (CET)", "from mail-wr0-f195.google.com (mail-wr0-f195.google.com\n\t[209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 43D224CAD\n\tfor <dev@dpdk.org>; Fri, 23 Feb 2018 12:59:33 +0100 (CET)", "by mail-wr0-f195.google.com with SMTP id z12so13843256wrg.4\n\tfor <dev@dpdk.org>; Fri, 23 Feb 2018 03:59:33 -0800 (PST)", "from schoudah-dev.vyatta.net ([137.221.143.78])\n\tby smtp.gmail.com with ESMTPSA id\n\tg7sm2351224wrb.78.2018.02.23.03.59.32\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 23 Feb 2018 03:59:32 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=nF4m/doHZAXDveHrj9rwX1BVVqR3LRFO4WBUOncW+WY=;\n\tb=IYab6xC00RMBXfnYqUwHld++LrBF9wmVmuV6P3VkFwvF+yMNz+PyEiiKRp02z/misb\n\thBZDark8L+0+gnDoQZswaRAgiCu0IKhqWbUK6W/EGFc+MSuX9a1KQXLRhvs9/sbj3YCM\n\ttMj0NeB7auNSoewuCZsd+/y8TAMzu0nC2obDJHDCiwAZCgD0yBRzjjV3Havn1AHRZCTv\n\t058CfrG4SVeeGlsC5Kpv5fIRKTpi3SnUNX3P45irjkciAl9vIYden4FIJSyt3J5CEoTE\n\tZLjHQ1mosx/q7VTFlF4EZTIKnKB9etW2Y2m2zkxC9shELbuthvSRDNLAfKrwoQwGhzm6\n\tIOQg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=nF4m/doHZAXDveHrj9rwX1BVVqR3LRFO4WBUOncW+WY=;\n\tb=eyby0aR4Av+hCT9GvehASj6A8jqkcCTArLK4ABjHBC38otMlt+QGBLZR7lFH+TTan6\n\tSadKl4p27PoYYaUILWC6hRWV5h+aEq7GXzfTzyhrUqy5/wC/bcKF5Va65TjCK3soK4f7\n\tamQshq+ho8Wx6c9EzSQcYpgvDG/WVdUi/ZTlsS6emv9lBHWJXzHSrnsRQqLxeoQwqlD9\n\txwn1MpKqd5PcvMGvNkI/tJjGERQvKbItP/oozD/Ti/V93KbL+ftIA9bPCHKtIXoRRiDE\n\tbc6iTnxay0pQJ1jeXbS5Nf8WrMYa4C8asqE3tl8pCfqtvrBqtR2SmIST4bQRkepZThtG\n\tJqbA==", "X-Gm-Message-State": "APf1xPA0AxvS/u474YPWKhw0TI/yv3B94hZtx/9Lu72Xvg/jR7ax/L9m\n\tfsMaK2zquiFsDwxBQYMUKUgRuA==", "X-Google-Smtp-Source": "AH8x227y5Xp9nUCFDyQ7Kl+0TTydY0/s4AgmE4wz2hZ2n2F4nKEnZL6opDtdAct6a/vkUY7BEtjv5Q==", "X-Received": "by 10.223.162.152 with SMTP id s24mr1385324wra.148.1519387172791;\n\tFri, 23 Feb 2018 03:59:32 -0800 (PST)", "From": "Shweta Choudaha <shweta.choudaha@gmail.com>", "To": "dev@dpdk.org", "Cc": "shweta.choudaha@att.com", "Date": "Fri, 23 Feb 2018 11:59:13 +0000", "Message-Id": "<20180223115913.19266-2-shweta.choudaha@gmail.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<20180223115913.19266-1-shweta.choudaha@gmail.com>", "References": "<20180223115913.19266-1-shweta.choudaha@gmail.com>", "Subject": "[dpdk-dev] [PATCH 1/1] net/ixgbe: Add API to update SBP bit", "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://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": "<https://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: Shweta Choudaha <shweta.choudaha@att.com>\n\nAdd ixgbe API to enable SBP bit in FCTRL register\nto allow receiving packets that may otherwise be\nconsidered length errors by ixgbe and dropped\n\nSigned-off-by: Shweta Choudaha <shweta.choudaha@att.com>\nReviewed-by: Chas Williams <chas3@att.com>\nReviewed-by: Luca Boccassi <bluca@debian.org>\n---\n drivers/net/ixgbe/rte_pmd_ixgbe.c | 28 ++++++++++++++++++++++++++++\n drivers/net/ixgbe/rte_pmd_ixgbe.h | 13 +++++++++++++\n drivers/net/ixgbe/rte_pmd_ixgbe_version.map | 6 ++++++\n 3 files changed, 47 insertions(+)", "diff": "diff --git a/drivers/net/ixgbe/rte_pmd_ixgbe.c b/drivers/net/ixgbe/rte_pmd_ixgbe.c\nindex d8ca8ca31..3b6f68f9e 100644\n--- a/drivers/net/ixgbe/rte_pmd_ixgbe.c\n+++ b/drivers/net/ixgbe/rte_pmd_ixgbe.c\n@@ -880,6 +880,34 @@ rte_pmd_ixgbe_set_tc_bw_alloc(uint16_t port,\n \treturn 0;\n }\n \n+int __rte_experimental\n+rte_pmd_ixgbe_upd_fctrl_sbp(uint16_t port, int enable)\n+{\n+\tstruct ixgbe_hw *hw;\n+\tstruct rte_eth_dev *dev;\n+\tuint32_t fctrl;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port, -ENODEV);\n+\tdev = &rte_eth_devices[port];\n+\tif (!is_ixgbe_supported(dev))\n+\t\treturn -ENOTSUP;\n+\n+\thw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\tif (!hw)\n+\t\treturn -ENOTSUP;\n+\n+\tfctrl = IXGBE_READ_REG(hw, IXGBE_FCTRL);\n+\n+\t/* If 'enable' set the SBP bit else clear it */\n+\tif (enable)\n+\t\tfctrl |= IXGBE_FCTRL_SBP;\n+\telse\n+\t\tfctrl &= ~(IXGBE_FCTRL_SBP);\n+\n+\tIXGBE_WRITE_REG(hw, IXGBE_FCTRL, fctrl);\n+\treturn 0;\n+}\n+\n #ifdef RTE_LIBRTE_IXGBE_BYPASS\n int\n rte_pmd_ixgbe_bypass_init(uint16_t port_id)\ndiff --git a/drivers/net/ixgbe/rte_pmd_ixgbe.h b/drivers/net/ixgbe/rte_pmd_ixgbe.h\nindex 11a9f334b..a3026bd98 100644\n--- a/drivers/net/ixgbe/rte_pmd_ixgbe.h\n+++ b/drivers/net/ixgbe/rte_pmd_ixgbe.h\n@@ -637,4 +637,17 @@ enum {\n \t((x) > RTE_PMD_IXGBE_BYPASS_TMT_OFF && \\\n \t(x) < RTE_PMD_IXGBE_BYPASS_TMT_NUM))\n \n+/**\n+ * @param port\n+ * The port identifier of the Ethernet device.\n+ * @param enable\n+ * 0 to disable and nonzero to enable 'SBP' bit in FCTRL register\n+ * to receive all packets\n+ * @return\n+ * - (0) if successful.\n+ * - (-ENODEV) if *port* invalid.\n+ * - (-ENOTSUP) if hardware doesn't support this feature.\n+ */\n+int __rte_experimental\n+rte_pmd_ixgbe_upd_fctrl_sbp(uint16_t port, int enable);\n #endif /* _PMD_IXGBE_H_ */\ndiff --git a/drivers/net/ixgbe/rte_pmd_ixgbe_version.map b/drivers/net/ixgbe/rte_pmd_ixgbe_version.map\nindex bf776742c..a360d383b 100644\n--- a/drivers/net/ixgbe/rte_pmd_ixgbe_version.map\n+++ b/drivers/net/ixgbe/rte_pmd_ixgbe_version.map\n@@ -52,3 +52,9 @@ DPDK_17.08 {\n \trte_pmd_ixgbe_bypass_wd_timeout_show;\n \trte_pmd_ixgbe_bypass_wd_timeout_store;\n } DPDK_17.05;\n+\n+EXPERIMENTAL {\n+\tglobal:\n+\n+\trte_pmd_ixgbe_upd_fctrl_sbp;\n+} DPDK_17.08;\n", "prefixes": [ "dpdk-dev", "1/1" ] }{ "id": 35371, "url": "