Skip to content

Commit

Permalink
net: fix dcbnl_setnumtcs operation check
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Eric W Multanen <[email protected]>
Signed-off-by: Peter P Waskiewicz Jr <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
dcskidmo authored and davem330 committed Dec 15, 2008
1 parent 5ecc361 commit 8b124a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dcb/dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static int dcbnl_setnumtcs(struct net_device *netdev, struct nlattr **tb,
u8 value;
int i;

if (!tb[DCB_ATTR_NUMTCS] || !netdev->dcbnl_ops->setstate)
if (!tb[DCB_ATTR_NUMTCS] || !netdev->dcbnl_ops->setnumtcs)
return ret;

ret = nla_parse_nested(data, DCB_NUMTCS_ATTR_MAX, tb[DCB_ATTR_NUMTCS],
Expand Down

0 comments on commit 8b124a8

Please sign in to comment.