network: tc use TAKE_PTR
This commit is contained in:
committed by
Yu Watanabe
parent
25351bc557
commit
5a3e1cb918
@@ -85,7 +85,7 @@ int config_parse_quick_fair_queueing_weight(
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
qfq->weight = 0;
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ int config_parse_quick_fair_queueing_weight(
|
||||
}
|
||||
|
||||
qfq->weight = v;
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ int config_parse_quick_fair_queueing_max_packet(
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
qfq->max_packet = 0;
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ int config_parse_quick_fair_queueing_max_packet(
|
||||
}
|
||||
|
||||
qfq->max_packet = (uint32_t) v;
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ int config_parse_stochastic_fair_blue_u32(
|
||||
if (isempty(rvalue)) {
|
||||
sfb->packet_limit = 0;
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ int config_parse_stochastic_fair_blue_u32(
|
||||
return 0;
|
||||
}
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ int config_parse_stochastic_fairness_queueing_perturb_period(
|
||||
if (isempty(rvalue)) {
|
||||
sfq->perturb_period = 0;
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ int config_parse_stochastic_fairness_queueing_perturb_period(
|
||||
return 0;
|
||||
}
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ int config_parse_token_bucket_filter_size(
|
||||
else
|
||||
assert_not_reached("unknown lvalue");
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ int config_parse_token_bucket_filter_size(
|
||||
else
|
||||
assert_not_reached("unknown lvalue");
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ int config_parse_token_bucket_filter_rate(
|
||||
if (isempty(rvalue)) {
|
||||
*p = 0;
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ int config_parse_tclass_parent(
|
||||
}
|
||||
}
|
||||
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ int config_parse_tclass_classid(
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
tclass->classid = TC_H_UNSPEC;
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ int config_parse_tclass_classid(
|
||||
return 0;
|
||||
}
|
||||
|
||||
tclass = NULL;
|
||||
TAKE_PTR(tclass);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ int config_parse_trivial_link_equalizer_id(
|
||||
if (isempty(rvalue)) {
|
||||
teql->id = 0;
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -86,6 +86,6 @@ int config_parse_trivial_link_equalizer_id(
|
||||
|
||||
teql->id = id;
|
||||
|
||||
qdisc = NULL;
|
||||
TAKE_PTR(qdisc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user