Skip to content

Commit

Permalink
Merge pull request FRRouting#11824 from sigeryang/master
Browse files Browse the repository at this point in the history
zebra: fix deadcodes in tc dplane & netlink
  • Loading branch information
donaldsharp authored Aug 17, 2022
2 parents 20b9c9f + 4c9b85a commit c8e1ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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
3 changes: 1 addition & 2 deletions zebra/zebra_dplane.c
Original file line number Diff line number Diff line change
Expand Up @@ -2775,14 +2775,13 @@ int dplane_ctx_tc_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op)
{
int ret = EINVAL;

struct zebra_vrf *zvrf = NULL;
struct zebra_ns *zns = NULL;

ctx->zd_op = op;
ctx->zd_status = ZEBRA_DPLANE_REQUEST_SUCCESS;

/* TODO: init traffic control qdisc */
zns = zvrf ? zvrf->zns : zebra_ns_lookup(NS_DEFAULT);
zns = zebra_ns_lookup(NS_DEFAULT);

dplane_ctx_ns_init(ctx, zns, true);

Expand Down

0 comments on commit c8e1ce6

Please sign in to comment.