net: sch_tbf: Add a graft command
As another qdisc is linked to the TBF, the latter should issue an event to give drivers a chance to react to the grafting. In other qdiscs, this event is called GRAFT, so follow suit with TBF as well. Signed-off-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
aaa5570612
commit
6b3efbfa4e
@@ -977,6 +977,7 @@ enum tc_tbf_command {
|
||||
TC_TBF_REPLACE,
|
||||
TC_TBF_DESTROY,
|
||||
TC_TBF_STATS,
|
||||
TC_TBF_GRAFT,
|
||||
};
|
||||
|
||||
struct tc_tbf_qopt_offload_replace_params {
|
||||
@@ -992,6 +993,7 @@ struct tc_tbf_qopt_offload {
|
||||
union {
|
||||
struct tc_tbf_qopt_offload_replace_params replace_params;
|
||||
struct tc_qopt_offload_stats stats;
|
||||
u32 child_handle;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user