diff options
author | Steven Luong <sluong@cisco.com> | 2021-12-03 12:05:45 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-01-25 09:49:54 +0000 |
commit | 05a68d6ece72affa0a4683f51e94aa8aa0533db3 (patch) | |
tree | 8d3a455dcb5338196a2f357de48f60215f4dbf5f /src/vnet/bonding/node.h | |
parent | 340bd8f1efdaaf40d87553a46314c51aba074eb3 (diff) |
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 <sluong@cisco.com>
Change-Id: I1698023c48470290d11c9b2bd00996eee9aa079d
Diffstat (limited to 'src/vnet/bonding/node.h')
-rw-r--r-- | src/vnet/bonding/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <vppinfra/hash.h> #include <vnet/ethernet/ethernet.h> #include <vnet/interface.h> +#include <vnet/hash/hash.h> #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 |