Show a patch.

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

{
    "id": 353,
    "url": "http://patches.dpdk.org/api/patches/353/",
    "web_url": "http://patches.dpdk.org/patch/353/",
    "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": "<1410441347-22840-6-git-send-email-bruce.richardson@intel.com>",
    "date": "2014-09-11T13:15:39",
    "name": "[dpdk-dev,v2,05/13] mbuf: minor changes for readability",
    "commit_ref": "",
    "pull_url": "",
    "state": "accepted",
    "archived": true,
    "hash": "4fd2ffa4e2ac869b894d442be26cb779cb04a504",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/353/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/353/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/353/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "References": "<1409759378-10113-1-git-send-email-bruce.richardson@intel.com>\r\n\t<1410441347-22840-1-git-send-email-bruce.richardson@intel.com>",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,505,1406617200\"; d=\"scan'208\";a=\"598051483\"",
        "Date": "Thu, 11 Sep 2014 14:15:39 +0100",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1410441347-22840-6-git-send-email-bruce.richardson@intel.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\r\n\tby dpdk.org (Postfix) with ESMTP id 8D097B398;\r\n\tThu, 11 Sep 2014 15:11:55 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\r\n\tby dpdk.org (Postfix) with ESMTP id E01F468A7\r\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 15:11:53 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\r\n\tby fmsmga101.fm.intel.com with ESMTP; 11 Sep 2014 06:16:47 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\r\n\tby fmsmga002.fm.intel.com with ESMTP; 11 Sep 2014 06:15:50 -0700",
            "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\r\n\t[10.237.217.46])\r\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\r\n\ts8BDFndP002150; Thu, 11 Sep 2014 14:15:49 +0100",
            "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\r\n\tby sivswdev02.ir.intel.com with ESMTP id s8BDFn7r023634;\r\n\tThu, 11 Sep 2014 14:15:49 +0100",
            "(from bricha3@localhost)\r\n\tby sivswdev02.ir.intel.com with  id s8BDFmhb023630;\r\n\tThu, 11 Sep 2014 14:15:49 +0100"
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v2 05/13] mbuf: minor changes for readability",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "Precedence": "list",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-ExtLoop1": "1",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\r\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Delivered-To": "patchwork@dpdk.org",
        "In-Reply-To": "<1410441347-22840-1-git-send-email-bruce.richardson@intel.com>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\r\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "* Ensure comments line up correctly\n* Simplify the #ifdefs around the refcnt fields to make them clearer\n\nUpdates in V2:\n* None\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 33 ++++++++++++++++-----------------\n 1 file changed, 16 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\r\nindex b9a1c66..6ce852a 100644\r\n--- a/lib/librte_mbuf/rte_mbuf.h\r\n+++ b/lib/librte_mbuf/rte_mbuf.h\r\n@@ -126,7 +126,6 @@ struct rte_mbuf {\r\n \tuint16_t buf_len;         /**< Length of segment buffer. */\r\n \tuint16_t data_off;\r\n \r\n-#ifdef RTE_MBUF_REFCNT\r\n \t/**\r\n \t * 16-bit Reference counter.\r\n \t * It should only be accessed using the following functions:\r\n@@ -136,21 +135,21 @@ struct rte_mbuf {\r\n \t * config option.\r\n \t */\r\n \tunion {\r\n-\t\trte_atomic16_t refcnt_atomic;   /**< Atomically accessed refcnt */\r\n-\t\tuint16_t refcnt;                /**< Non-atomically accessed refcnt */\r\n-\t};\r\n-#else\r\n-\tuint16_t refcnt_reserved;     /**< Do not use this field */\r\n+#ifdef RTE_MBUF_REFCNT\r\n+\t\trte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */\r\n+\t\tuint16_t refcnt;              /**< Non-atomically accessed refcnt */\r\n #endif\r\n-\tuint8_t nb_segs;        /**< Number of segments. */\r\n-\tuint8_t port;           /**< Input port. */\r\n+\t\tuint16_t refcnt_reserved;     /**< Do not use this field */\r\n+\t};\r\n+\tuint8_t nb_segs;          /**< Number of segments. */\r\n+\tuint8_t port;             /**< Input port. */\r\n \r\n-\tuint64_t ol_flags;      /**< Offload features. */\r\n+\tuint64_t ol_flags;        /**< Offload features. */\r\n \r\n \t/* remaining bytes are set on RX when pulling packet from descriptor */\r\n-\tuint16_t reserved2;     /**< Unused field. Required for padding */\r\n-\tuint16_t data_len;      /**< Amount of data in segment buffer. */\r\n-\tuint32_t pkt_len;       /**< Total pkt len: sum of all segments. */\r\n+\tuint16_t reserved2;       /**< Unused field. Required for padding */\r\n+\tuint16_t data_len;        /**< Amount of data in segment buffer. */\r\n+\tuint32_t pkt_len;         /**< Total pkt len: sum of all segments. */\r\n \tunion {\r\n \t\tuint16_t l2_l3_len; /**< combined l2/l3 lengths as single var */\r\n \t\tstruct {\r\n@@ -158,15 +157,15 @@ struct rte_mbuf {\r\n \t\t\tuint16_t l2_len:7;      /**< L2 (MAC) Header Length. */\r\n \t\t};\r\n \t};\r\n-\tuint16_t vlan_tci;      /**< VLAN Tag Control Identifier (CPU order). */\r\n+\tuint16_t vlan_tci;        /**< VLAN Tag Control Identifier (CPU order) */\r\n \tunion {\r\n-\t\tuint32_t rss;       /**< RSS hash result if RSS enabled */\r\n+\t\tuint32_t rss;     /**< RSS hash result if RSS enabled */\r\n \t\tstruct {\r\n \t\t\tuint16_t hash;\r\n \t\t\tuint16_t id;\r\n-\t\t} fdir;             /**< Filter identifier if FDIR enabled */\r\n-\t\tuint32_t sched;     /**< Hierarchical scheduler */\r\n-\t} hash;                 /**< hash information */\r\n+\t\t} fdir;           /**< Filter identifier if FDIR enabled */\r\n+\t\tuint32_t sched;   /**< Hierarchical scheduler */\r\n+\t} hash;                   /**< hash information */\r\n \r\n \t/* fields only used in slow path or on TX */\r\n \tstruct rte_mempool *pool; /**< Pool from which mbuf was allocated. */\r\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "05/13"
    ]
}