ALB_HANDLE_ADDR_COLLISION_ON_ATTACH

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

alb_handle_addr_collision_on_attach -  

SYNOPSIS

"SYNOPSIS"

int alb_handle_addr_collision_on_attach (struct bonding * bond, struct slave * slave);  

ARGUMENTS

bond
bonding we're working on
slave
the slave that was just attached
 

DESCRIPTION

checks uniqueness of slave's mac address and handles the case the new slave uses the bonds mac address.

If the permanent hw address of slave is bond's hw address, we need to find a different hw address to give slave, that isn't in use by any other slave in the bond. This address must be, of course, one of the premanent addresses of the other slaves.

We go over the slave list, and for each slave there we compare its permanent hw address with the current address of all the other slaves. If no match was found, then we've found a slave with a permanent address that isn't used by any other slave in the bond, so we can assign it to slave.  

ASSUMPTION

this function is called before slave is attached to the bond slave list.

caller must hold the bond lock for write since the mac addresses are compared and may be swapped.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ASSUMPTION

This document was created by man2html, using the manual pages.
Time: 00:01:55 GMT, October 09, 2005