• M
    tg3: Reduce UMP event collision window · b28f389d
    Matt Carlson 提交于
    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: NMatt Carlson <mcarlson@broadcom.com>
    Reviewed-by: NMichael Chan <mchan@broadcom.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    b28f389d
tg3.c 419.0 KB