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 40F7543019; Wed, 9 Aug 2023 17:52:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C924840691; Wed, 9 Aug 2023 17:52:48 +0200 (CEST) Received: from vale.hankala.org (vale.hankala.org [164.138.26.161]) by mails.dpdk.org (Postfix) with ESMTP id 67EB3400D6 for ; Wed, 9 Aug 2023 17:52:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=jTVx8ZAn; t=1691596363; x=1692460363; bh=1T923C0KIDuoTqqJvfxNvXtIUgzPS+6H1a/QpBy KDRI=; h=content-type:mime-version:subject:cc:to:from:date; d=hankala.org; b=novX39FLx91hiGFUrE+U7394SE9s+cl5ff/p7yIOhob+jdJgNaRRI emtCSOX2h9wsE2R425mKtTdoKxbgOGyMpCfA9Z4Aiga7ikuwDZPryHub0KMnPRVqdr2rlq gf8L4LtY53TK7+DlbzVn60izTF3R7rGc9ejINQYfZd0xZGr8= Received: by vale.hankala.org (OpenSMTPD) with ESMTPS id ff2da54d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 9 Aug 2023 15:52:43 +0000 (UTC) Date: Wed, 9 Aug 2023 15:52:41 +0000 From: Visa Hankala To: dev@dpdk.org Cc: Chas Williams , Min Hu Subject: [PATCH] net/bonding: Fix header for C++ Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Apply C linkage to the whole header to allow use with C++. Fixes: dc40f17a36b ("net/bonding: allow external state machine in mode 4") Signed-off-by: Visa Hankala diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.h b/drivers/net/bonding/rte_eth_bond_8023ad.h index 7ad8d6d00b..921b4446b7 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.h +++ b/drivers/net/bonding/rte_eth_bond_8023ad.h @@ -197,10 +197,6 @@ int rte_eth_bond_8023ad_slave_info(uint16_t port_id, uint16_t slave_id, struct rte_eth_bond_8023ad_slave_info *conf); -#ifdef __cplusplus -} -#endif - /** * Configure a slave port to start collecting. * @@ -331,4 +327,9 @@ rte_eth_bond_8023ad_agg_selection_get(uint16_t port_id); int rte_eth_bond_8023ad_agg_selection_set(uint16_t port_id, enum rte_bond_8023ad_agg_selection agg_selection); + +#ifdef __cplusplus +} +#endif + #endif /* RTE_ETH_BOND_8023AD_H_ */