]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: return error status from be_set_phys_id()
authorSuresh Reddy <suresh.reddy@broadcom.com>
Wed, 3 Feb 2016 04:19:16 +0000 (09:49 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Feb 2016 18:55:22 +0000 (13:55 -0500)
commit69853e1786d90b026890df2333831d6c294fd994
treebafb62bacabfbe890134f70fe1dad14e097c2eff
parentb425e74d7219be0a73d9dd6f01d6e51a402983ba
be2net: return error status from be_set_phys_id()

be_set_phys_id() returns 0 to ethtool when the command fails in the FW.

This patch fixes the set_phys_id() to return -EIO in case the FW cmd fails.

Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_ethtool.c