-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add test_tcf_chain_and_tcf_proto()
Add a TestTc() test, test_tcf_chain_and_tcf_proto(), for the following helpers: for_each_tcf_chain() for_each_tcf_proto() get_tcf_chain_by_index() get_tcf_proto_by_prio() It depends on Linux kernel CONFIG_NET_SCH_HTB and CONFIG_NET_CLS_U32 configs, and is skipped if kernel is older than v4.13 (commit 5bc1701881e3 ("net: sched: introduce multichain support for filters")). It depends on the TCA_CHAIN netlink message attribute, which pyroute2 does not support yet. Use a customized class tcmsg for now. Signed-off-by: Peilin Ye <[email protected]>
- Loading branch information
Showing
1 changed file
with
128 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters