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 3FCD446C70 for ; Fri, 1 Aug 2025 13:29:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2420B40263; Fri, 1 Aug 2025 13:29:15 +0200 (CEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 4F3D340263 for ; Fri, 1 Aug 2025 13:29:14 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-7682560a2f2so2042567b3a.1 for ; Fri, 01 Aug 2025 04:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uetpeshawar-edu-pk.20230601.gappssmtp.com; s=20230601; t=1754047753; x=1754652553; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+x+OlsvPsEjnc1qd/EbU23z6OxmZwCbloriFSSSZ4uk=; b=LfabwP0NQ9mGe/NtV59gJq143Eu9biP0fIf54if07ar76w9fuTB/CHNkH8Ld6Zo3kX pFi1uZlwy+jm/8Y9K+VHNiqLL+vZ25wU5LtA5MwQyYiyjY/uPqhpqcSM0zt5JAntuAFU wknrzfwro9HeTZqFpB0fP78+h5utai2pncB+JGS9Z/UsrEulxe0AoJm0LGsE7IT6/vhj ZIOZ+Jxgw9AREPCrEYQDZWIi3sBvY73BWvN0yxetBaOBJq/WL5JEw7b0/teQlQSqvEzd WkRa6y0Qt7d+53lI4SWGJwo24DoTuWH3A0sB7Kc1xPrXont6cO2LNnMaHB1q50pdpVH3 p0ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754047753; x=1754652553; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+x+OlsvPsEjnc1qd/EbU23z6OxmZwCbloriFSSSZ4uk=; b=HCYfLzWmt395DDHPeHCSJcD1KBiWwF50HgWm+Gvwnc1/f6X37WfWhqJTuDzumUdzI5 8JnVXXOn608kkaZ6yTJNxylYE0f2xH7K7tEYe1ZtpwOPrQXxoGarDXN0G0Aj/xY4VVWx njQM9+lHdfUhItICv46xs0tu5LEllQenyLULbdz+1jCh51APzcFskZPQ8R9Ui4FVd1+Y WtnLIAndCZXtKN2AynB3pKSlMLjMV2JDVt6+wnsZvmwHL0trGhoXmjhMq2MTCF1IgjhI bluPfFZDOp9IS0uaBMVfzpWGNxorbb22LOtoVe6FBfe1g2OO5+dN+tatUy3x12RfyeWZ lItg== X-Forwarded-Encrypted: i=1; AJvYcCWZecn6mcA+n+L3DPnHACEvf1in4FbUcmfjJJM1JH9VU8mlvMWP6ZoiB3vmWoOQCYSDhwF6vAU=@dpdk.org X-Gm-Message-State: AOJu0Ywm2EteaPMeM3/Y+SjqHuczOGq/7gZmuaS5OwYeg7fkj/Ls3uEV od6YcPSPNv20yGhksLjkycZYNLZ28RKE2xdF6zU6lBhUqnfMx65JkIcL1G/iwvAihpo= X-Gm-Gg: ASbGnctr7/JMY7EAwI2Cnf2Kh+8wj88p4nPp7PQ2R6LO0AdW4JIUaCo/9U7kBakkRsu BintPMjMSUGuwkC8o7IUFzFaYZ+YzrGpU3uu35YVwrLWgycCcMppTUGbZDbxDxQyChOpQvFad5j jfyxla+IlyDLr9qsN2M0cU92Y9xjAbE3wXEe59jsq8o+YdomzhDMuedxWUyUcKA9/CeyLO9o+40 kJfIT8zFu8nYUpiUsT+UHrp/6aRKi30H4nNoJB9nhczLPRnK1SfDhGkv9WF6HDkX8rB0e3CZr9D iAvxR6nvfbsp3en13IkwD+2bWbfnYzLPN1SquqGerhw0G2swcBPNFzxJozEywz+V0Uh5+RzWUUg XpOQ/I8XbRpsPPe47lYlWRwB45JjywzwENefcTNvqpB8FviVN X-Google-Smtp-Source: AGHT+IGJXDXRE+3E1l+KntO+odGpEu9t4UwH/HUAMy3IHqq2jx1vkLUAXM5MgJHXJxiDeqfhITqesg== X-Received: by 2002:a05:6a00:4215:b0:76b:c68e:1001 with SMTP id d2e1a72fcca58-76bcd00b52emr9948443b3a.5.1754047753430; Fri, 01 Aug 2025 04:29:13 -0700 (PDT) Received: from localhost.localdomain ([64.62.143.197]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-76bcce8f48fsm3898547b3a.40.2025.08.01.04.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Aug 2025 04:29:12 -0700 (PDT) From: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk> To: dev@dpdk.org, andrew.rybchenko@oktetlabs.ru, jasvinder.singh@intel.com, bruce.richardson@intel.com Cc: thomas@monjalon.net, ivan.malov@arknetworks.am, stable@dpdk.org Subject: Re: [PATCH] net/rte_net: fix inner L2 length for tunneled Ethernet packets Date: Fri, 1 Aug 2025 07:28:34 -0400 Message-ID: <20250801112834.60310-1-14pwcse1224@uetpeshawar.edu.pk> X-Mailer: git-send-email 2.43.0 In-Reply-To: <5a75dd27-a19b-4dad-b3bd-cc7f31e4619d@oktetlabs.ru> References: <5a75dd27-a19b-4dad-b3bd-cc7f31e4619d@oktetlabs.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi Andrew, Thanks for your feedback. Please check mbuf packet types and the following test case: https://doc.dpdk.org/dts-20.02/test_plans/uni_pkt_test_plan.html#test-case-vxlan-tunnel-packet-type-detect sendp([Ether()/IP()/UDP()/Vxlan()/Ether()/IP(frag=5)/Raw('\0'*40)], iface=txItf) (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: GRENAT Inner L2 type: ETHER Inner L3 type: IPV4_EXT_UNKNOWN Inner L4 type: L4_FRAG union { uint32_t packet_type; /**< L2/L3/L4 and tunnel information. */ __extension__ struct { uint8_t l2_type:4; /**< (Outer) L2 type. */ uint8_t l3_type:4; /**< (Outer) L3 type. */ uint8_t l4_type:4; /**< (Outer) L4 type. */ uint8_t tun_type:4; /**< Tunnel type. */ union { uint8_t inner_esp_next_proto; /**< ESP next protocol type, valid if * RTE_PTYPE_TUNNEL_ESP tunnel type is set * on both Tx and Rx. */ __extension__ struct { uint8_t inner_l2_type:4; /**< Inner L2 type. */ uint8_t inner_l3_type:4; /**< Inner L3 type. */ }; }; uint8_t inner_l4_type:4; /**< Inner L4 type. */ }; }; Based on the above, it seems that inner_l2_len have to the length of Ether. Ther might need to be some correspondent between both fields to potray the same information. Or, the inner_l2_type and inner_l2_len are completly different ? Best Regards, Khadem