diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-11-12 23:58:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-14 17:51:28 +0100 |
commit | bf2a752bea027ec5a0bc5b4042d78b32715ad198 (patch) | |
tree | 1c92e4f9cc3f90974cb33e2579dfc1f867cb2d46 /include/net/pkt_cls.h | |
parent | nfp: abm: allocate Qdisc child table (diff) | |
download | linux-bf2a752bea027ec5a0bc5b4042d78b32715ad198.tar.xz linux-bf2a752bea027ec5a0bc5b4042d78b32715ad198.zip |
net: sched: red: offload a graft notification
Drivers offloading Qdiscs should have reasonable certainty
the offloaded behaviour matches the SW path. This is impossible
if the driver does not know about all Qdiscs or when Qdiscs move
and are reused. Send a graft notification from RED. The drivers
are expected to simply stop offloading the Qdisc, if a non-standard
child is ever grafted onto it.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_cls.h')
-rw-r--r-- | include/net/pkt_cls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index fa31d034231d..01f2802b7aee 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -834,6 +834,7 @@ enum tc_red_command { TC_RED_DESTROY, TC_RED_STATS, TC_RED_XSTATS, + TC_RED_GRAFT, }; struct tc_red_qopt_offload_params { @@ -853,6 +854,7 @@ struct tc_red_qopt_offload { struct tc_red_qopt_offload_params set; struct tc_qopt_offload_stats stats; struct red_stats *xstats; + u32 child_handle; }; }; |