[ofa-general] [PATCH] IPoIB: check multicast address format

Moni Shoua monis at Voltaire.COM
Thu Aug 27 08:52:46 PDT 2009


Jason Gunthorpe wrote:
> On Wed, Aug 26, 2009 at 12:07:51PM +0300, Or Gerlitz wrote:
> 
>> isn't Jason's approach enough for the bonding case?! I saw that your  
>> patch ("bonding: clean muticast addresses when device changes type"
> 
> I think working versions of all three patches are required:
>  1) Fix the bonding driver. Otherwise the right groups might not be
>     joined.
>  2) Check the address format, to protect against 'ip maddr add' and
>     other wakkyness
>  3) Fix the timeout handling, so mlid exhaustion and other SA side
>     errors are handled elegantly.
> 
> All are bugs..
> 
>> and maybe also in mainline .31-rcX . However, it has the  
>> down-side-effect of e.g loosing routes already set for the the bond
>> while adding the underline IPoIB devices, so if Jason's patch is
>> enough
> 
> Is this true? That is pretty ugly, but probably manageable..
> 
Yes it's true but I'm not sure it's ugly. Changing device type is not a common event and requires device ops change which I think is better to do when the device is closed. Unfortunately, losing routes is a side effect of closing the device but it might be necessary.



More information about the general mailing list