enic: Check firmware capability before issuing firmware commands
authorNeel Patel <neepatel@cisco.com>
Fri, 3 Feb 2012 08:25:19 +0000 (08:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Feb 2012 21:01:03 +0000 (16:01 -0500)
commitf8a6dd59f79f83d7188909331dcdf6e45e1b2c1f
tree99e410a2120495d79924309cf495b04b0f5fe804
parent63da93d932af04cf80507b110afe894a8a8d1f90
enic: Check firmware capability before issuing firmware commands

Check if firmware supports a particular command by first checking capability
using devcmd CMD_CAPABILITY.

Signed-off-by: Neel Patel <neepatel@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: Nishank Trivedi <nistrive@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/vnic_dev.c