]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Reduce UMP event collision window
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 15:20:12 +0000 (15:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2012 01:45:06 +0000 (20:45 -0500)
commit02a82e3b494bdefc61d73ee00714185a4eda53a3
treebf3d0d881b3fa53529b7b11247c1d80a5e65a961
parent8cc5bfd177bb73a4e389b58be0808c83391cdf50
tg3: Reduce UMP event collision window

The tg3 driver needs to submit a few phy register values to the UMP
firmware each time the link state changes.  Up until now, the driver
would wait for the previous event to complete, then proceed to gather
data through a series of phy accesses.  Since phy accesses are
relatively slow, it is possible for another thread to attempt to submit
its own event while the UMP code is still construction its message.

This patch seeks to minimize the collision window as much as possible by
preloading the phy data.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c