From patchwork Thu May 7 01:15:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 69891 X-Patchwork-Delegate: xiaolong.ye@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2011AA00C5; Thu, 7 May 2020 03:38:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AF9701DA3B; Thu, 7 May 2020 03:38:44 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 271DF1DA3A for ; Thu, 7 May 2020 03:38:41 +0200 (CEST) IronPort-SDR: qfYKrpRjkaKJthBr26Jf2LGUYd9y9RAZrGq9wyEB4n3R/J17Ma9rqXCt0STFRLK1xXFECw7gC4 OuLtfWwUqZzg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 18:38:40 -0700 IronPort-SDR: H83YFans9D76caQ7QPxa0f5UnNhQd+HQd6MMJGiIJ4D0CgmrzsgK+zF3Gs01BV/2LS+vhk1xEk IfsAM4vty2/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,361,1583222400"; d="scan'208";a="296388101" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([172.16.182.123]) by orsmga008.jf.intel.com with ESMTP; 06 May 2020 18:38:39 -0700 From: Wei Zhao To: dev@dpdk.org Cc: qi.z.zhang@intel.com, nannan.lu@intel.com, Wei Zhao Date: Thu, 7 May 2020 09:15:41 +0800 Message-Id: <20200507011541.66624-1-wei.zhao1@intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/ice/base: fix pppoe-ipv6 dummy packet error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The dummy packet for pppoe-ipv6 has an error, we should use 0x3b for next header in ipv6 header in the dummy packet, or some case can not be download, such as: "eth / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions vf id 1 / end" Fixes: 55d61fb27a5e ("net/ice/base: add PPPoE IPv6 dummy packet") Signed-off-by: Wei Zhao Tested-by: Lu, Nannan Signed-off-by: Wei Zhao Acked-by: Qi Zhang --- drivers/net/ice/base/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 957142a10..a07ceea70 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -577,7 +577,7 @@ static const u8 dummy_pppoe_ipv6_packet[] = { 0x00, 0x57, /* PPP Link Layer 24 */ 0x60, 0x00, 0x00, 0x00, /* ICE_IPV6_OFOS 26 */ - 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x3b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,