• Ariel Elior's avatar
    bnx2x: Track active PFs with bitmap · 889b9af3
    Ariel Elior authored
    The recovery register (to which a hardware lock has been added in previous
    patch) is used amongst other things to track the active PFs. The old
    implementation which used a per path counter is not viable in a virtualized
    environment where a pf may increment the counter and then have the kernel
    crash around it preventing the counter from ever reaching zero.
    In the new implementation the scenario described will result in the PF timing
    out against the mcp, which will clear the PF's bit in the bitmask allowing
    recovery process to proceed.
    Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
    Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    889b9af3
bnx2x_main.c 319 KB