[PATCH] net/bonding: add user callback for bond xmit policy

Stephen Hemminger stephen at networkplumber.org
Sat Oct 12 20:13:06 CEST 2024


On Thu, 15 Aug 2024 14:10:14 +0200
<vignesh.purushotham.srinivas at ericsson.com> wrote:

> diff --git a/drivers/net/bonding/rte_eth_bond.h b/drivers/net/bonding/rte_eth_bond.h
> index f10165f2c6..66bc41097a 100644
> --- a/drivers/net/bonding/rte_eth_bond.h
> +++ b/drivers/net/bonding/rte_eth_bond.h
> @@ -91,6 +91,11 @@ extern "C" {
>  /**< Layer 2+3 (Ethernet MAC + IP Addresses) transmit load balancing */
>  #define BALANCE_XMIT_POLICY_LAYER34		(2)
>  /**< Layer 3+4 (IP Addresses + UDP Ports) transmit load balancing */
> +#define BALANCE_XMIT_POLICY_USER		(3)
> +/**< User callback function to transmit load balancing */
> +
> +typedef void (*burst_xmit_hash_t)(struct rte_mbuf **buf, uint16_t nb_pkts,
> +	uint16_t slave_count, uint16_t *slaves);

Change wording.

DPDK has replaced use of the non-inclusive term slave in bond driver.


More information about the dev mailing list