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 CE6A2A0548; Fri, 23 Apr 2021 08:10:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2A3C4067E; Fri, 23 Apr 2021 08:10:42 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 4BD614014F; Fri, 23 Apr 2021 08:10:41 +0200 (CEST) IronPort-SDR: jJvTpu1aC3izWHSJIMWTNpo5XScnsBi+Kk/uSyQPyTbslk+KxAjtUA+/WgDYdw/2pgOvkh7WbG 2hDKqc+nSqGw== X-IronPort-AV: E=McAfee;i="6200,9189,9962"; a="196079882" X-IronPort-AV: E=Sophos;i="5.82,244,1613462400"; d="scan'208";a="196079882" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2021 23:10:39 -0700 IronPort-SDR: k7A382LRbNWKctolfqTmnxGdxXq7myRmIR7x3k7qmkuyr+k+RnBrPfzG6gR74fLfiuUyDHSu4f dJpDuCZp2Q/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,244,1613462400"; d="scan'208";a="456099389" Received: from dpdk-xuting-second.sh.intel.com ([10.67.116.154]) by fmsmga002.fm.intel.com with ESMTP; 22 Apr 2021 23:10:37 -0700 From: Ting Xu To: dev@dpdk.org Cc: beilei.xing@intel.com, jingjing.wu@intel.com, qi.z.zhang@intel.com, jia.guo@intel.com, Ting Xu , stable@dpdk.org Date: Fri, 23 Apr 2021 14:13:59 +0800 Message-Id: <20210423061359.10242-1-ting.xu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] common/iavf: fix wrong order of protocol header types X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 new virtchnl protocol header types for IPv4 and IPv6 fragment are not added in order, which will break ABI. Move them to the end of the list. Also add PPP and L2TPv2 to align with virtchnl. Signed-off-by: Ting Xu Fixes: e6a42fd9158b ("common/iavf: add protocol header for IP fragment") Cc: stable@dpdk.org --- drivers/common/iavf/virtchnl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index e3eb767d66..157230e99b 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -1415,9 +1415,7 @@ enum virtchnl_proto_hdr_type { VIRTCHNL_PROTO_HDR_S_VLAN, VIRTCHNL_PROTO_HDR_C_VLAN, VIRTCHNL_PROTO_HDR_IPV4, - VIRTCHNL_PROTO_HDR_IPV4_FRAG, VIRTCHNL_PROTO_HDR_IPV6, - VIRTCHNL_PROTO_HDR_IPV6_EH_FRAG, VIRTCHNL_PROTO_HDR_TCP, VIRTCHNL_PROTO_HDR_UDP, VIRTCHNL_PROTO_HDR_SCTP, @@ -1432,6 +1430,10 @@ enum virtchnl_proto_hdr_type { VIRTCHNL_PROTO_HDR_PFCP, VIRTCHNL_PROTO_HDR_GTPC, VIRTCHNL_PROTO_HDR_ECPRI, + VIRTCHNL_PROTO_HDR_L2TPV2, + VIRTCHNL_PROTO_HDR_PPP, + VIRTCHNL_PROTO_HDR_IPV4_FRAG, + VIRTCHNL_PROTO_HDR_IPV6_EH_FRAG, }; /* Protocol header field within a protocol header. */ -- 2.17.1