From: Shmulik Hen <shmulik.hen@in...> - 2003-09-21 13:38:52
In bond_xmit_xor(), we have the following:
slave = bond->prev;
slave_no = (data->h_dest^slave->dev->dev_addr) % bond->slave_cnt;
Which should give us a number between 0 and slave_cnt-1 which is constant
per destination address, hence acts as a hash function. But, the fact is
slave->dev->dev_addr is the same the whole time, and is actually the
same as bond->device->dev_addr.
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 % bond->slave_cnt;
| Shmulik Hen Advanced Network Services |
| Israel Design Center, Jerusalem |
| LAN Access Division, Platform Networking |
| Intel Communications Group, Intel corp. |
Get latest updates about Open Source Projects, Conferences and News.