]> git.baikalelectronics.ru Git - kernel.git/commit
qlge: Fix MAC address bonding issue.
authorRon Mercer <ron.mercer@qlogic.com>
Thu, 2 Jul 2009 06:06:11 +0000 (06:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jul 2009 02:10:41 +0000 (19:10 -0700)
commitd110a88847ba3ceab92ab924510553cad328f734
tree1c1baca2eabb0c4185aa8641854a3cb306cf5e28
parent49db38a1d3977638744251433c6d16e6b4b6a5d3
qlge: Fix MAC address bonding issue.

This addes functionality to set/clear the MAC address in the hardware
when the link goes up/down.
The MAC address register is persistent across function resets. In
bonding the same address can bounce from one port to the other.  This
can cause packets to be delivered to the wrong port.
This patch clears the MAC address in the hardware when the link is down
and sets it when the link comes up.
It was found that pulling/pushing the cable from one port to another
causes the same MAC address to be in both ports.
The next patch in this series will use this functionality as well.

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge_main.c