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)
commit81be8f0ab47db1171dac0eb8b062291603b57dd4
tree91dbff61d5dda0a8be1c775cadddd15aea4c398c
parentb0060586d23968d66325d775651d92ee830c032f
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