From patchwork Mon Apr 16 13:39:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 38216 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2BA64AAD7; Mon, 16 Apr 2018 15:39:20 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 620A68E72 for ; Mon, 16 Apr 2018 15:39:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 06:39:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,459,1517904000"; d="scan'208";a="51153393" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga002.jf.intel.com with ESMTP; 16 Apr 2018 06:39:14 -0700 From: Bruce Richardson To: wenzhuo.lu@intel.com Cc: dev@dpdk.org, Bruce Richardson Date: Mon, 16 Apr 2018 14:39:11 +0100 Message-Id: <20180416133911.289196-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/ixgbe: fix compilation when vector driver disabled 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 new functions for Rx and Tx offloads should not be inside the conditional block for the vector driver, otherwise compile errors occur when vector driver is disabled. For example: ixgbe_ethdev.c:3636:36: error: implicit declaration of function ‘ixgbe_get_rx_queue_offloads’; This shows up as an error when doing ARM builds using meson as the vector driver is not (yet) enabled for those builds. Fixes: 51215925a32f ("net/ixgbe: convert to new Tx offloads API") Fixes: ec3b1124d14d ("net/ixgbe: convert to new Rx offloads API") Signed-off-by: Bruce Richardson --- drivers/net/ixgbe/ixgbe_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h index 642cf4d82..7dbbbe5b3 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.h +++ b/drivers/net/ixgbe/ixgbe_rxtx.h @@ -307,11 +307,11 @@ extern const uint32_t ptype_table_tn[IXGBE_PACKET_TYPE_TN_MAX]; uint16_t ixgbe_xmit_fixed_burst_vec(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts); int ixgbe_txq_vec_setup(struct ixgbe_tx_queue *txq); +#endif /* RTE_IXGBE_INC_VECTOR */ uint64_t ixgbe_get_tx_port_offloads(struct rte_eth_dev *dev); uint64_t ixgbe_get_rx_queue_offloads(struct rte_eth_dev *dev); uint64_t ixgbe_get_rx_port_offloads(struct rte_eth_dev *dev); uint64_t ixgbe_get_tx_queue_offloads(struct rte_eth_dev *dev); -#endif /* RTE_IXGBE_INC_VECTOR */ #endif /* _IXGBE_RXTX_H_ */