mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: Jakub Kicinski <[email protected]> Reviewed-by: John Hurley <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
f3d6372064
commit
068ceb3555
2 changed files with 3 additions and 0 deletions
|
|
@ -558,6 +558,7 @@ static int u32_replace_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n,
|
|||
cls_u32.knode.mask = 0;
|
||||
#endif
|
||||
cls_u32.knode.sel = &n->sel;
|
||||
cls_u32.knode.res = &n->res;
|
||||
cls_u32.knode.exts = &n->exts;
|
||||
if (n->ht_down)
|
||||
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,
|
|||
cls_u32.knode.mask = 0;
|
||||
#endif
|
||||
cls_u32.knode.sel = &n->sel;
|
||||
cls_u32.knode.res = &n->res;
|
||||
cls_u32.knode.exts = &n->exts;
|
||||
if (n->ht_down)
|
||||
cls_u32.knode.link_handle = ht->handle;
|
||||
|
|
|
|||
Loading…
Reference in a new issue