Home
last modified time | relevance | path

Searched full:psample (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/net/netdevsim/
H A Dpsample.c13 #include <net/psample.h>
81 static void nsim_dev_psample_md_prepare(const struct nsim_dev_psample *psample, in nsim_dev_psample_md_prepare() argument
85 md->trunc_size = psample->trunc_size ? psample->trunc_size : len; in nsim_dev_psample_md_prepare()
86 md->in_ifindex = psample->in_ifindex; in nsim_dev_psample_md_prepare()
87 md->out_ifindex = psample->out_ifindex; in nsim_dev_psample_md_prepare()
89 if (psample->out_tc != NSIM_PSAMPLE_INVALID_TC) { in nsim_dev_psample_md_prepare()
90 md->out_tc = psample->out_tc; in nsim_dev_psample_md_prepare()
94 if (psample->out_tc_occ_max) { in nsim_dev_psample_md_prepare()
98 md->out_tc_occ = out_tc_occ & (psample->out_tc_occ_max - 1); in nsim_dev_psample_md_prepare()
102 if (psample->latency_max) { in nsim_dev_psample_md_prepare()
[all …]
H A Dnetdevsim.h369 struct nsim_dev_psample *psample; member
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dpsample.sh4 # This test is for checking the psample module. It makes use of netdevsim
18 PSAMPLE_DIR=/sys/kernel/debug/netdevsim/$DEV/psample/
28 require_command psample
34 timeout 2 ip netns exec testns1 psample &> $CAPTURE_FILE
63 log_test "psample enable / disable"
90 log_test "psample group number"
148 log_test "psample metadata"
H A DMakefile16 psample.sh \
/linux/net/psample/
H A DKconfig3 # psample packet sampling configuration
6 menuconfig PSAMPLE config
15 be called psample.
H A DMakefile3 # Makefile for the psample netlink channel
6 obj-$(CONFIG_PSAMPLE) += psample.o
H A Dpsample.c3 * net/psample/psample.c - Netlink channel for packet sampling
16 #include <net/psample.h>
515 pr_err_ratelimited("Could not create psample log message\n"); in psample_sample_packet()
/linux/tools/testing/selftests/net/openvswitch/
H A Dopenvswitch.sh37 psample psample: Sampling packets with psample"
703 # psample test
704 # - use psample to observe packets
709 ovs_add_dp "test_psample" psample -V 2:1 || return 1
712 ovs_add_netns_and_veths "test_psample" "psample" \
714 ovs_add_netns_and_veths "test_psample" "psample" \
717 # Check if psample actions can be configured.
718 ovs_add_flow "test_psample" psample \
719 'in_port(1),eth(),eth_type(0x0806),arp()' 'psample(group=1)' &> /dev/null
721 info "no support for psample - skipping"
[all …]
H A Dovs-dpctl.py393 ("OVS_ACTION_ATTR_PSAMPLE", "psample"),
406 class psample(nla): class in ovsactions
423 return "psample(%s)" % args
947 elif parse_starts_block(actstr, "psample(", False):
948 psampleact = self.psample()
949 actstr = psampleact.parse(actstr[len("psample(") : ])
2867 genl_family = "psample"
2872 print("listening for psample events", flush=True)
3013 subparsers.add_parser("psample-events")
3029 if args.subcommand == "psample-events":
/linux/net/openvswitch/
H A DKconfig13 depends on PSAMPLE || !PSAMPLE
H A Dactions.c30 #include <net/psample.h>
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A DKconfig115 depends on PSAMPLE=y || PSAMPLE=n || MLX5_CORE=m
/linux/include/net/tc_act/
H A Dtc_sample.h7 #include <net/psample.h>
/linux/include/net/
H A Dpsample.h5 #include <uapi/linux/psample.h>
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dsample.c4 #include <net/psample.h>
/linux/include/uapi/linux/
H A Dpsample.h68 #define PSAMPLE_GENL_NAME "psample"
H A Dopenvswitch.h1007 * Sends the packet to the psample multicast group with the specified group and
1079 * via psample.
/linux/net/sched/
H A Dact_sample.c21 #include <net/psample.h>
H A DKconfig755 select PSAMPLE
759 them using the psample module.
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_trap.c284 /* The psample module expects skb->data to point to the start of the in mlxsw_sp_rx_sample_listener()
334 /* The psample module expects skb->data to point to the start of the in mlxsw_sp_rx_sample_tx_listener()
370 /* The psample module expects skb->data to point to the start of the in mlxsw_sp_rx_sample_acl_listener()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c5 #include <net/psample.h>
/linux/
H A DMAINTAINERS21752 PSAMPLE PACKET SAMPLING SUPPORT
21755 F: include/net/psample.h
21756 F: include/uapi/linux/psample.h
21757 F: net/psample