diff options
author | Tianyu Yuan <tianyu.yuan@corigine.com> | 2021-06-09 11:52:09 +0200 |
---|---|---|
committer | Simon Horman <simon.horman@netronome.com> | 2021-07-01 20:44:25 +0200 |
commit | f686957c9667ae962fb8fc003be2a5482e380d75 (patch) | |
tree | 6307dae7805c03f97a325b7ba04afe0689f0914e /tests/ovs-vsctl.at | |
parent | c2567e533f8a83cf705f008c4a6688e457d8f756 (diff) | |
download | openvswitch-f686957c9667ae962fb8fc003be2a5482e380d75.tar.gz |
add test cases for ingress_policing_kpkts parameters
Exercise OVS setting of ingress_policing_kpkts parameters using ovs-vsctl
and verify that the correct values are stored on OVSDB.
Verify the ingress_policing parameters with tc command. Also check offload
and non-offload in tc software datapath based on tc filter type (matchall
and basic). Skip test of pps if OVS or kernel does not support pps rate
limit.
Example invocation:
make check TESTSUITEFLAGS='-k ingress_policing_kpkts'
make check-offloads TESTSUITEFLAGS='-k ingress_policing_kpkts'
Signed-off-by: Tianyu Yuan <tianyu.yuan@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'tests/ovs-vsctl.at')
-rw-r--r-- | tests/ovs-vsctl.at | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at index dccb11741..d6cd2c084 100644 --- a/tests/ovs-vsctl.at +++ b/tests/ovs-vsctl.at @@ -1687,3 +1687,26 @@ ingress_policing_rate: 100 ]) OVS_VSCTL_CLEANUP AT_CLEANUP + +dnl ---------------------------------------------------------------------- +AT_BANNER([set ingress policing(kpkts) test]) + +AT_SETUP([set ingress_policing_kpkts_rate and ingress_policing_kpkts_burst]) +AT_KEYWORDS([ingress_policing_kpkts]) +OVS_VSCTL_SETUP +AT_CHECK([RUN_OVS_VSCTL_TOGETHER( + [add-br a], + [add-port a a1], + [set interface a1 ingress_policing_kpkts_rate=100], + [set interface a1 ingress_policing_kpkts_burst=10], + [--columns=ingress_policing_kpkts_burst,ingress_policing_kpkts_rate list interface a1])], + [0], + [ + + + +ingress_policing_kpkts_burst: 10 +ingress_policing_kpkts_rate: 100 +]) +OVS_VSCTL_CLEANUP +AT_CLEANUP |