Thread (15 messages) read the whole thread 15 messages, 5 authors, 2025-10-22

Re: [PATCHv6 net-next 2/4] bonding: use common function to compute the features

From: Sabrina Dubroca <sd@queasysnail.net>
Date: 2025-10-20 09:10:52
Also in: bridge

2025-10-17, 03:41:53 +0000, Hangbin Liu wrote:
Use the new functon netdev_compute_master_upper_features() to compute the bonding
features.

Note that bond_compute_features() currently uses bond_for_each_slave()
to traverse the lower devices list, and that is just a macro wrapper of
netdev_for_each_lower_private(). We use similar helper
netdev_for_each_lower_dev() in netdev_compute_master_upper_features() to
iterate the slave device, as there is not need to get the private data.

No functional change intended.

Signed-off-by: Hangbin Liu <redacted>
---
 drivers/net/bonding/bond_main.c | 99 ++-------------------------------
 1 file changed, 4 insertions(+), 95 deletions(-)
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>

-- 
Sabrina
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help