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>
This commit is contained in:

committed by
David S. Miller

parent
c2da953a46
commit
1486a61ebc
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
struct dcbnl_rtnl_ops {
|
||||
u8 (*getstate)(struct net_device *);
|
||||
void (*setstate)(struct net_device *, u8);
|
||||
u8 (*setstate)(struct net_device *, u8);
|
||||
void (*getpermhwaddr)(struct net_device *, u8 *);
|
||||
void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8);
|
||||
void (*setpgbwgcfgtx)(struct net_device *, int, u8);
|
||||
|
Reference in New Issue
Block a user