From 05a68d6ece72affa0a4683f51e94aa8aa0533db3 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Fri, 3 Dec 2021 12:05:45 -0800 Subject: bonding: refactor bonding hash functions to vnet/hash - move bonding hash functions to vnet/hash - register the corresponding hash function when the bond interface is created - remove floating point vec256 usage - split bond_tx_inline into bond_tx_hash and bond_tx_no_hash Type: refactor Signed-off-by: Steven Luong Change-Id: I1698023c48470290d11c9b2bd00996eee9aa079d --- src/vnet/bonding/node.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/bonding/node.h') diff --git a/src/vnet/bonding/node.h b/src/vnet/bonding/node.h index 843c236f123..c6602ef01b9 100644 --- a/src/vnet/bonding/node.h +++ b/src/vnet/bonding/node.h @@ -21,6 +21,7 @@ #include #include #include +#include #define LACP_FAST_PERIODIC_TIMER 1.0 #define LACP_SHORT_TIMOUT_TIME (LACP_FAST_PERIODIC_TIMER * 3) @@ -163,6 +164,7 @@ typedef struct typedef struct { bond_per_port_queue_t *per_port_queue; + void **data; } bond_per_thread_data_t; typedef struct @@ -208,6 +210,7 @@ typedef struct u8 hw_address[6]; clib_spinlock_t lockp; + vnet_hash_fn_t hash_func; } bond_if_t; typedef struct -- cgit 1.2.3-korg