netdev
[Top] [All Lists]

Re: Question about the hash used in XOR mode

To: shmulik.hen@xxxxxxxxx
Subject: Re: Question about the hash used in XOR mode
From: Jay Vosburgh <fubar@xxxxxxxxxx>
Date: Tue, 23 Sep 2003 13:31:32 -0700
Cc: bonding-devel@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: Message from Shmulik Hen <shmulik.hen@xxxxxxxxx> of "Sun, 21 Sep 2003 16:37:37 +0300." <200309211637.37136.shmulik.hen@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
>slave_no = (data->h_dest[5]^slave->dev->dev_addr[5]) % bond->slave_cnt;
[...]
>Is there a special meaning for XORing with a constant ?
>Wouldn't it be the same is we did just:
>       slave_no = data->h_dest[5] % bond->slave_cnt;

        I asked Janice Girouard about this...  The theory is to mimic
the way Cisco etherchannel load balancing modes operate (in particular
I think the "src-dst-mac" mode).

        The Cisco 6000 series switch (and maybe others) documentation
shows the algorithm (in an example; it doesn't go into detail).

        -J

---
        -Jay Vosburgh, IBM Linux Technology Center, fubar@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>