mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
tc: Support new terse dump kernel API
When dumping flows in terse mode set TCA_DUMP_FLAGS attribute to TCA_DUMP_FLAGS_TERSE flag to prevent unnecessary copying of data between kernel and user spaces. Only expect kernel to provide cookie, stats and flags when dumping filters in terse mode. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
committed by
Simon Horman
parent
191536574e
commit
5db012c4ac
5
lib/tc.h
5
lib/tc.h
@@ -341,10 +341,11 @@ BUILD_ASSERT_DECL(offsetof(struct tc_flower, rewrite)
|
||||
int tc_replace_flower(struct tcf_id *id, struct tc_flower *flower);
|
||||
int tc_del_filter(struct tcf_id *id);
|
||||
int tc_get_flower(struct tcf_id *id, struct tc_flower *flower);
|
||||
int tc_dump_flower_start(struct tcf_id *id, struct nl_dump *dump);
|
||||
int tc_dump_flower_start(struct tcf_id *id, struct nl_dump *dump, bool terse);
|
||||
int parse_netlink_to_tc_flower(struct ofpbuf *reply,
|
||||
struct tcf_id *id,
|
||||
struct tc_flower *flower);
|
||||
struct tc_flower *flower,
|
||||
bool terse);
|
||||
void tc_set_policy(const char *policy);
|
||||
|
||||
#endif /* tc.h */
|
||||
|
Reference in New Issue
Block a user