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 AFBF7A0093; Wed, 12 Oct 2022 13:45:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57FBE42EF7; Wed, 12 Oct 2022 13:45:30 +0200 (CEST) Received: from smail.rz.tu-ilmenau.de (smail.rz.tu-ilmenau.de [141.24.186.67]) by mails.dpdk.org (Postfix) with ESMTP id 9CCD64003C for ; Wed, 12 Oct 2022 13:45:28 +0200 (CEST) Received: from localhost.localdomain (dialin-ip-23-165.ilmenau.net [80.88.23.165]) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPA id 27B83580099; Wed, 12 Oct 2022 13:45:28 +0200 (CEST) From: Markus Theil To: dev@dpdk.org Cc: Chas Williams , Min Hu , Thorben Roemer Subject: [PATCH] net/bonding: fix socket_id type Date: Wed, 12 Oct 2022 13:45:23 +0200 Message-Id: <20221012114523.9569-1-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Thorben Roemer DPDK uses int or u32 in most other places for socket IDs. Fix compilation warnings by also using int in the bonding code. Signed-off-by: Thorben Roemer --- drivers/net/bonding/rte_eth_bond.h | 2 +- drivers/net/bonding/rte_eth_bond_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond.h b/drivers/net/bonding/rte_eth_bond.h index 874aa91a5f..3ce2b29052 100644 --- a/drivers/net/bonding/rte_eth_bond.h +++ b/drivers/net/bonding/rte_eth_bond.h @@ -99,7 +99,7 @@ extern "C" { * Port Id of created rte_eth_dev on success, negative value otherwise */ int -rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id); +rte_eth_bond_create(const char *name, uint8_t mode, int socket_id); /** * Free a bonded rte_eth_dev device diff --git a/drivers/net/bonding/rte_eth_bond_api.c b/drivers/net/bonding/rte_eth_bond_api.c index b44dd219cb..3c6e236382 100644 --- a/drivers/net/bonding/rte_eth_bond_api.c +++ b/drivers/net/bonding/rte_eth_bond_api.c @@ -148,7 +148,7 @@ deactivate_slave(struct rte_eth_dev *eth_dev, uint16_t port_id) } int -rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id) +rte_eth_bond_create(const char *name, uint8_t mode, int socket_id) { struct bond_dev_private *internals; struct rte_eth_dev *bond_dev; -- 2.38.0