diff options
author | Don Skidmore <donald.c.skidmore@intel.com> | 2008-12-15 04:06:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-15 04:06:23 -0500 |
commit | 8b124a8e14c04378466ddfe63e41fc5035f957eb (patch) | |
tree | 62798f7ca17324eea6c4d4c8a7461ddf0d996c81 /net/dcb/dcbnl.c | |
parent | 5ecc361444a0c641a73cce05fb652d0e3c944451 (diff) |
net: fix dcbnl_setnumtcs operation check
dcbml_setnumtcs wasn't checking for the presence of the setnumtcs
function. Instead, it was checking for setstate which was a bug.
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Eric W Multanen <eric.w.multanen@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 79a351d323af..a1254061629f 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -469,7 +469,7 @@ static int dcbnl_setnumtcs(struct net_device *netdev, struct nlattr **tb, | |||
469 | u8 value; | 469 | u8 value; |
470 | int i; | 470 | int i; |
471 | 471 | ||
472 | if (!tb[DCB_ATTR_NUMTCS] || !netdev->dcbnl_ops->setstate) | 472 | if (!tb[DCB_ATTR_NUMTCS] || !netdev->dcbnl_ops->setnumtcs) |
473 | return ret; | 473 | return ret; |
474 | 474 | ||
475 | ret = nla_parse_nested(data, DCB_NUMTCS_ATTR_MAX, tb[DCB_ATTR_NUMTCS], | 475 | ret = nla_parse_nested(data, DCB_NUMTCS_ATTR_MAX, tb[DCB_ATTR_NUMTCS], |