]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix to get max VFs supported from adapter
authorAjit Khaparde <ajit.khaparde@emulex.com>
Wed, 6 Apr 2011 18:08:17 +0000 (18:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Apr 2011 22:04:45 +0000 (15:04 -0700)
commit9fb9b15d940b6ac4a4612d424fe97f77554012c6
tree91dbff61d5dda0a8be1c775cadddd15aea4c398c
parentb1a67ecf7e705aa4a663dbe9c699be25b450abb3
be2net: fix to get max VFs supported from adapter

The user supplied num_vfs value need not be compared
against a static BE_MAX_VF, but can be checked against
the actual VFs that the device can support.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c