/linux/drivers/net/netdevsim/ |
H A D | psample.c | 13 #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 D | Makefile | 18 netdevsim-objs += psample.o
|
H A D | netdevsim.h | 337 struct nsim_dev_psample *psample; member
|
/linux/tools/testing/selftests/net/openvswitch/ |
H A D | openvswitch.sh | 29 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 D | ovs-dpctl.py | 394 ("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 D | psample.sh | 4 # 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 D | Makefile | 17 psample.sh \
|
/linux/net/psample/ |
H A D | Kconfig | 3 # psample packet sampling configuration 6 menuconfig PSAMPLE config 15 be called psample.
|
H A D | Makefile | 3 # Makefile for the psample netlink channel 6 obj-$(CONFIG_PSAMPLE) += psample.o
|
H A D | psample.c | 3 * 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 D | Kconfig | 13 depends on PSAMPLE || !PSAMPLE
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | Kconfig | 57 depends on PSAMPLE || PSAMPLE=n
|
H A D | spectrum_trap.c | 284 /* 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 D | ovs_flow.yaml | 731 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 D | Kconfig | 115 depends on PSAMPLE=y || PSAMPLE=n || MLX5_CORE=m
|
/linux/include/net/tc_act/ |
H A D | tc_sample.h | 7 #include <net/psample.h>
|
/linux/include/net/ |
H A D | psample.h | 5 #include <uapi/linux/psample.h>
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | sample.c | 4 #include <net/psample.h>
|
/linux/include/uapi/linux/ |
H A D | psample.h | 68 #define PSAMPLE_GENL_NAME "psample"
|
H A D | openvswitch.h | 929 * 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 D | tc_sample.sh | 57 require_command psample 214 psample &> $CAPTURE_FILE &
|
/linux/net/sched/ |
H A D | Kconfig | 731 select PSAMPLE 735 them using the psample module.
|
H A D | act_sample.c | 21 #include <net/psample.h>
|
/linux/net/ |
H A D | Kconfig | 440 source "net/psample/Kconfig"
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | sample.c | 5 #include <net/psample.h>
|