]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: fix vfs enumeration
authorIvan Vecera <ivecera@redhat.com>
Mon, 1 Oct 2012 01:56:55 +0000 (01:56 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 17 Dec 2012 08:42:37 +0000 (00:42 -0800)
commitc0662f044b1cff863a2f96ebaffbe30110b887a2
tree96b78d9c2fbc896ea824e11c80c697d0760f3e4e
parent040b2d845e5555955f198ac42fe7dc6a967bf171
be2net: fix vfs enumeration

Current VFs enumeration algorithm used in be_find_vfs does not take domain
number into the match. The match found in igb/ixgbe is more elegant and
safe.

This 2nd version uses pci_physfn instead of checking dev->physfn directly.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c