mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
other-config: Add tc-policy switch to control tc flower flag
Add a new configuration tc-policy option that controls tc flower flag. Possible options are none, skip_sw, skip_hw. The default is none which is to insert the rule both to sw and hw. This option is only relevant if hw-offload is enabled. Signed-off-by: Paul Blakey <paulb@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
committed by
Simon Horman
parent
31b88c9751
commit
691d20cbdc
3
lib/tc.h
3
lib/tc.h
@@ -36,6 +36,8 @@
|
||||
|
||||
#define TC_INGRESS_PARENT TC_H_MAKE(TC_H_CLSACT, TC_H_MIN_INGRESS)
|
||||
|
||||
#define TC_POLICY_DEFAULT "none"
|
||||
|
||||
/* Returns tc handle 'major':'minor'. */
|
||||
static inline unsigned int
|
||||
tc_make_handle(unsigned int major, unsigned int minor)
|
||||
@@ -152,5 +154,6 @@ int tc_flush(int ifindex);
|
||||
int tc_dump_flower_start(int ifindex, struct nl_dump *dump);
|
||||
int parse_netlink_to_tc_flower(struct ofpbuf *reply,
|
||||
struct tc_flower *flower);
|
||||
void tc_set_policy(const char *policy);
|
||||
|
||||
#endif /* tc.h */
|
||||
|
Reference in New Issue
Block a user