Commit 068ceb35 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

net: sched: cls_u32: add res to offload information

In case of egress offloads the class/flowid assigned by the filter
may be very important for offloaded Qdisc selection.  Provide this
info to drivers.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarJohn Hurley <john.hurley@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f3d63720
...@@ -643,6 +643,7 @@ struct tc_cls_common_offload { ...@@ -643,6 +643,7 @@ struct tc_cls_common_offload {
struct tc_cls_u32_knode { struct tc_cls_u32_knode {
struct tcf_exts *exts; struct tcf_exts *exts;
struct tcf_result *res;
struct tc_u32_sel *sel; struct tc_u32_sel *sel;
u32 handle; u32 handle;
u32 val; u32 val;
......
...@@ -558,6 +558,7 @@ static int u32_replace_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n, ...@@ -558,6 +558,7 @@ static int u32_replace_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n,
cls_u32.knode.mask = 0; cls_u32.knode.mask = 0;
#endif #endif
cls_u32.knode.sel = &n->sel; cls_u32.knode.sel = &n->sel;
cls_u32.knode.res = &n->res;
cls_u32.knode.exts = &n->exts; cls_u32.knode.exts = &n->exts;
if (n->ht_down) if (n->ht_down)
cls_u32.knode.link_handle = ht->handle; cls_u32.knode.link_handle = ht->handle;
...@@ -1206,6 +1207,7 @@ static int u32_reoffload_knode(struct tcf_proto *tp, struct tc_u_knode *n, ...@@ -1206,6 +1207,7 @@ static int u32_reoffload_knode(struct tcf_proto *tp, struct tc_u_knode *n,
cls_u32.knode.mask = 0; cls_u32.knode.mask = 0;
#endif #endif
cls_u32.knode.sel = &n->sel; cls_u32.knode.sel = &n->sel;
cls_u32.knode.res = &n->res;
cls_u32.knode.exts = &n->exts; cls_u32.knode.exts = &n->exts;
if (n->ht_down) if (n->ht_down)
cls_u32.knode.link_handle = ht->handle; cls_u32.knode.link_handle = ht->handle;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment