Home
last modified time | relevance | path

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

12

/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 DMakefile18 netdevsim-objs += psample.o
H A Dnetdevsim.h337 struct nsim_dev_psample *psample; member
/linux/tools/testing/selftests/net/openvswitch/
H A Dopenvswitch.sh29 psample psample: Sampling packets with psample"
245 # psample test
246 # - use psample to observe packets
251 ovs_add_dp "test_psample" psample -V 2:1 || return 1
254 ovs_add_netns_and_veths "test_psample" "psample" \
256 ovs_add_netns_and_veths "test_psample" "psample" \
259 # Check if psample actions can be configured.
260 ovs_add_flow "test_psample" psample \
261 'in_port(1),eth(),eth_type(0x0806),arp()' 'psample(group=1)' &> /dev/null
263 info "no support for psample - skipping"
[all …]
H A Dovs-dpctl.py394 ("OVS_ACTION_ATTR_PSAMPLE", "psample"),
397 class psample(nla): class in ovsactions
414 return "psample(%s)" % args
856 elif parse_starts_block(actstr, "psample(", False):
857 psampleact = self.psample()
858 actstr = psampleact.parse(actstr[len("psample(") : ])
2518 genl_family = "psample"
2523 print("listening for psample events", flush=True)
2671 subparsers.add_parser("psample-events")
2687 if args.subcommand == "psample-events":
/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 DMakefile17 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>
513 pr_err_ratelimited("Could not create psample log message\n"); in psample_sample_packet()
/linux/net/openvswitch/
H A DKconfig13 depends on PSAMPLE || !PSAMPLE
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A DKconfig57 depends on PSAMPLE || PSAMPLE=n
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/Documentation/netlink/specs/
H A Dovs_flow.yaml731 name: psample
733 nested-attributes: psample-attrs
735 Sends a packet sample to psample for external observation.
948 name: psample-attrs
949 enum-name: ovs-psample-attr
950 name-prefix: ovs-psample-attr-
/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.h929 * Sends the packet to the psample multicast group with the specified group and
996 * via psample.
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_sample.sh57 require_command psample
214 psample &> $CAPTURE_FILE &
/linux/net/sched/
H A DKconfig731 select PSAMPLE
735 them using the psample module.
H A Dact_sample.c21 #include <net/psample.h>
/linux/net/
H A DKconfig440 source "net/psample/Kconfig"
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c5 #include <net/psample.h>

12