diff options
author | Don Skidmore <donald.c.skidmore@intel.com> | 2008-12-21 23:09:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-21 23:09:50 -0500 |
commit | 1486a61ebcd2711532f8163d30babc40e11e7b40 (patch) | |
tree | 49fb6ba4e4f6ade0f1db0f6c86d0feb207857e65 /net/dcb/dcbnl.c | |
parent | c2da953a46b18b7515ad476c1c1686640a12e93a (diff) |
net: fix DCB setstate to return success/failure
Data Center Bridging (DCB) had no way to know if setstate had failed in the
driver. This patch enables dcb netlink code to handle the status for the DCB
setstate interface. Likewise it allows the driver to return a failed status
if MSI-X isn't enabled.
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Eric W Multanen <eric.w.multanen@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb/dcbnl.c')
-rw-r--r-- | net/dcb/dcbnl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index a1254061629f..fc88fc4d4f63 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -714,9 +714,8 @@ static int dcbnl_setstate(struct net_device *netdev, struct nlattr **tb, | |||
714 | 714 | ||
715 | value = nla_get_u8(tb[DCB_ATTR_STATE]); | 715 | value = nla_get_u8(tb[DCB_ATTR_STATE]); |
716 | 716 | ||
717 | netdev->dcbnl_ops->setstate(netdev, value); | 717 | ret = dcbnl_reply(netdev->dcbnl_ops->setstate(netdev, value), |
718 | 718 | RTM_SETDCB, DCB_CMD_SSTATE, DCB_ATTR_STATE, | |
719 | ret = dcbnl_reply(0, RTM_SETDCB, DCB_CMD_SSTATE, DCB_ATTR_STATE, | ||
720 | pid, seq, flags); | 719 | pid, seq, flags); |
721 | 720 | ||
722 | return ret; | 721 | return ret; |