get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1552831,
    "url": "http://patchwork.ozlabs.org/api/patches/1552831/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20211109092253.10876-4-david.marchand@redhat.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20211109092253.10876-4-david.marchand@redhat.com>",
    "list_archive_url": null,
    "date": "2021-11-09T09:22:51",
    "name": "[ovs-dev,dpdk-latest,v2,3/5] netdev-dpdk: Fix mbuf macros namespace with 21.11-rc1.",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "2da1066e43cf4f0cef8cf122e1d5dc2c52a7787c",
    "submitter": {
        "id": 75396,
        "url": "http://patchwork.ozlabs.org/api/people/75396/",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20211109092253.10876-4-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 271040,
            "url": "http://patchwork.ozlabs.org/api/series/271040/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=271040",
            "date": "2021-11-09T09:22:48",
            "name": "Fixes for DPDK v21.11",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/271040/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1552831/comments/",
    "check": "fail",
    "checks": "http://patchwork.ozlabs.org/api/patches/1552831/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "bilbo.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=MbsQ6bAH;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp4.osuosl.org (amavisd-new);\n dkim=pass (1024-bit key) header.d=redhat.com",
            "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com"
        ],
        "Received": [
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4HpMwv0Ds0z9sRR\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  9 Nov 2021 20:23:42 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 8F764607F2;\n\tTue,  9 Nov 2021 09:23:40 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n\tby localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id LFzWGH9L-XfB; Tue,  9 Nov 2021 09:23:39 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp3.osuosl.org (Postfix) with ESMTPS id ABDCB607A5;\n\tTue,  9 Nov 2021 09:23:38 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 6B5C4C0020;\n\tTue,  9 Nov 2021 09:23:38 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 13D09C0019\n for <dev@openvswitch.org>; Tue,  9 Nov 2021 09:23:37 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id D43DE403A7\n for <dev@openvswitch.org>; Tue,  9 Nov 2021 09:23:36 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id 56OF4Nzq_Jvo for <dev@openvswitch.org>;\n Tue,  9 Nov 2021 09:23:35 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by smtp4.osuosl.org (Postfix) with ESMTPS id B62FE403B2\n for <dev@openvswitch.org>; Tue,  9 Nov 2021 09:23:35 +0000 (UTC)",
            "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-251-pDkj-Mp1PGeD4yqJs-lM6w-1; Tue, 09 Nov 2021 04:23:27 -0500",
            "from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com\n [10.5.11.16])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5EDF781C85E;\n Tue,  9 Nov 2021 09:23:26 +0000 (UTC)",
            "from dmarchan.remote.csb (unknown [10.40.194.192])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 4F8F979456;\n Tue,  9 Nov 2021 09:23:23 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1636449814;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=jALGdlTiAvHNjET2Vxg+SaF2ciPavMS5j/RIIn9D07M=;\n b=MbsQ6bAHhsyUfFGxDvCSPqjAV7F24wUaPoj6jaDaRSbCm0Dyn1Y/BiWVrwnGox69mMaTRd\n aMDNyUP9HMPiIM31wq3qjw0iyx+o5HX4UbA+cQx8dcjQUpCIipU1rYplgSPm/R1Ic6vFTl\n j3kb8Je0HmLSx0JVGmrWLezXsAGk2sI=",
        "X-MC-Unique": "pDkj-Mp1PGeD4yqJs-lM6w-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@openvswitch.org,\n\tian.stokes@intel.com",
        "Date": "Tue,  9 Nov 2021 10:22:51 +0100",
        "Message-Id": "<20211109092253.10876-4-david.marchand@redhat.com>",
        "In-Reply-To": "<20211109092253.10876-1-david.marchand@redhat.com>",
        "References": "<20211109092253.10876-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.16",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Cc": "maxime.coquelin@redhat.com, i.maximets@ovn.org",
        "Subject": "[ovs-dev] [PATCH dpdk-latest v2 3/5] netdev-dpdk: Fix mbuf macros\n\tnamespace with 21.11-rc1.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "PKT_[RT]X_* and other mbuf macros have been prefixed with RTE_MBUF_ [1].\nUpdate accordingly.\n\n1: https://git.dpdk.org/dpdk/commit/?id=daa02b5cddbb\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n lib/dp-packet.h   | 26 ++++++++++++++------------\n lib/netdev-dpdk.c | 18 +++++++++---------\n 2 files changed, 23 insertions(+), 21 deletions(-)",
    "diff": "diff --git a/lib/dp-packet.h b/lib/dp-packet.h\nindex 3dc582fbfd..ee0805ae69 100644\n--- a/lib/dp-packet.h\n+++ b/lib/dp-packet.h\n@@ -58,29 +58,31 @@ enum OVS_PACKED_ENUM dp_packet_source {\n enum dp_packet_offload_mask {\n     /* Value 0 is not used. */\n     /* Is the 'rss_hash' valid? */\n-    DEF_OL_FLAG(DP_PACKET_OL_RSS_HASH, PKT_RX_RSS_HASH, 0x1),\n+    DEF_OL_FLAG(DP_PACKET_OL_RSS_HASH, RTE_MBUF_F_RX_RSS_HASH, 0x1),\n     /* Is the 'flow_mark' valid? */\n-    DEF_OL_FLAG(DP_PACKET_OL_FLOW_MARK, PKT_RX_FDIR_ID, 0x2),\n+    DEF_OL_FLAG(DP_PACKET_OL_FLOW_MARK, RTE_MBUF_F_RX_FDIR_ID, 0x2),\n     /* Bad L4 checksum in the packet. */\n-    DEF_OL_FLAG(DP_PACKET_OL_RX_L4_CKSUM_BAD, PKT_RX_L4_CKSUM_BAD, 0x4),\n+    DEF_OL_FLAG(DP_PACKET_OL_RX_L4_CKSUM_BAD, RTE_MBUF_F_RX_L4_CKSUM_BAD, 0x4),\n     /* Bad IP checksum in the packet. */\n-    DEF_OL_FLAG(DP_PACKET_OL_RX_IP_CKSUM_BAD, PKT_RX_IP_CKSUM_BAD, 0x8),\n+    DEF_OL_FLAG(DP_PACKET_OL_RX_IP_CKSUM_BAD, RTE_MBUF_F_RX_IP_CKSUM_BAD, 0x8),\n     /* Valid L4 checksum in the packet. */\n-    DEF_OL_FLAG(DP_PACKET_OL_RX_L4_CKSUM_GOOD, PKT_RX_L4_CKSUM_GOOD, 0x10),\n+    DEF_OL_FLAG(DP_PACKET_OL_RX_L4_CKSUM_GOOD, RTE_MBUF_F_RX_L4_CKSUM_GOOD,\n+                0x10),\n     /* Valid IP checksum in the packet. */\n-    DEF_OL_FLAG(DP_PACKET_OL_RX_IP_CKSUM_GOOD, PKT_RX_IP_CKSUM_GOOD, 0x20),\n+    DEF_OL_FLAG(DP_PACKET_OL_RX_IP_CKSUM_GOOD, RTE_MBUF_F_RX_IP_CKSUM_GOOD,\n+                0x20),\n     /* TCP Segmentation Offload. */\n-    DEF_OL_FLAG(DP_PACKET_OL_TX_TCP_SEG, PKT_TX_TCP_SEG, 0x40),\n+    DEF_OL_FLAG(DP_PACKET_OL_TX_TCP_SEG, RTE_MBUF_F_TX_TCP_SEG, 0x40),\n     /* Offloaded packet is IPv4. */\n-    DEF_OL_FLAG(DP_PACKET_OL_TX_IPV4, PKT_TX_IPV4, 0x80),\n+    DEF_OL_FLAG(DP_PACKET_OL_TX_IPV4, RTE_MBUF_F_TX_IPV4, 0x80),\n     /* Offloaded packet is IPv6. */\n-    DEF_OL_FLAG(DP_PACKET_OL_TX_IPV6, PKT_TX_IPV6, 0x100),\n+    DEF_OL_FLAG(DP_PACKET_OL_TX_IPV6, RTE_MBUF_F_TX_IPV6, 0x100),\n     /* Offload TCP checksum. */\n-    DEF_OL_FLAG(DP_PACKET_OL_TX_TCP_CKSUM, PKT_TX_TCP_CKSUM, 0x200),\n+    DEF_OL_FLAG(DP_PACKET_OL_TX_TCP_CKSUM, RTE_MBUF_F_TX_TCP_CKSUM, 0x200),\n     /* Offload UDP checksum. */\n-    DEF_OL_FLAG(DP_PACKET_OL_TX_UDP_CKSUM, PKT_TX_UDP_CKSUM, 0x400),\n+    DEF_OL_FLAG(DP_PACKET_OL_TX_UDP_CKSUM, RTE_MBUF_F_TX_UDP_CKSUM, 0x400),\n     /* Offload SCTP checksum. */\n-    DEF_OL_FLAG(DP_PACKET_OL_TX_SCTP_CKSUM, PKT_TX_SCTP_CKSUM, 0x800),\n+    DEF_OL_FLAG(DP_PACKET_OL_TX_SCTP_CKSUM, RTE_MBUF_F_TX_SCTP_CKSUM, 0x800),\n     /* Adding new field requires adding to DP_PACKET_OL_SUPPORTED_MASK. */\n };\n \ndiff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c\nindex 00b081d2db..2eb5e2e1bc 100644\n--- a/lib/netdev-dpdk.c\n+++ b/lib/netdev-dpdk.c\n@@ -2162,14 +2162,14 @@ netdev_dpdk_prep_hwol_packet(struct netdev_dpdk *dev, struct rte_mbuf *mbuf)\n {\n     struct dp_packet *pkt = CONTAINER_OF(mbuf, struct dp_packet, mbuf);\n \n-    if (mbuf->ol_flags & PKT_TX_L4_MASK) {\n+    if (mbuf->ol_flags & RTE_MBUF_F_TX_L4_MASK) {\n         mbuf->l2_len = (char *)dp_packet_l3(pkt) - (char *)dp_packet_eth(pkt);\n         mbuf->l3_len = (char *)dp_packet_l4(pkt) - (char *)dp_packet_l3(pkt);\n         mbuf->outer_l2_len = 0;\n         mbuf->outer_l3_len = 0;\n     }\n \n-    if (mbuf->ol_flags & PKT_TX_TCP_SEG) {\n+    if (mbuf->ol_flags & RTE_MBUF_F_TX_TCP_SEG) {\n         struct tcp_header *th = dp_packet_l4(pkt);\n \n         if (!th) {\n@@ -2179,11 +2179,11 @@ netdev_dpdk_prep_hwol_packet(struct netdev_dpdk *dev, struct rte_mbuf *mbuf)\n         }\n \n         mbuf->l4_len = TCP_OFFSET(th->tcp_ctl) * 4;\n-        mbuf->ol_flags |= PKT_TX_TCP_CKSUM;\n+        mbuf->ol_flags |= RTE_MBUF_F_TX_TCP_CKSUM;\n         mbuf->tso_segsz = dev->mtu - mbuf->l3_len - mbuf->l4_len;\n \n-        if (mbuf->ol_flags & PKT_TX_IPV4) {\n-            mbuf->ol_flags |= PKT_TX_IP_CKSUM;\n+        if (mbuf->ol_flags & RTE_MBUF_F_TX_IPV4) {\n+            mbuf->ol_flags |= RTE_MBUF_F_TX_IP_CKSUM;\n         }\n     }\n     return true;\n@@ -2530,7 +2530,7 @@ netdev_dpdk_filter_packet_len(struct netdev_dpdk *dev, struct rte_mbuf **pkts,\n     for (i = 0; i < pkt_cnt; i++) {\n         pkt = pkts[i];\n         if (OVS_UNLIKELY((pkt->pkt_len > dev->max_packet_len)\n-            && !(pkt->ol_flags & PKT_TX_TCP_SEG))) {\n+            && !(pkt->ol_flags & RTE_MBUF_F_TX_TCP_SEG))) {\n             VLOG_WARN_RL(&rl, \"%s: Too big size %\" PRIu32 \" \"\n                          \"max_packet_len %d\", dev->up.name, pkt->pkt_len,\n                          dev->max_packet_len);\n@@ -2752,12 +2752,12 @@ dpdk_copy_dp_packet_to_mbuf(struct rte_mempool *mp, struct dp_packet *pkt_orig)\n     mbuf_dest->tx_offload = pkt_orig->mbuf.tx_offload;\n     mbuf_dest->packet_type = pkt_orig->mbuf.packet_type;\n     mbuf_dest->ol_flags |= (pkt_orig->mbuf.ol_flags &\n-                            ~(EXT_ATTACHED_MBUF | IND_ATTACHED_MBUF));\n+                            ~(RTE_MBUF_F_EXTERNAL | RTE_MBUF_F_INDIRECT));\n \n     memcpy(&pkt_dest->l2_pad_size, &pkt_orig->l2_pad_size,\n            sizeof(struct dp_packet) - offsetof(struct dp_packet, l2_pad_size));\n \n-    if (mbuf_dest->ol_flags & PKT_TX_L4_MASK) {\n+    if (mbuf_dest->ol_flags & RTE_MBUF_F_TX_L4_MASK) {\n         mbuf_dest->l2_len = (char *)dp_packet_l3(pkt_dest)\n                                 - (char *)dp_packet_eth(pkt_dest);\n         mbuf_dest->l3_len = (char *)dp_packet_l4(pkt_dest)\n@@ -2802,7 +2802,7 @@ dpdk_do_tx_copy(struct netdev *netdev, int qid, struct dp_packet_batch *batch)\n         uint32_t size = dp_packet_size(packet);\n \n         if (size > dev->max_packet_len\n-            && !(packet->mbuf.ol_flags & PKT_TX_TCP_SEG)) {\n+            && !(packet->mbuf.ol_flags & RTE_MBUF_F_TX_TCP_SEG)) {\n             VLOG_WARN_RL(&rl, \"Too big size %u max_packet_len %d\", size,\n                          dev->max_packet_len);\n             mtu_drops++;\n",
    "prefixes": [
        "ovs-dev",
        "dpdk-latest",
        "v2",
        "3/5"
    ]
}