Skip to content

Commit

Permalink
zebra: fix ctab calculation typo in tc netlink
Browse files Browse the repository at this point in the history
Signed-off-by: Siger Yang <siger.yang@outlook.com>
  • Loading branch information
ttyS0 committed Aug 17, 2022
1 parent ec195c6 commit 4c9b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/tc_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static ssize_t netlink_tclass_msg_encode(int cmd, struct zebra_dplane_ctx *ctx,
htb_opt.cbuffer = cbuffer;

tc_calc_rate_table(&htb_opt.rate, rtab, mtu);
tc_calc_rate_table(&htb_opt.ceil, rtab, mtu);
tc_calc_rate_table(&htb_opt.ceil, ctab, mtu);

htb_opt.ceil.mpu = htb_opt.rate.mpu = 0;
htb_opt.ceil.overhead = htb_opt.rate.overhead = 0;
Expand Down

0 comments on commit 4c9b85a

Please sign in to comment.