mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
net: prestera: acl: add support for 'police' action on egress
Propagate ingress/egress direction for 'police' action down to hardware. Co-developed-by: Volodymyr Mytnyk <volodymyr.mytnyk@plvision.eu> Signed-off-by: Volodymyr Mytnyk <volodymyr.mytnyk@plvision.eu> Signed-off-by: Maksym Glubokiy <maksym.glubokiy@plvision.eu> Link: https://lore.kernel.org/r/20220714083541.1973919-1-maksym.glubokiy@plvision.eu Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
e22c88799f
commit
3c6aca3333
|
|
@ -116,7 +116,7 @@ static int prestera_flower_parse_actions(struct prestera_flow_block *block,
|
|||
rule->re_arg.police.rate =
|
||||
act->police.rate_bytes_ps;
|
||||
rule->re_arg.police.burst = act->police.burst;
|
||||
rule->re_arg.police.ingress = true;
|
||||
rule->re_arg.police.ingress = block->ingress;
|
||||
break;
|
||||
case FLOW_ACTION_GOTO:
|
||||
err = prestera_flower_parse_goto_action(block, rule,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user