From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 89B8942C80 for ; Sat, 10 Jun 2023 19:57:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6456740DD8; Sat, 10 Jun 2023 19:57:10 +0200 (CEST) Received: from mail-pj1-f100.google.com (mail-pj1-f100.google.com [209.85.216.100]) by mails.dpdk.org (Postfix) with ESMTP id 8E3F740DD8 for ; Sat, 10 Jun 2023 19:57:08 +0200 (CEST) Received: by mail-pj1-f100.google.com with SMTP id 98e67ed59e1d1-2565b864f9aso1355864a91.1 for ; Sat, 10 Jun 2023 10:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1686419827; x=1689011827; h=cc:to:from:subject:message-id:date:from:to:cc:subject:date :message-id:reply-to; bh=lRntLowtNnfRGahF5O6iBf62ItAmLkEAPSVsOSSbKps=; b=AOnvmx93xcIwDJLMJ+4xnMxihbNmyZetIwdFvTewqfkBQlFLvDy2lC3gm52vVBI6es 8Vum7kDwGzV4wJBhRPemJnf+BqI0GChUDM61b4rNAAv8nC752gc5rridpaCDohrsyETL OmCDIgeEDs9bUEDL+j1nZEIfAu++V3PLh9XWM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686419827; x=1689011827; h=cc:to:from:subject:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lRntLowtNnfRGahF5O6iBf62ItAmLkEAPSVsOSSbKps=; b=fxsQLN+nMrnUfXyIo1/SRmUqoyJc39ArIBkcq3PNr1bnX39aayZyndZtfSZoL8WZ9m eHOy4WvT2QpMPwWFgDKDrBZaN8gv5posQ/V2rFUEOlt1IybE0WuaXs+4OKKOxocK9L/j MIe+KmgayAPX59wpro/gYEoOMegJJBgQS0gUBGEGuMEdbnubKVzg39kKFliKrNFKrouD 8W6lku27nTHDS3BD0F+gB4uxYIBLOcJ/ZXk9E4yFsrK2dK+7UZtCTj6+fLPVaD8egFwP dQvK5PTVtZ2r3iKaCGRWShl0gV5rbcufrMMqZRy1TvhVyj2U3mE2KCaasaqW6WYbxeAs 6sCQ== X-Gm-Message-State: AC+VfDyEpy4VQ52v8LchDiQWcMLmiEJr/pBvFqD0pPk6IBdN2ZBwKDkw ySh8Ml0Uzo+2qS32Qp+XlFrAnL2J7ytmhblbErF8N6Yr54swPthOo+w5SjVMfdfPisT1CuSzNg= = X-Google-Smtp-Source: ACHHUZ4PpbLBeRN1LMAi0YRm+CpGJhnNI13bKtdl6qTZtpBmgG+qKFvndQlM48bmzp0qh3H4zGfMTJug14yE X-Received: by 2002:a17:90a:c502:b0:258:8731:4e3f with SMTP id k2-20020a17090ac50200b0025887314e3fmr4064701pjt.44.1686419827667; Sat, 10 Jun 2023 10:57:07 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id np7-20020a17090b4c4700b002590343be4dsm652079pjb.15.2023.06.10.10.57.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jun 2023 10:57:07 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Date: Sat, 10 Jun 2023 10:57:07 -0700 (PDT) Message-ID: <6484b973.170a0220.8cf8c.371cSMTPIN_ADDED_MISSING@mx.google.com> Received: from [172.17.0.2] (unknown [172.18.0.34]) by postal.iol.unh.edu (Postfix) with ESMTP id E1F77605246B; Sat, 10 Jun 2023 13:57:06 -0400 (EDT) Subject: |WARNING| pw128068-128069 [PATCH] [2/2] net/nfp: add default process to report outer L4 packet type From: dpdklab@iol.unh.edu To: test-report@dpdk.org Cc: dpdk-test-reports@iol.unh.edu Content-Type: text/plain X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: iol-testing Test-Status: WARNING http://dpdk.org/patch/128068 _apply patch failure_ Submitter: Chaoyong He Date: Monday, June 05 2023 03:12:07 Applied on: CommitID:abaa473297cf21cb81e5348185a7694ae2f221e7 Apply patch set 128068-128069 failed: Checking patch drivers/net/nfp/nfp_rxtx.c... error: while searching for: if (nfp_tunnel_ptype != NFP_NET_PTYPE_TUNNEL_NONE) mbuf_ptype |= RTE_PTYPE_INNER_L2_ETHER; switch (nfp_tunnel_ptype) { case NFP_NET_PTYPE_TUNNEL_NONE: break; error: patch failed: drivers/net/nfp/nfp_rxtx.c:321 error: while searching for: NFP_NET_PTYPE_L3_OFFSET; nfp_ptype.tunnel_ptype = (rxd_ptype & NFP_NET_PTYPE_TUNNEL_MASK) >> NFP_NET_PTYPE_TUNNEL_OFFSET; nfp_net_set_ptype(&nfp_ptype, mb); } error: patch failed: drivers/net/nfp/nfp_rxtx.c:432 Checking patch drivers/net/nfp/nfp_rxtx.h... error: while searching for: * 1 0 * 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | |tunnel | l3 | l4 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * Bit map about nfp packet type refers to the following: error: patch failed: drivers/net/nfp/nfp_rxtx.h:178 error: while searching for: * 0101: NFP_NET_PTYPE_TUNNEL_GENEVE * 0010, 0011, 0110~1111: reserved * * Reserved: bit 10~15, used for extension. */ error: patch failed: drivers/net/nfp/nfp_rxtx.h:210 error: while searching for: #define NFP_NET_PTYPE_L4_MASK 0x0007 #define NFP_NET_PTYPE_L3_MASK 0x0038 #define NFP_NET_PTYPE_TUNNEL_MASK 0x03c0 #define NFP_NET_PTYPE_L4_OFFSET 0 #define NFP_NET_PTYPE_L3_OFFSET 3 #define NFP_NET_PTYPE_TUNNEL_OFFSET 6 /* Case about nfp packet type based on the bit map above. */ #define NFP_NET_PTYPE_L4_NONE 0 error: patch failed: drivers/net/nfp/nfp_rxtx.h:217 error: while searching for: #define NFP_NET_PTYPE_TUNNEL_NVGRE 4 #define NFP_NET_PTYPE_TUNNEL_GENEVE 5 #define NFP_PTYPE2RTE(tunnel, type) ((tunnel) ? RTE_PTYPE_INNER_##type : RTE_PTYPE_##type) /* Record NFP packet type parsed from rxd.offload_info. */ struct nfp_ptype_parsed { uint8_t l4_ptype; /**< Packet type of layer 4, or inner layer 4. */ uint8_t l3_ptype; /**< Packet type of layer 3, or inner layer 3. */ uint8_t tunnel_ptype; /**< Packet type of tunnel. */ }; struct nfp_net_rx_desc { error: patch failed: drivers/net/nfp/nfp_rxtx.h:244 Applying patch drivers/net/nfp/nfp_rxtx.c with 2 rejects... Rejected hunk #1. Rejected hunk #2. Applying patch drivers/net/nfp/nfp_rxtx.h with 4 rejects... Rejected hunk #1. Rejected hunk #2. Rejected hunk #3. Rejected hunk #4. hint: Use 'git am --show-current-patch' to see the failed patch diff a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c (rejected hunks) @@ -321,6 +321,21 @@ nfp_net_set_ptype(const struct nfp_ptype_parsed *nfp_ptype, struct rte_mbuf *mb) if (nfp_tunnel_ptype != NFP_NET_PTYPE_TUNNEL_NONE) mbuf_ptype |= RTE_PTYPE_INNER_L2_ETHER; + switch (nfp_ptype->outer_l3_ptype) { + case NFP_NET_PTYPE_OUTER_L3_NONE: + break; + case NFP_NET_PTYPE_OUTER_L3_IPV4: + mbuf_ptype |= RTE_PTYPE_L3_IPV4; + break; + case NFP_NET_PTYPE_OUTER_L3_IPV6: + mbuf_ptype |= RTE_PTYPE_L3_IPV6; + break; + default: + PMD_RX_LOG(DEBUG, "Unrecognized nfp outer layer 3 packet type: %u", + nfp_ptype->outer_l3_ptype); + break; + } + switch (nfp_tunnel_ptype) { case NFP_NET_PTYPE_TUNNEL_NONE: break; @@ -432,6 +447,8 @@ nfp_net_parse_ptype(struct nfp_net_rx_desc *rxds, NFP_NET_PTYPE_L3_OFFSET; nfp_ptype.tunnel_ptype = (rxd_ptype & NFP_NET_PTYPE_TUNNEL_MASK) >> NFP_NET_PTYPE_TUNNEL_OFFSET; + nfp_ptype.outer_l3_ptype = (rxd_ptype & NFP_NET_PTYPE_OUTER_L3_MASK) >> + NFP_NET_PTYPE_OUTER_L3_OFFSET; nfp_net_set_ptype(&nfp_ptype, mb); } diff a/drivers/net/nfp/nfp_rxtx.h b/drivers/net/nfp/nfp_rxtx.h (rejected hunks) @@ -178,7 +178,7 @@ struct nfp_net_txq { * 1 0 * 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * | |tunnel | l3 | l4 | + * | |ol3|tunnel | l3 | l4 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * Bit map about nfp packet type refers to the following: @@ -210,6 +210,12 @@ struct nfp_net_txq { * 0101: NFP_NET_PTYPE_TUNNEL_GENEVE * 0010, 0011, 0110~1111: reserved * + * Outer L3: bit 10~11, used for outer layer 3. + * 00: NFP_NET_PTYPE_OUTER_L3_NONE + * 01: NFP_NET_PTYPE_OUTER_L3_IPV6 + * 10: NFP_NET_PTYPE_OUTER_L3_IPV4 + * 11: reserved + * * Reserved: bit 10~15, used for extension. */ @@ -217,10 +223,12 @@ struct nfp_net_txq { #define NFP_NET_PTYPE_L4_MASK 0x0007 #define NFP_NET_PTYPE_L3_MASK 0x0038 #define NFP_NET_PTYPE_TUNNEL_MASK 0x03c0 +#define NFP_NET_PTYPE_OUTER_L3_MASK 0x0c00 #define NFP_NET_PTYPE_L4_OFFSET 0 #define NFP_NET_PTYPE_L3_OFFSET 3 #define NFP_NET_PTYPE_TUNNEL_OFFSET 6 +#define NFP_NET_PTYPE_OUTER_L3_OFFSET 10 /* Case about nfp packet type based on the bit map above. */ #define NFP_NET_PTYPE_L4_NONE 0 @@ -244,13 +252,18 @@ struct nfp_net_txq { #define NFP_NET_PTYPE_TUNNEL_NVGRE 4 #define NFP_NET_PTYPE_TUNNEL_GENEVE 5 +#define NFP_NET_PTYPE_OUTER_L3_NONE 0 +#define NFP_NET_PTYPE_OUTER_L3_IPV6 1 +#define NFP_NET_PTYPE_OUTER_L3_IPV4 2 + #define NFP_PTYPE2RTE(tunnel, type) ((tunnel) ? RTE_PTYPE_INNER_##type : RTE_PTYPE_##type) /* Record NFP packet type parsed from rxd.offload_info. */ struct nfp_ptype_parsed { - uint8_t l4_ptype; /**< Packet type of layer 4, or inner layer 4. */ - uint8_t l3_ptype; /**< Packet type of layer 3, or inner layer 3. */ - uint8_t tunnel_ptype; /**< Packet type of tunnel. */ + uint8_t l4_ptype; /**< Packet type of layer 4, or inner layer 4. */ + uint8_t l3_ptype; /**< Packet type of layer 3, or inner layer 3. */ + uint8_t tunnel_ptype; /**< Packet type of tunnel. */ + uint8_t outer_l3_ptype; /**< Packet type of outer layer 3. */ }; struct nfp_net_rx_desc { Checking patch drivers/net/nfp/nfp_rxtx.c... error: while searching for: case NFP_NET_PTYPE_TUNNEL_NONE: break; case NFP_NET_PTYPE_TUNNEL_VXLAN: mbuf_ptype |= RTE_PTYPE_TUNNEL_VXLAN; break; case NFP_NET_PTYPE_TUNNEL_NVGRE: mbuf_ptype |= RTE_PTYPE_TUNNEL_NVGRE; break; case NFP_NET_PTYPE_TUNNEL_GENEVE: mbuf_ptype |= RTE_PTYPE_TUNNEL_GENEVE; break; default: PMD_RX_LOG(DEBUG, "Unrecognized nfp tunnel packet type: %u", error: patch failed: drivers/net/nfp/nfp_rxtx.c:340 Applying patch drivers/net/nfp/nfp_rxtx.c with 1 reject... Rejected hunk #1. hint: Use 'git am --show-current-patch' to see the failed patch diff a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c (rejected hunks) @@ -340,13 +340,13 @@ nfp_net_set_ptype(const struct nfp_ptype_parsed *nfp_ptype, struct rte_mbuf *mb) case NFP_NET_PTYPE_TUNNEL_NONE: break; case NFP_NET_PTYPE_TUNNEL_VXLAN: - mbuf_ptype |= RTE_PTYPE_TUNNEL_VXLAN; + mbuf_ptype |= RTE_PTYPE_TUNNEL_VXLAN | RTE_PTYPE_L4_UDP; break; case NFP_NET_PTYPE_TUNNEL_NVGRE: mbuf_ptype |= RTE_PTYPE_TUNNEL_NVGRE; break; case NFP_NET_PTYPE_TUNNEL_GENEVE: - mbuf_ptype |= RTE_PTYPE_TUNNEL_GENEVE; + mbuf_ptype |= RTE_PTYPE_TUNNEL_GENEVE | RTE_PTYPE_L4_UDP; break; default: PMD_RX_LOG(DEBUG, "Unrecognized nfp tunnel packet type: %u", https://lab.dpdk.org/results/dashboard/patchsets/26523/ UNH-IOL DPDK Community Lab