]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1dd1cc83d9e0cd5113fc22581359d2433dc85705
tree199ae83acd27e6f007f7230644d3b6b0b3556bd7
parentfa73cfc2b5702f733a019b129ca782f3ca8413c0
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