tbf: fix false missing attr
Fix false missing attribute in tbf_msg_fill() when applying a tbf qdisc.
This commit is contained in:
parent
941ba950a9
commit
9426d03e3a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ static int tbf_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg)
|
|||
struct rtnl_tbf *tbf = data;
|
||||
int required = TBF_ATTR_RATE | TBF_ATTR_LIMIT;
|
||||
|
||||
if (!(tbf->qt_mask & required) != required)
|
||||
if ((tbf->qt_mask & required) != required)
|
||||
return -NLE_MISSING_ATTR;
|
||||
|
||||
memset(&opts, 0, sizeof(opts));
|
||||
|
|
Loading…
Add table
Reference in a new issue