Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/60489/?format=api
http://patches.dpdk.org/api/patches/60489/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1570102517-41280-3-git-send-email-simei.su@intel.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": "<1570102517-41280-3-git-send-email-simei.su@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1570102517-41280-3-git-send-email-simei.su@intel.com", "date": "2019-10-03T11:35:16", "name": "[v9,2/3] ethdev: extend RSS offload types", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "50418368ca63fed360ec338170efc30d1c5f87ef", "submitter": { "id": 1298, "url": "http://patches.dpdk.org/api/people/1298/?format=api", "name": "Simei Su", "email": "simei.su@intel.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/1570102517-41280-3-git-send-email-simei.su@intel.com/mbox/", "series": [ { "id": 6682, "url": "http://patches.dpdk.org/api/series/6682/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6682", "date": "2019-10-03T11:35:14", "name": "extend RSS offload types", "version": 9, "mbox": "http://patches.dpdk.org/series/6682/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/60489/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/60489/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 07B041C0AC;\n\tThu, 3 Oct 2019 13:36:00 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id ED57B1C07C\n\tfor <dev@dpdk.org>; Thu, 3 Oct 2019 13:35:57 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Oct 2019 04:35:57 -0700", "from unknown (HELO npg-dpdk-cvl-simeisu-118d193.sh.intel.com)\n\t([10.67.110.183])\n\tby fmsmga004.fm.intel.com with ESMTP; 03 Oct 2019 04:35:56 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.67,251,1566889200\"; d=\"scan'208\";a=\"216783102\"", "From": "Simei Su <simei.su@intel.com>", "To": "qi.z.zhang@intel.com,\n\txiaolong.ye@intel.com,\n\tferruh.yigit@intel.com", "Cc": "dev@dpdk.org,\n\tsimei.su@intel.com", "Date": "Thu, 3 Oct 2019 19:35:16 +0800", "Message-Id": "<1570102517-41280-3-git-send-email-simei.su@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1570102517-41280-1-git-send-email-simei.su@intel.com>", "References": "<1569940564-311988-1-git-send-email-simei.su@intel.com>\n\t<1570102517-41280-1-git-send-email-simei.su@intel.com>", "Subject": "[dpdk-dev] [PATCH v9 2/3] ethdev: extend RSS offload types", "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": "This patch reserves several bits as input set selection from the\nhigh end of the 64 bits. It is combined with exisiting ETH_RSS_*\nto represent RSS types.\n\nSigned-off-by: Simei Su <simei.su@intel.com>\nReviewed-by: Qi Zhang <qi.z.zhang@intel.com>\nAcked-by: Ori Kam <orika@mellanox.com>\n---\n lib/librte_ethdev/rte_ethdev.c | 11 +++++++++++\n lib/librte_ethdev/rte_ethdev.h | 14 ++++++++++++++\n 2 files changed, 25 insertions(+)", "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex af82360..e483098 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -3112,6 +3112,17 @@ struct rte_eth_dev *\n \tif (ret != 0)\n \t\treturn ret;\n \n+\t/* simplified the SRC/DST_ONLY RSS offload modificaiton */\n+\tif ((rss_conf->rss_hf & ETH_RSS_L3_SRC_ONLY) &&\n+\t\t(rss_conf->rss_hf & ETH_RSS_L3_DST_ONLY))\n+\t\t\trss_conf->rss_hf &=\n+\t\t\t\t~(ETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY);\n+\n+\tif ((rss_conf->rss_hf & ETH_RSS_L4_SRC_ONLY) &&\n+\t\t(rss_conf->rss_hf & ETH_RSS_L4_DST_ONLY))\n+\t\t\trss_conf->rss_hf &=\n+\t\t\t\t~(ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY);\n+\n \tdev = &rte_eth_devices[port_id];\n \tif ((dev_info.flow_type_rss_offloads | rss_conf->rss_hf) !=\n \t dev_info.flow_type_rss_offloads) {\ndiff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 7722f70..6d61b84 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -505,6 +505,20 @@ struct rte_eth_rss_conf {\n #define ETH_RSS_GENEVE (1ULL << 20)\n #define ETH_RSS_NVGRE (1ULL << 21)\n \n+/*\n+ * We use the following macros to combine with above ETH_RSS_* for\n+ * more specific input set selection. These bits are defined starting\n+ * from the high end of the 64 bits.\n+ * Note: If we use above ETH_RSS_* without SRC/DST_ONLY, it represents\n+ * both SRC and DST are taken into account. If SRC_ONLY and DST_ONLY of\n+ * the same level be used simultaneously, it is the same case as none of\n+ * them are added.\n+ */\n+#define ETH_RSS_L3_SRC_ONLY (1ULL << 63)\n+#define ETH_RSS_L3_DST_ONLY (1ULL << 62)\n+#define ETH_RSS_L4_SRC_ONLY (1ULL << 61)\n+#define ETH_RSS_L4_DST_ONLY (1ULL << 60)\n+\n #define ETH_RSS_IP ( \\\n \tETH_RSS_IPV4 | \\\n \tETH_RSS_FRAG_IPV4 | \\\n", "prefixes": [ "v9", "2/3" ] }{ "id": 60489, "url": "