From patchwork Mon Aug 15 07:31:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zhang X-Patchwork-Id: 115059 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 mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 56103A00C3; Mon, 15 Aug 2022 01:25:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B566F42C33; Mon, 15 Aug 2022 01:23:10 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id ADE3D42C69 for ; Mon, 15 Aug 2022 01:23:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660519388; x=1692055388; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3ZWMWZPSefuWyo8h73tzB1bqnNx/P3gSNGzWNiA+R1c=; b=jvfXFT/0uibN4jkw0EjzOZLgAoXMqiYqpNa0PfkEX7O6SsA2nXKVz2dc mTrFhxTAC3c0I089QvefCfzRJVrWHi7olV6v9tlWed89FSXi2GCwMN8d3 Sg2WMneZwWJ1T19+qK5Cetg33KlkswNaFuR1bag+VbPkDq4lNgStT8tZP yaFY2jAeOA4+jfxabceLK9BomjRLdVCnDJqTOSvkH5+Kjn9WPFRQT534V igCxfmYx565oTApbN/XLUmka1/A14fwOJJgNPv3HMYD7XK113lITI313O 9O4Ofy9Wk8zaKBE/Lag0BwPBCHwLTIiZ37g7hmr0EOY2o1B/CMo5JKBny w==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="291857968" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="291857968" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 16:23:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="635283164" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by orsmga008.jf.intel.com with ESMTP; 14 Aug 2022 16:23:06 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , Junfeng Guo Subject: [PATCH v2 31/70] net/ice/base: move function to internal Date: Mon, 15 Aug 2022 03:31:27 -0400 Message-Id: <20220815073206.2917968-32-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220815073206.2917968-1-qi.z.zhang@intel.com> References: <20220815071306.2910599-1-qi.z.zhang@intel.com> <20220815073206.2917968-1-qi.z.zhang@intel.com> MIME-Version: 1.0 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 The function ice_disable_fd_swap should be defined as static. Signed-off-by: Junfeng Guo Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers/net/ice/base/ice_flex_pipe.c | 2 +- drivers/net/ice/base/ice_flex_pipe.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_flex_pipe.c b/drivers/net/ice/base/ice_flex_pipe.c index 0840b976aa..aea0d97b9d 100644 --- a/drivers/net/ice/base/ice_flex_pipe.c +++ b/drivers/net/ice/base/ice_flex_pipe.c @@ -3133,7 +3133,7 @@ ice_add_prof_attrib(struct ice_prof_map *prof, u8 ptg, u16 ptype, * @hw: pointer to the HW struct * @prof_id: profile ID */ -void ice_disable_fd_swap(struct ice_hw *hw, u16 prof_id) +static void ice_disable_fd_swap(struct ice_hw *hw, u16 prof_id) { u8 swap_val = ICE_SWAP_VALID; u8 i; diff --git a/drivers/net/ice/base/ice_flex_pipe.h b/drivers/net/ice/base/ice_flex_pipe.h index 777790a9c0..8fde36dfa6 100644 --- a/drivers/net/ice/base/ice_flex_pipe.h +++ b/drivers/net/ice/base/ice_flex_pipe.h @@ -38,7 +38,6 @@ bool ice_hw_ptype_ena(struct ice_hw *hw, u16 ptype); /* XLT2/VSI group functions */ enum ice_status ice_vsig_find_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 *vsig); -void ice_disable_fd_swap(struct ice_hw *hw, u16 prof_id); enum ice_status ice_add_prof(struct ice_hw *hw, enum ice_block blk, u64 id, ice_bitmap_t *ptypes, const struct ice_ptype_attributes *attr,