be2net: fix vfs enumeration
authorIvan Vecera <ivecera@redhat.com>
Mon, 1 Oct 2012 01:56:55 +0000 (01:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Oct 2012 20:43:17 +0000 (16:43 -0400)
commit2f6a02604e962295569749913081365ec9ec1372
tree199ae83acd27e6f007f7230644d3b6b0b3556bd7
parentf4b549a5ac818722fc13d789584f41f4e00d78b5
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/ethernet/emulex/benet/be_main.c