1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2a6f68034SDavid S. Miller# Makefile for net selftests 3a6f68034SDavid S. Miller 43c2c3c16SDaniel BorkmannCFLAGS = -Wall -Wl,--no-as-needed -O2 -g 5a6f68034SDavid S. MillerCFLAGS += -I../../../../usr/include/ 6a6f68034SDavid S. Miller 7b69d540dSFlorian WestphalTEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh \ 8509e56b3SMahesh Bandewar rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh 902c7f38bSPeter OskolkovTEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh ip_defrag.sh 1075f0139fSWillem de BruijnTEST_PROGS += udpgso_bench.sh fib_rule_tests.sh msg_zerocopy.sh psock_snd.sh 116254e5c6SPeter OskolkovTEST_PROGS += udpgro_bench.sh udpgro.sh test_vxlan_under_vrf.sh reuseport_addr_any.sh 123fb321fdSWillem de BruijnTEST_PROGS += test_vxlan_fdb_changelink.sh so_txtime.sh ipv6_flowlabel.sh 133c28d99fSFrancesco RuggeriTEST_PROGS += tcp_fastopen_backup_key.sh fcnal-test.sh l2tp.sh traceroute.sh 14919a23e9SHangbin LiuTEST_PROGS += fin_ack_lat.sh fib_nexthop_multiprefix.sh fib_nexthops.sh 15919a23e9SHangbin LiuTEST_PROGS += altnames.sh icmp_redirect.sh ip6_gre_headroom.sh 16919a23e9SHangbin LiuTEST_PROGS += route_localnet.sh 177f204a7dSKuniyuki IwashimaTEST_PROGS += reuseaddr_ports_exhausted.sh 185ef5c90eSJian YangTEST_PROGS += txtimestamp.sh 193f251d74SDavid AhernTEST_PROGS += vrf-xfrm-tests.sh 200558c396StannerloveTEST_PROGS += rxtimestamp.sh 21f3348a82SDanielle RatsonTEST_PROGS += devlink_port_split.py 22b7cc6d3cSIdo SchimmelTEST_PROGS += drop_monitor_tests.sh 231a017276SMichael JeansonTEST_PROGS += vrf_route_leaking.sh 24bbbc7aa4SGuillaume NaultTEST_PROGS += bareudp.sh 25*9b0b7837SSeth David SchoenTEST_PROGS += unicast_extensions.sh 261751eb42SAnders RoxellTEST_PROGS_EXTENDED := in_netns.sh 27acda655fSDavid AhernTEST_GEN_FILES = socket nettest 286254e5c6SPeter OskolkovTEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any 29358be656SWillem de BruijnTEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite 3002c7f38bSPeter OskolkovTEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx ip_defrag 313fb321fdSWillem de BruijnTEST_GEN_FILES += so_txtime ipv6_flowlabel ipv6_flowlabel_mgr 3210fbcdd1SJason BaronTEST_GEN_FILES += tcp_fastopen_backup_key 33af8c8a45SSeongJae ParkTEST_GEN_FILES += fin_ack_lat 345ef5c90eSJian YangTEST_GEN_FILES += reuseaddr_ports_exhausted 355ef5c90eSJian YangTEST_GEN_FILES += hwtstamp_config rxtimestamp timestamping txtimestamp 36bc2652b7SDmitry SafonovTEST_GEN_FILES += ipsec 37e06d79fbSJosef BacikTEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa 387f657d5bSDave WatsonTEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls 395e29a910SMichael Ellerman 40b2d35fa5SAnders RoxellKSFT_KHDR_INSTALL := 1 415e29a910SMichael Ellermaninclude ../lib.mk 425e29a910SMichael Ellerman 43870f193dSFathi Boudra$(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma 443e839363SDmitry Safonov$(OUTPUT)/tcp_mmap: LDLIBS += -lpthread 453e839363SDmitry Safonov$(OUTPUT)/tcp_inq: LDLIBS += -lpthread 46