Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1729/?format=api
http://patches.dpdk.org/api/patches/1729/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1417532767-1309-2-git-send-email-jijiang.liu@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": "<1417532767-1309-2-git-send-email-jijiang.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1417532767-1309-2-git-send-email-jijiang.liu@intel.com", "date": "2014-12-02T15:06:05", "name": "[dpdk-dev,v5,1/3] mbuf:redefine three TX ol_flags", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "674aaad1d41b4262cbbf6f797b30b406c1372000", "submitter": { "id": 52, "url": "http://patches.dpdk.org/api/people/52/?format=api", "name": "Jijiang Liu", "email": "jijiang.liu@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1417532767-1309-2-git-send-email-jijiang.liu@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/1729/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/1729/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 3A7C07F51;\n\tTue, 2 Dec 2014 16:06:20 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id E2F187F50\n\tfor <dev@dpdk.org>; Tue, 2 Dec 2014 16:06:17 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga103.jf.intel.com with ESMTP; 02 Dec 2014 07:02:55 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 02 Dec 2014 07:03:02 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id sB2F6DMB007321;\n\tTue, 2 Dec 2014 23:06:13 +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 sB2F6B2I001351; Tue, 2 Dec 2014 23:06:13 +0800", "(from jijiangl@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sB2F6Bps001347; \n\tTue, 2 Dec 2014 23:06:11 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.04,691,1406617200\"; d=\"scan'208\";a=\"492305015\"", "From": "Jijiang Liu <jijiang.liu@intel.com>", "To": "dev@dpdk.org", "Date": "Tue, 2 Dec 2014 23:06:05 +0800", "Message-Id": "<1417532767-1309-2-git-send-email-jijiang.liu@intel.com>", "X-Mailer": "git-send-email 1.7.12.2", "In-Reply-To": "<1417532767-1309-1-git-send-email-jijiang.liu@intel.com>", "References": "<1417532767-1309-1-git-send-email-jijiang.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 1/3] mbuf:redefine three TX ol_flags", "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": "The reason of redefining the PKT_TX_IPV4 and the PKT_TX_IPV6 is listed below,\nIt will avoid to send a packet with a bad info:\n - we receive a Ether/IP6/IP4/L4/data packet\n - the driver sets PKT_RX_IPV6_HDR\n - the stack decapsulates IP6\n - the stack sends the packet, it has the PKT_TX_IPV6 flag but it's an IPv4 packet.\n\nSigned-off-by: Jijiang Liu <jijiang.liu@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 10 +++++-----\n 1 files changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 2e5fce5..cbadf8e 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -141,13 +141,13 @@ extern \"C\" {\n #define PKT_TX_IP_CKSUM (1ULL << 54) /**< IP cksum of TX pkt. computed by NIC. */\n #define PKT_TX_IPV4_CSUM PKT_TX_IP_CKSUM /**< Alias of PKT_TX_IP_CKSUM. */\n \n-/** Tell the NIC it's an IPv4 packet. Required for L4 checksum offload or TSO. */\n-#define PKT_TX_IPV4 PKT_RX_IPV4_HDR\n+/** Packet is IPv4 without requiring IP checksum offload. */\n+#define PKT_TX_IPV4 (1ULL << 55)\n \n-/** Tell the NIC it's an IPv6 packet. Required for L4 checksum offload or TSO. */\n-#define PKT_TX_IPV6 PKT_RX_IPV6_HDR\n+/** Tell the NIC it's an IPv6 packet.*/\n+#define PKT_TX_IPV6 (1ULL << 56)\n \n-#define PKT_TX_VLAN_PKT (1ULL << 55) /**< TX packet is a 802.1q VLAN packet. */\n+#define PKT_TX_VLAN_PKT (1ULL << 57) /**< TX packet is a 802.1q VLAN packet. */\n \n /* Use final bit of flags to indicate a control mbuf */\n #define CTRL_MBUF_FLAG (1ULL << 63) /**< Mbuf contains control data */\n", "prefixes": [ "dpdk-dev", "v5", "1/3" ] }{ "id": 1729, "url": "