Show a patch.

GET /api/patches/102/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 102,
    "url": "http://patches.dpdk.org/api/patches/102/",
    "web_url": "http://patches.dpdk.org/patch/102/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1406535955-31070-2-git-send-email-helin.zhang@intel.com>",
    "date": "2014-07-28T08:25:50",
    "name": "[dpdk-dev,v2,1/6] ethdev: rename macros of packet classification type",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "210d63215a17ae273a2d2578168b3c70bfbe8642",
    "submitter": {
        "id": 14,
        "url": "http://patches.dpdk.org/api/people/14/",
        "name": "Helin Zhang",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/102/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/102/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/102/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<hzhan75@shecgisg004.sh.intel.com>",
        "References": "<1406535955-31070-1-git-send-email-helin.zhang@intel.com>",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": "E=Sophos;i=\"5.01,747,1400050800\"; d=\"scan'208\";a=\"579917564\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "X-List-Received-Date": "Mon, 28 Jul 2014 08:24:25 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1406535955-31070-2-git-send-email-helin.zhang@intel.com>",
        "Received": [
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 35F5C959\n\tfor <dev@dpdk.org>; Mon, 28 Jul 2014 10:24:24 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 28 Jul 2014 01:26:08 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 28 Jul 2014 01:26:06 -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 s6S8Q4SK022879;\n\tMon, 28 Jul 2014 16:26:04 +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 s6S8Q0CW031186; Mon, 28 Jul 2014 16:26:02 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s6S8Q0op031182; \n\tMon, 28 Jul 2014 16:26:00 +0800"
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Precedence": "list",
        "Date": "Mon, 28 Jul 2014 16:25:50 +0800",
        "Subject": "[dpdk-dev] [PATCH v2 1/6] ethdev: rename macros of packet\n\tclassification type",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-ExtLoop1": "1",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "In-Reply-To": "<1406535955-31070-1-git-send-email-helin.zhang@intel.com>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "To": "dev@dpdk.org"
    },
    "content": "For better understanding, 'PCTYPE' which represents\n'Packet Classification Type' is used to replace 'RSS'\nin the name of shift macros.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_ether/rte_ethdev.h | 76 +++++++++++++++++++++----------------------\n 1 file changed, 38 insertions(+), 38 deletions(-)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 50df654..dd36605 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -345,47 +345,47 @@ struct rte_eth_rss_conf {\n #define ETH_RSS_IPV4_UDP_SHIFT                6\n #define ETH_RSS_IPV6_UDP_SHIFT                7\n #define ETH_RSS_IPV6_UDP_EX_SHIFT             8\n-/* for 40G only */\n-#define ETH_RSS_NONF_IPV4_UDP_SHIFT           31\n-#define ETH_RSS_NONF_IPV4_TCP_SHIFT           33\n-#define ETH_RSS_NONF_IPV4_SCTP_SHIFT          34\n-#define ETH_RSS_NONF_IPV4_OTHER_SHIFT         35\n-#define ETH_RSS_FRAG_IPV4_SHIFT               36\n-#define ETH_RSS_NONF_IPV6_UDP_SHIFT           41\n-#define ETH_RSS_NONF_IPV6_TCP_SHIFT           43\n-#define ETH_RSS_NONF_IPV6_SCTP_SHIFT          44\n-#define ETH_RSS_NONF_IPV6_OTHER_SHIFT         45\n-#define ETH_RSS_FRAG_IPV6_SHIFT               46\n-#define ETH_RSS_FCOE_OX_SHIFT                 48\n-#define ETH_RSS_FCOE_RX_SHIFT                 49\n-#define ETH_RSS_FCOE_OTHER_SHIFT              50\n-#define ETH_RSS_L2_PAYLOAD_SHIFT              63\n+/* Packet Classification Type for 40G only */\n+#define ETH_PCTYPE_NONF_IPV4_UDP              31\n+#define ETH_PCTYPE_NONF_IPV4_TCP              33\n+#define ETH_PCTYPE_NONF_IPV4_SCTP             34\n+#define ETH_PCTYPE_NONF_IPV4_OTHER            35\n+#define ETH_PCTYPE_FRAG_IPV4                  36\n+#define ETH_PCTYPE_NONF_IPV6_UDP              41\n+#define ETH_PCTYPE_NONF_IPV6_TCP              43\n+#define ETH_PCTYPE_NONF_IPV6_SCTP             44\n+#define ETH_PCTYPE_NONF_IPV6_OTHER            45\n+#define ETH_PCTYPE_FRAG_IPV6                  46\n+#define ETH_PCTYPE_FCOE_OX                    48 /* not used */\n+#define ETH_PCTYPE_FCOE_RX                    49 /* not used */\n+#define ETH_PCTYPE_FCOE_OTHER                 50 /* not used */\n+#define ETH_PCTYPE_L2_PAYLOAD                 63\n \n /* for 1G & 10G */\n-#define ETH_RSS_IPV4                    ((uint16_t)1 << ETH_RSS_IPV4_SHIFT)\n-#define ETH_RSS_IPV4_TCP                ((uint16_t)1 << ETH_RSS_IPV4_TCP_SHIFT)\n-#define ETH_RSS_IPV6                    ((uint16_t)1 << ETH_RSS_IPV6_SHIFT)\n-#define ETH_RSS_IPV6_EX                 ((uint16_t)1 << ETH_RSS_IPV6_EX_SHIFT)\n-#define ETH_RSS_IPV6_TCP                ((uint16_t)1 << ETH_RSS_IPV6_TCP_SHIFT)\n-#define ETH_RSS_IPV6_TCP_EX             ((uint16_t)1 << ETH_RSS_IPV6_TCP_EX_SHIFT)\n-#define ETH_RSS_IPV4_UDP                ((uint16_t)1 << ETH_RSS_IPV4_UDP_SHIFT)\n-#define ETH_RSS_IPV6_UDP                ((uint16_t)1 << ETH_RSS_IPV6_UDP_SHIFT)\n-#define ETH_RSS_IPV6_UDP_EX             ((uint16_t)1 << ETH_RSS_IPV6_UDP_EX_SHIFT)\n+#define ETH_RSS_IPV4                    (1 << ETH_RSS_IPV4_SHIFT)\n+#define ETH_RSS_IPV4_TCP                (1 << ETH_RSS_IPV4_TCP_SHIFT)\n+#define ETH_RSS_IPV6                    (1 << ETH_RSS_IPV6_SHIFT)\n+#define ETH_RSS_IPV6_EX                 (1 << ETH_RSS_IPV6_EX_SHIFT)\n+#define ETH_RSS_IPV6_TCP                (1 << ETH_RSS_IPV6_TCP_SHIFT)\n+#define ETH_RSS_IPV6_TCP_EX             (1 << ETH_RSS_IPV6_TCP_EX_SHIFT)\n+#define ETH_RSS_IPV4_UDP                (1 << ETH_RSS_IPV4_UDP_SHIFT)\n+#define ETH_RSS_IPV6_UDP                (1 << ETH_RSS_IPV6_UDP_SHIFT)\n+#define ETH_RSS_IPV6_UDP_EX             (1 << ETH_RSS_IPV6_UDP_EX_SHIFT)\n /* for 40G only */\n-#define ETH_RSS_NONF_IPV4_UDP           ((uint64_t)1 << ETH_RSS_NONF_IPV4_UDP_SHIFT)\n-#define ETH_RSS_NONF_IPV4_TCP           ((uint64_t)1 << ETH_RSS_NONF_IPV4_TCP_SHIFT)\n-#define ETH_RSS_NONF_IPV4_SCTP          ((uint64_t)1 << ETH_RSS_NONF_IPV4_SCTP_SHIFT)\n-#define ETH_RSS_NONF_IPV4_OTHER         ((uint64_t)1 << ETH_RSS_NONF_IPV4_OTHER_SHIFT)\n-#define ETH_RSS_FRAG_IPV4               ((uint64_t)1 << ETH_RSS_FRAG_IPV4_SHIFT)\n-#define ETH_RSS_NONF_IPV6_UDP           ((uint64_t)1 << ETH_RSS_NONF_IPV6_UDP_SHIFT)\n-#define ETH_RSS_NONF_IPV6_TCP           ((uint64_t)1 << ETH_RSS_NONF_IPV6_TCP_SHIFT)\n-#define ETH_RSS_NONF_IPV6_SCTP          ((uint64_t)1 << ETH_RSS_NONF_IPV6_SCTP_SHIFT)\n-#define ETH_RSS_NONF_IPV6_OTHER         ((uint64_t)1 << ETH_RSS_NONF_IPV6_OTHER_SHIFT)\n-#define ETH_RSS_FRAG_IPV6               ((uint64_t)1 << ETH_RSS_FRAG_IPV6_SHIFT)\n-#define ETH_RSS_FCOE_OX                 ((uint64_t)1 << ETH_RSS_FCOE_OX_SHIFT) /* not used */\n-#define ETH_RSS_FCOE_RX                 ((uint64_t)1 << ETH_RSS_FCOE_RX_SHIFT) /* not used */\n-#define ETH_RSS_FCOE_OTHER              ((uint64_t)1 << ETH_RSS_FCOE_OTHER_SHIFT) /* not used */\n-#define ETH_RSS_L2_PAYLOAD              ((uint64_t)1 << ETH_RSS_L2_PAYLOAD_SHIFT)\n+#define ETH_RSS_NONF_IPV4_UDP           (1ULL << ETH_PCTYPE_NONF_IPV4_UDP)\n+#define ETH_RSS_NONF_IPV4_TCP           (1ULL << ETH_PCTYPE_NONF_IPV4_TCP)\n+#define ETH_RSS_NONF_IPV4_SCTP          (1ULL << ETH_PCTYPE_NONF_IPV4_SCTP)\n+#define ETH_RSS_NONF_IPV4_OTHER         (1ULL << ETH_PCTYPE_NONF_IPV4_OTHER)\n+#define ETH_RSS_FRAG_IPV4               (1ULL << ETH_PCTYPE_FRAG_IPV4)\n+#define ETH_RSS_NONF_IPV6_UDP           (1ULL << ETH_PCTYPE_NONF_IPV6_UDP)\n+#define ETH_RSS_NONF_IPV6_TCP           (1ULL << ETH_PCTYPE_NONF_IPV6_TCP)\n+#define ETH_RSS_NONF_IPV6_SCTP          (1ULL << ETH_PCTYPE_NONF_IPV6_SCTP)\n+#define ETH_RSS_NONF_IPV6_OTHER         (1ULL << ETH_PCTYPE_NONF_IPV6_OTHER)\n+#define ETH_RSS_FRAG_IPV6               (1ULL << ETH_PCTYPE_FRAG_IPV6)\n+#define ETH_RSS_FCOE_OX                 (1ULL << ETH_PCTYPE_FCOE_OX)\n+#define ETH_RSS_FCOE_RX                 (1ULL << ETH_PCTYPE_FCOE_RX)\n+#define ETH_RSS_FCOE_OTHER              (1ULL << ETH_PCTYPE_FCOE_OTHER)\n+#define ETH_RSS_L2_PAYLOAD              (1ULL << ETH_PCTYPE_L2_PAYLOAD)\n \n #define ETH_RSS_IP ( \\\n \t\tETH_RSS_IPV4 | \\\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "1/6"
    ]
}