]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Lock PF-common resources
authorAriel Elior <ariele@broadcom.com>
Thu, 26 Jan 2012 06:01:50 +0000 (06:01 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:21 +0000 (22:41 +0800)
commitdc11b17cb5f7529b6da6c99a0b8fcc58ce68271a
tree818df4984a8e8f912d97471c0afaeff90df23638
parent3a1965434c4a49c3cd6b0121b5aeb8aaf94cfca5
bnx2x: Lock PF-common resources

Use hardware locks to protect resources common to several Physical Functions. In
a virtualized environment the RTNL lock only protects a PF's driver against
the PFs sharing it's VMs with regard to device resources. Other PFs may reside
in other VMs under other OSs, and are not subject to the lock. Such resources
which were previously protected implicitly by the RTNL lock must now be
protected explicitly with dedicated HW locks.

(cherry picked from commit f16da43b5df947cef427f19b8f5c4b2f5d566231)
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_cmn.h
drivers/net/bnx2x/bnx2x_ethtool.c
drivers/net/bnx2x/bnx2x_main.c
drivers/net/bnx2x/bnx2x_reg.h