mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Eric W Multanen <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c2da953a46
commit
1486a61ebc
3 changed files with 32 additions and 27 deletions
|
|
@ -714,9 +714,8 @@ static int dcbnl_setstate(struct net_device *netdev, struct nlattr **tb,
|
|||
|
||||
value = nla_get_u8(tb[DCB_ATTR_STATE]);
|
||||
|
||||
netdev->dcbnl_ops->setstate(netdev, value);
|
||||
|
||||
ret = dcbnl_reply(0, RTM_SETDCB, DCB_CMD_SSTATE, DCB_ATTR_STATE,
|
||||
ret = dcbnl_reply(netdev->dcbnl_ops->setstate(netdev, value),
|
||||
RTM_SETDCB, DCB_CMD_SSTATE, DCB_ATTR_STATE,
|
||||
pid, seq, flags);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue