/samples/pktgen/ |
D | pktgen_sample04_many_flows.sh | 51 dev=${DEV}@${thread} 55 pg_thread $thread "add_device" $dev 58 pg_set $dev "flag QUEUE_MAP_CPU" 59 pg_set $dev "count $COUNT" 60 pg_set $dev "clone_skb $CLONE_SKB" 61 pg_set $dev "pkt_size $PKT_SIZE" 62 pg_set $dev "delay $DELAY" 63 pg_set $dev "flag NO_TIMESTAMP" 66 pg_set $dev "dst_mac $DST_MAC" 67 pg_set $dev "dst${IP6}_min $DST_MIN" [all …]
|
D | pktgen_sample05_flow_per_thread.sh | 41 dev=${DEV}@${thread} 45 pg_thread $thread "add_device" $dev 48 pg_set $dev "flag QUEUE_MAP_CPU" 49 pg_set $dev "count $COUNT" 50 pg_set $dev "clone_skb $CLONE_SKB" 51 pg_set $dev "pkt_size $PKT_SIZE" 52 pg_set $dev "delay $DELAY" 53 pg_set $dev "flag NO_TIMESTAMP" 56 pg_set $dev "dst_mac $DST_MAC" 57 pg_set $dev "dst${IP6}_min $DST_MIN" [all …]
|
D | pktgen_sample02_multiqueue.sh | 47 dev=${DEV}@${thread} 51 pg_thread $thread "add_device" $dev 55 pg_set $dev "flag QUEUE_MAP_CPU" 58 pg_set $dev "count $COUNT" 59 pg_set $dev "clone_skb $CLONE_SKB" 60 pg_set $dev "pkt_size $PKT_SIZE" 61 pg_set $dev "delay $DELAY" 64 pg_set $dev "flag NO_TIMESTAMP" 67 pg_set $dev "dst_mac $DST_MAC" 68 pg_set $dev "dst${IP6}_min $DST_MIN" [all …]
|
D | pktgen_sample03_burst_single_flow.sh | 50 dev=${DEV}@${thread} 54 pg_thread $thread "add_device" $dev 57 pg_set $dev "flag QUEUE_MAP_CPU" 58 pg_set $dev "count $COUNT" 59 pg_set $dev "clone_skb $CLONE_SKB" 60 pg_set $dev "pkt_size $PKT_SIZE" 61 pg_set $dev "delay $DELAY" 62 pg_set $dev "flag NO_TIMESTAMP" 65 pg_set $dev "dst_mac $DST_MAC" 66 pg_set $dev "dst${IP6}_min $DST_MIN" [all …]
|
D | pktgen_sample06_numa_awared_queue_irq_affinity.sh | 56 dev=${DEV}@${thread} 62 pg_thread $thread "add_device" $dev 67 pg_set $dev "queue_map_min $queue_num" 68 pg_set $dev "queue_map_max $queue_num" 72 pg_set $dev "flag QUEUE_MAP_CPU" 75 pg_set $dev "count $COUNT" 76 pg_set $dev "clone_skb $CLONE_SKB" 77 pg_set $dev "pkt_size $PKT_SIZE" 78 pg_set $dev "delay $DELAY" 81 pg_set $dev "flag NO_TIMESTAMP" [all …]
|
D | pktgen_bench_xmit_mode_netif_receive.sh | 60 dev=${DEV}@${thread} 64 pg_thread $thread "add_device" $dev 67 pg_set $dev "flag QUEUE_MAP_CPU" 68 pg_set $dev "count $COUNT" 69 pg_set $dev "pkt_size $PKT_SIZE" 70 pg_set $dev "delay $DELAY" 71 pg_set $dev "flag NO_TIMESTAMP" 74 pg_set $dev "dst_mac $DST_MAC" 75 pg_set $dev "dst${IP6}_min $DST_MIN" 76 pg_set $dev "dst${IP6}_max $DST_MAX" [all …]
|
D | pktgen_bench_xmit_mode_queue_xmit.sh | 43 dev=${DEV}@${thread} 47 pg_thread $thread "add_device" $dev 50 pg_set $dev "flag QUEUE_MAP_CPU" 51 pg_set $dev "count $COUNT" 52 pg_set $dev "pkt_size $PKT_SIZE" 53 pg_set $dev "delay $DELAY" 54 pg_set $dev "flag NO_TIMESTAMP" 57 pg_set $dev "dst_mac $DST_MAC" 58 pg_set $dev "dst${IP6}_min $DST_MIN" 59 pg_set $dev "dst${IP6}_max $DST_MAX" [all …]
|
D | pktgen_sample01_simple.sh | 75 [ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM"
|
/samples/bpf/ |
D | tc_l2_redirect.sh | 20 $IP link set dev ve1 up 21 $IP link set dev ve2 up 22 $IP link set dev ve1 mtu 1500 23 $IP link set dev ve2 mtu 1500 24 $IP link set dev vens1 netns ns1 25 $IP link set dev vens2 netns ns2 27 $IP -n ns1 link set dev lo up 28 $IP -n ns1 link set dev vens1 up 29 $IP -n ns1 addr add 10.1.1.101/24 dev vens1 30 $IP -n ns1 addr add 2401:db01::65/64 dev vens1 nodad [all …]
|
D | lwt_len_hist.sh | 13 ip route del 192.168.253.2/32 dev $VETH0 2> /dev/null 14 ip link del $VETH0 2> /dev/null 15 ip link del $VETH1 2> /dev/null 17 ip netns delete $NS1 2> /dev/null 24 ip link set dev $VETH0 up 25 ip addr add 192.168.253.1/24 dev $VETH0 27 ip netns exec $NS1 ip link set dev $VETH1 up 28 ip netns exec $NS1 ip addr add 192.168.253.2/24 dev $VETH1 32 cp /dev/null ${TRACE_ROOT}/trace 33 ip route add 192.168.253.2/32 encap bpf out obj lwt_len_hist_kern.o section len_hist dev $VETH0
|
D | xdp2skb_meta.sh | 82 --long verbose,flush,help,list,dev:,dry-run -- "$@") 92 -d | --dev ) # device 148 call_tc filter show dev $device ingress 156 call_ip link show dev $device | grep --color=auto xdp 164 call_tc_allow_fail filter del dev $device ingress 165 call_tc_allow_fail qdisc del dev $device clsact 173 call_ip link set dev $device xdp off 184 call_tc_allow_fail qdisc del dev $device clsact 2> /dev/null 185 call_tc qdisc add dev $device clsact 188 call_tc filter add dev $device ingress \ [all …]
|
D | test_lwt_bpf.sh | 39 rm test_lwt_bpf.o 2> /dev/null 40 ip link del $VETH0 2> /dev/null 41 ip link del $VETH1 2> /dev/null 42 ip link del $VETH2 2> /dev/null 43 ip link del $VETH3 2> /dev/null 45 ip netns delete $NS1 2> /dev/null 46 ip netns delete $NS2 2> /dev/null 53 ip link set dev $2 up 54 ip addr add $4/24 dev $2 56 ip netns exec $1 ip link set dev $3 up [all …]
|
D | test_cgrp2_tc.sh | 75 $IP link set dev $HOST_IFC up || return $? 79 $IP link set dev $NS_IFC netns ns || return $? 80 $IP -n $NS link set dev $NS_IFC up || return $? 82 $TC qdisc add dev $HOST_IFC clsact || return $? 83 $TC filter add dev $HOST_IFC egress bpf da obj $BPF_PROG sec $BPF_SECTION || return $? 102 local dropped=$($TC -s qdisc show dev $HOST_IFC | tail -3 | \ 126 $IP link show dev $HOST_IFC 127 $IP -6 a show dev $HOST_IFC 128 $TC -s qdisc show dev $HOST_IFC 131 $IP -n $NS link show dev $NS_IFC [all …]
|
D | test_cls_bpf.sh | 7 local dropped=`tc -s qdisc show dev $IFC | tail -3 | awk '/drop/{print $7}'` 17 tc qdisc add dev $IFC clsact 18 tc filter add dev $IFC ingress bpf da obj $1 sec $2 26 tc qdisc del dev $IFC clsact 38 ip link del dev $IFC
|
D | tracex1_kern.c | 33 struct net_device *dev; in bpf_prog1() local 39 dev = _(skb->dev); in bpf_prog1() 42 bpf_probe_read_kernel(devname, sizeof(devname), dev->name); in bpf_prog1()
|
D | test_cgrp2_sock2.sh | 12 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth0 13 ip netns exec at_ns0 ip addr add 2401:db00::1/64 dev veth0 nodad 14 ip netns exec at_ns0 ip link set dev veth0 up 15 ip addr add 172.16.1.101/24 dev veth0b 16 ip addr add 2401:db00::2/64 dev veth0b nodad 28 if mount | grep $BPFFS > /dev/null; then 49 cleanup 2>/dev/null
|
D | do_hbm_test.sh | 96 if mount | grep $BPFFS > /dev/null; then 239 tc qdisc del dev lo root > /dev/null 2>&1 240 tc qdisc add dev lo root netem delay $netem\ms > /dev/null 2>&1 242 tc qdisc del dev eth0 root > /dev/null 2>&1 243 tc qdisc add dev eth0 root $qdisc > /dev/null 2>&1 262 ( ./netserver > /dev/null 2>&1) & 344 (iperf3 -s -p $port -1 > /dev/null 2>&1) & 367 (iperf3 -s -p $port -1 > /dev/null 2>&1) & 411 tc qdisc del dev lo root > /dev/null 2>&1 414 tc qdisc del dev eth0 root > /dev/null 2>&1
|
D | xdp_sample.bpf.c | 96 int BPF_PROG(tp_xdp_redirect_err, const struct net_device *dev, in BPF_PROG() argument 100 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG() 104 int BPF_PROG(tp_xdp_redirect_map_err, const struct net_device *dev, in BPF_PROG() argument 108 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG() 112 int BPF_PROG(tp_xdp_redirect, const struct net_device *dev, in BPF_PROG() argument 116 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG() 120 int BPF_PROG(tp_xdp_redirect_map, const struct net_device *dev, in BPF_PROG() argument 124 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG() 181 int BPF_PROG(tp_xdp_exception, const struct net_device *dev, in BPF_PROG() argument 188 if (!IN_SET(from_match, dev->ifindex)) in BPF_PROG() [all …]
|
D | test_cgrp2_sock.sh | 77 ip li add cgrp2_sock type dummy 2>/dev/null 86 cleanup 2>/dev/null
|
D | test_override_return.sh | 5 dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
|
/samples/rpmsg/ |
D | rpmsg_client_sample.c | 29 struct instance_data *idata = dev_get_drvdata(&rpdev->dev); in rpmsg_sample_cb() 31 dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n", in rpmsg_sample_cb() 39 dev_info(&rpdev->dev, "goodbye!\n"); in rpmsg_sample_cb() 46 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_cb() 56 dev_info(&rpdev->dev, "new channel: 0x%x -> 0x%x!\n", in rpmsg_sample_probe() 59 idata = devm_kzalloc(&rpdev->dev, sizeof(*idata), GFP_KERNEL); in rpmsg_sample_probe() 63 dev_set_drvdata(&rpdev->dev, idata); in rpmsg_sample_probe() 68 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_probe() 77 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); in rpmsg_sample_remove()
|
/samples/vfio-mdev/ |
D | mbochs.c | 242 struct device *dev = mdev_dev(mdev_state->mdev); in mbochs_check_framebuffer() local 258 dev_info_ratelimited(dev, "%s: bpp %d not supported\n", in mbochs_check_framebuffer() 274 dev_info_ratelimited(dev, "%s: invalid resolution %dx%d\n", in mbochs_check_framebuffer() 279 dev_info_ratelimited(dev, "%s: framebuffer memory overflow\n", in mbochs_check_framebuffer() 300 struct device *dev = mdev_dev(mdev_state->mdev); in handle_pci_cfg_write() local 314 dev_info(dev, "BAR #%d @ 0x%x\n", in handle_pci_cfg_write() 328 struct device *dev = mdev_dev(mdev_state->mdev); in handle_mmio_write() local 342 dev_dbg(dev, "%s: vbe write %d = %d (%s)\n", in handle_mmio_write() 349 dev_dbg(dev, "%s: @0x%03x, count %d (unhandled)\n", in handle_mmio_write() 358 struct device *dev = mdev_dev(mdev_state->mdev); in handle_mmio_read() local [all …]
|
D | mdpy.c | 145 struct device *dev = mdev_dev(mdev_state->mdev); in handle_pci_cfg_write() local 157 dev_info(dev, "BAR0 @ 0x%x\n", cfg_addr); in handle_pci_cfg_write() 190 dev_info(mdev_state->vdev.dev, in mdev_access() 223 struct device *dev = mdev_dev(mdev); in mdpy_probe() local 234 vfio_init_group_dev(&mdev_state->vdev, &mdev->dev, &mdpy_dev_ops); in mdpy_probe() 249 dev_info(dev, "%s: %s (%dx%d)\n", __func__, type->name, type->width, in mdpy_probe() 264 dev_set_drvdata(&mdev->dev, mdev_state); in mdpy_probe() 278 struct mdev_state *mdev_state = dev_get_drvdata(&mdev->dev); in mdpy_remove() 280 dev_info(&mdev->dev, "%s\n", __func__); in mdpy_remove() 618 resolution_show(struct device *dev, struct device_attribute *attr, in resolution_show() argument [all …]
|
D | mtty.c | 76 struct device dev; member 725 vfio_init_group_dev(&mdev_state->vdev, &mdev->dev, &mtty_dev_ops); in mtty_probe() 747 dev_set_drvdata(&mdev->dev, mdev_state); in mtty_probe() 762 struct mdev_state *mdev_state = dev_get_drvdata(&mdev->dev); in mtty_remove() 1211 sample_mtty_dev_show(struct device *dev, struct device_attribute *attr, in sample_mtty_dev_show() argument 1235 sample_mdev_dev_show(struct device *dev, struct device_attribute *attr, in sample_mdev_dev_show() argument 1238 if (mdev_from_dev(dev)) in sample_mdev_dev_show() 1239 return sprintf(buf, "This is MDEV %s\n", dev_name(dev)); in sample_mdev_dev_show() 1340 static void mtty_device_release(struct device *dev) in mtty_device_release() argument 1342 dev_dbg(dev, "mtty: released\n"); in mtty_device_release() [all …]
|
/samples/v4l/ |
D | v4l2-pci-skeleton.c | 202 dev_err(&skel->pdev->dev, "buffer too small (%lu < %lu)\n", in buffer_prepare() 771 dev_err(&pdev->dev, "no suitable DMA available.\n"); in skeleton_probe() 776 skel = devm_kzalloc(&pdev->dev, sizeof(struct skeleton), GFP_KERNEL); in skeleton_probe() 783 ret = devm_request_irq(&pdev->dev, pdev->irq, in skeleton_probe() 786 dev_err(&pdev->dev, "request_irq failed\n"); in skeleton_probe() 797 ret = v4l2_device_register(&pdev->dev, &skel->v4l2_dev); in skeleton_probe() 824 q->dev = &pdev->dev; in skeleton_probe() 886 dev_info(&pdev->dev, "V4L2 PCI Skeleton Driver loaded\n"); in skeleton_probe()
|