]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite68f9f7c9c2a5b7648f517d18add45a9df323a7a
treea33741d6cc182ae50e85b4acba9c0c17a5d15ff5
parente1195f91e33c22d01d7151c7efd1822ca2f5a933
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