]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix return status of some ethtool methods
authorKalesh AP <kalesh.purayil@emulex.com>
Thu, 17 Jul 2014 10:50:23 +0000 (16:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:38:14 +0000 (16:38 -0700)
commit57aba5c4f74387085eb7fd813bf2c521c98a7cca
treea534555f9528798342a7889883d64b625eb35149
parent61e04484152af29e79ec81736de31abc64444014
be2net: fix return status of some ethtool methods

ethtool expects a -ve status value to be returned when a driver method
encounters an error. The driver was directly passing the
error status returned by FW (a positive value) to ethtool.
This patch fixes this by returning -EIO status in cases where FW returns
an error.
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.h
drivers/net/ethernet/emulex/benet/be_ethtool.c