From patchwork Fri Oct 16 10:41:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zhang X-Patchwork-Id: 81092 X-Patchwork-Delegate: qi.z.zhang@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 AA1E3A04DB; Fri, 16 Oct 2020 12:37:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E0B681ECFE; Fri, 16 Oct 2020 12:37:40 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 391991EBE8 for ; Fri, 16 Oct 2020 12:37:36 +0200 (CEST) IronPort-SDR: j3V4YyWwaDyLddjWXY6M0qdWBEI31VrjuZSJMvyEVelgcfVPwbZAOOfIcZFsaR80v1n+oQy5Jg 94c9casRyc4w== X-IronPort-AV: E=McAfee;i="6000,8403,9775"; a="154378570" X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="154378570" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 03:37:35 -0700 IronPort-SDR: YxJNYza0mkSK6DsrYScvCGn8h8UwIKAk/+lLpRDhjVA2ekOIsLJf94VWnbXNuK8psVSFNOWolO NuvrqcnnyG9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="391280450" Received: from dpdk51.sh.intel.com ([10.67.111.142]) by orsmga001.jf.intel.com with ESMTP; 16 Oct 2020 03:37:33 -0700 From: Qi Zhang To: ferruh.yigit@intel.com Cc: dev@dpdk.org, beilei.xing@intel.com, Qi Zhang , Maciej Rabeda Date: Fri, 16 Oct 2020 18:41:27 +0800 Message-Id: <20201016104128.1049430-2-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201016104128.1049430-1-qi.z.zhang@intel.com> References: <20201016104128.1049430-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 1/2] common/iavf: replace macro for MAC address length 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" Replace ETH_ALEN with VIRTCHNL_ETH_LENGTH_OF_ADDRESS to keep consistent. Signed-off-by: Maciej Rabeda Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- drivers/common/iavf/virtchnl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 81eabd73be..a5a300afe3 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -624,8 +624,8 @@ VIRTCHNL_CHECK_STRUCT_LEN(24, virtchnl_tc_info); */ struct virtchnl_l4_spec { - u8 src_mac[ETH_ALEN]; - u8 dst_mac[ETH_ALEN]; + u8 src_mac[VIRTCHNL_ETH_LENGTH_OF_ADDRESS]; + u8 dst_mac[VIRTCHNL_ETH_LENGTH_OF_ADDRESS]; /* vlan_prio is part of this 16 bit field even from OS perspective * vlan_id:12 is actual vlan_id, then vlanid:bit14..12 is vlan_prio * in future, when decided to offload vlan_prio, pass that information