be2net: use -ENETDOWN error status when interface is down
authorKalesh AP <kalesh.purayil@emulex.com>
Thu, 17 Jul 2014 10:50:19 +0000 (16:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:38:14 +0000 (16:38 -0700)
commit940a3fcddc76f82ac4e80dfa7bccb236e9bec0a1
treea33741d6cc182ae50e85b4acba9c0c17a5d15ff5
parent23fa5c2caae08f919d906b1064b9fdc352b3024e
be2net: use -ENETDOWN error status when interface is down

Updating VF's tx-rate and FW-download are not allowed when the interface is
down. In such cases return -ENETDOWN to the stack.
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c