Skip to content

Commit

Permalink
netdev-linux: Fix function argument order in sfq_tc_load().
Browse files Browse the repository at this point in the history
sfq_install__() takes quantum before perturb.

Acked-by: Justin Pettit <jpettti@ovn.org>
Reported-by: shaoke xi <xishaoke.xsk@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
blp committed Jan 18, 2019
1 parent fa1bf28 commit 8ac577e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netdev-linux.c
Expand Up @@ -3480,7 +3480,7 @@ sfq_tc_load(struct netdev *netdev, struct ofpbuf *nlmsg)
error = tc_parse_qdisc(nlmsg, &kind, &nlattr);
if (error == 0) {
sfq = nl_attr_get(nlattr);
sfq_install__(netdev, sfq->perturb_period, sfq->quantum);
sfq_install__(netdev, sfq->quantum, sfq->perturb_period);
return 0;
}

Expand Down

0 comments on commit 8ac577e

Please sign in to comment.