Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/12359/?format=api
https://patches.dpdk.org/api/patches/12359/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1462254672-6563-3-git-send-email-jingjing.wu@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": "<1462254672-6563-3-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1462254672-6563-3-git-send-email-jingjing.wu@intel.com", "date": "2016-05-03T05:51:12", "name": "[dpdk-dev,2/2] i40e: NSH packet type support", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "72e192662d725f6bbb95b7d2a375612aa4204b42", "submitter": { "id": 47, "url": "https://patches.dpdk.org/api/people/47/?format=api", "name": "Jingjing Wu", "email": "jingjing.wu@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1462254672-6563-3-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/12359/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/12359/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 1FAD95939;\n\tTue, 3 May 2016 07:51:32 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id C7FBC5938\n\tfor <dev@dpdk.org>; Tue, 3 May 2016 07:51:30 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP; 02 May 2016 22:51:29 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga001.fm.intel.com with ESMTP; 02 May 2016 22:51:28 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id u435pOgm009110;\n\tTue, 3 May 2016 13:51:24 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid u435pLjv006612; Tue, 3 May 2016 13:51:23 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u435pLmi006608; \n\tTue, 3 May 2016 13:51:21 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,571,1455004800\"; d=\"scan'208\";a=\"957621761\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "helin.zhang@intel.com", "Cc": "jingjing.wu@intel.com, dev@dpdk.org", "Date": "Tue, 3 May 2016 13:51:12 +0800", "Message-Id": "<1462254672-6563-3-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1462254672-6563-1-git-send-email-jingjing.wu@intel.com>", "References": "<1462254672-6563-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH 2/2] i40e: NSH packet type support", "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": "NSH packet can be recognized by Intel X710/XL710 series. This\npatch enables the new packet type.\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n app/test-pmd/rxonly.c | 3 +++\n doc/guides/rel_notes/release_16_07.rst | 2 ++\n drivers/net/i40e/i40e_rxtx.c | 27 +++++++++++++++++++++++++++\n 3 files changed, 32 insertions(+)", "diff": "diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c\nindex 14555ab..5f3c2c0 100644\n--- a/app/test-pmd/rxonly.c\n+++ b/app/test-pmd/rxonly.c\n@@ -179,6 +179,9 @@ pkt_burst_receive(struct fwd_stream *fs)\n \t\t\tcase RTE_PTYPE_L2_ETHER_LLDP:\n \t\t\t\tprintf(\" - (outer) L2 type: ETHER_LLDP\");\n \t\t\t\tbreak;\n+\t\t\tcase RTE_PTYPE_L2_ETHER_NSH:\n+\t\t\t\tprintf(\" - (outer) L2 type: ETHER_NSH\");\n+\t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\tprintf(\" - (outer) L2 type: Unknown\");\n \t\t\t\tbreak;\ndiff --git a/doc/guides/rel_notes/release_16_07.rst b/doc/guides/rel_notes/release_16_07.rst\nindex 83c841b..3742b90 100644\n--- a/doc/guides/rel_notes/release_16_07.rst\n+++ b/doc/guides/rel_notes/release_16_07.rst\n@@ -34,6 +34,8 @@ This section should contain new features added in this release. Sample format:\n \n Refer to the previous release notes for examples.\n \n+* **Added NSH packet recognition in i40e.**\n+\n \n Resolved Issues\n ---------------\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 4d35d83..a7fc785 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -719,6 +719,33 @@ i40e_rxd_pkt_type_mapping(uint8_t ptype)\n \t\t\tRTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n \t\t\tRTE_PTYPE_INNER_L4_ICMP,\n \n+\t\t/* L2 NSH packet type */\n+\t\t[154] = RTE_PTYPE_L2_ETHER_NSH,\n+\t\t[155] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_FRAG,\n+\t\t[156] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_NONFRAG,\n+\t\t[157] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_UDP,\n+\t\t[158] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_TCP,\n+\t\t[159] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_SCTP,\n+\t\t[160] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_ICMP,\n+\t\t[161] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_FRAG,\n+\t\t[162] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_NONFRAG,\n+\t\t[163] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_UDP,\n+\t\t[164] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_TCP,\n+\t\t[165] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_SCTP,\n+\t\t[166] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |\n+\t\t\tRTE_PTYPE_L4_ICMP,\n+\n \t\t/* All others reserved */\n \t};\n \n", "prefixes": [ "dpdk-dev", "2/2" ] }{ "id": 12359, "url": "