Re: [PATCH v4] net:bonding:Add support for IPV6 RLB to balance-alb mode

From: 孙守鑫
Date: Fri Mar 18 2022 - 05:50:19 EST



在 2022/3/18 2:49, David Ahern 写道:
On 3/17/22 12:15 AM, Sun Shouxin wrote:
This patch is implementing IPV6 RLB for balance-alb mode.

Suggested-by: Hu Yadi <huyd12@xxxxxxxxxxxxxxx>
Signed-off-by: Sun Shouxin <sunshouxin@xxxxxxxxxxxxxxx>
---
changelog:
v1-->v2:
-Remove ndisc_bond_send_na and refactor ndisc_send_na.
-In rlb_nd_xmit, if the lladdr is not local, return curr_active_slave.
-Don't send neighbor advertisement message when receiving
neighbor advertisement message in rlb6_update_entry_from_na.

v2-->v3:
-Don't export ndisc_send_na.
-Use ipv6_stub->ndisc_send_na to replace ndisc_send_na
in rlb6_update_client.

v3-->v4:
-Submit all code at a whole patch.
you misunderstood Jakub's comment. The code should evolve with small,
focused patches and each patch needs to compile and function correctly
(ie., no breakage).

You need to respond to Jiri's question about why this feature is needed.
After that:

1. patch 1 adds void *data to ndisc_send_na stub function and
ndisc_send_na direct function. Update all places that use both
ndisc_send_na to pass NULL as the data parameter.

2. patch 2 refactors ndisc_send_na to handle the new data argument

3. patch 3 exports any IPv6 functions. explain why each needs to be
exported.

4. patch 4 .... bonding changes. (bonding folks can respond on how to
introduce that change).


Thanks your warmly instruction for newbee, I'll resend soon.
Thanks again.