Lines Matching refs:psample
35 psample psample: Sampling packets with psample"
446 # psample test
447 # - use psample to observe packets
452 ovs_add_dp "test_psample" psample -V 2:1 || return 1
455 ovs_add_netns_and_veths "test_psample" "psample" \
457 ovs_add_netns_and_veths "test_psample" "psample" \
460 # Check if psample actions can be configured.
461 ovs_add_flow "test_psample" psample \
462 'in_port(1),eth(),eth_type(0x0806),arp()' 'psample(group=1)' &> /dev/null
464 info "no support for psample - skipping"
469 ovs_del_flows "test_psample" psample
476 "cookie to large"*"psample(group=1,cookie=1615141312111009080706050403020100)" \
477 "no group with cookie"*"psample(cookie=abcd)" \
478 "no group"*"psample()";
481 ovs_test_flow_fails "test_psample" psample $min_key $2
489 ovs_del_flows "test_psample" psample
491 ovs_add_flow "test_psample" psample \
493 ovs_add_flow "test_psample" psample \
497 ovs_add_flow "test_psample" psample \
499 "trunc(14),psample(group=1,cookie=c0ffee),2"
502 # psample and an upcall emulating simultaneous local sampling and
509 ovs_add_flow "test_psample" psample \
511 "sample(sample=100%,actions(psample(group=2,cookie=eeff0c),userspace(pid=${nlpid},userdata=eeff0c))),1"
513 # Record psample data.
514 ovs_spawn_daemon "test_psample" python3 $ovs_base/ovs-dpctl.py psample-events
515 ovs_wait grep -q "listening for psample events" ${ovs_dir}/stdout
520 # We should have received one userspace action upcall and 2 psample packets.