DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/bonding: fix socket_id type
@ 2022-10-12 11:45 Markus Theil
  2022-10-12 12:23 ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Theil @ 2022-10-12 11:45 UTC (permalink / raw)
  To: dev; +Cc: Chas Williams, Min Hu, Thorben Roemer

From: Thorben Roemer <thorben.roemer@secunet.com>

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 <thorben.roemer@secunet.com>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-12 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 11:45 [PATCH] net/bonding: fix socket_id type Markus Theil
2022-10-12 12:23 ` Ferruh Yigit
2022-10-12 14:20   ` Markus Theil
2022-10-12 15:15     ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).