mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
netdev-linux: Allow meter to work in tc software datapath when tc-policy is specified
Add tc action flags when adding police action to offload meter table.
There is a restriction that the flag of skip_sw/skip_hw should be same for
filter rule and the independent created tc actions the rule uses. In this
case, if we configure the tc-policy as skip_hw, filter rule will be created
with skip_hw flag and the police action according to meter table will have
no action flag, then flower rule will fail to add to tc kernel system.
To fix this issue, we will add tc action flag when adding police action to
offload a meter table, so it will allow meter table to work in tc software
datapath.
Fixes: 5c039ddc64
("netdev-linux: Add functions to manipulate tc police action")
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
This commit is contained in:
committed by
Simon Horman
parent
743499607b
commit
ffcb6f115f
2
lib/tc.h
2
lib/tc.h
@@ -399,4 +399,6 @@ int tc_parse_action_stats(struct nlattr *action,
|
||||
int tc_dump_tc_action_start(char *name, struct nl_dump *dump);
|
||||
int parse_netlink_to_tc_policer(struct ofpbuf *reply, uint32_t police_idx[]);
|
||||
|
||||
void nl_msg_put_act_tc_policy_flag(struct ofpbuf *request);
|
||||
|
||||
#endif /* tc.h */
|
||||
|
Reference in New Issue
Block a user