net/bonding: fix mode type mismatch
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 10 Dec 2021 11:41:01 +0000 (19:41 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 18 Jan 2022 11:29:17 +0000 (12:29 +0100)
commitcc5097b1e46ddee8df8d2210a67ec675f3807ba2
tree18a199276ad4e225b3361452165c8a8036da4040
parentaf8d89a0c6d5cfd4d77ec1ec224e5a72996026df
net/bonding: fix mode type mismatch

There were some type-mismatch issues in bonding and fix them:
- Use %u to fix argument type mismatch in RTE_BOND_LOG.
- The internals->mode is of type uint8_t. But the function
  parameter 'mode' is of type int. So change the mode type
  from int to uint8_t.

Fixes: 2efb58cbab6e ("bond: new link bonding library")
Fixes: a45b288ef21a ("bond: support link status polling")
Fixes: 68451eb6698c ("net/bonding: call through EAL on create/free")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/eth_bond_private.h
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/bonding/rte_eth_bond_pmd.c