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*c08e8baeSTaehee YooTEST_PROGS += amt.sh 269b0b7837SSeth David SchoenTEST_PROGS += unicast_extensions.sh 27a062260aSPaolo AbeniTEST_PROGS += udpgro_fwd.sh 281c3cadbeSPaolo AbeniTEST_PROGS += veth.sh 29968691c7SJustin IurmanTEST_PROGS += ioam6.sh 309af771d2SPaolo AbeniTEST_PROGS += gro.sh 31025efa0aSJakub KicinskiTEST_PROGS += gre_gso.sh 321751eb42SAnders RoxellTEST_PROGS_EXTENDED := in_netns.sh 33acda655fSDavid AhernTEST_GEN_FILES = socket nettest 346254e5c6SPeter OskolkovTEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any 35358be656SWillem de BruijnTEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite 3602c7f38bSPeter OskolkovTEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx ip_defrag 37ae24bab2SLorenz BauerTEST_GEN_FILES += so_txtime ipv6_flowlabel ipv6_flowlabel_mgr so_netns_cookie 3810fbcdd1SJason BaronTEST_GEN_FILES += tcp_fastopen_backup_key 39af8c8a45SSeongJae ParkTEST_GEN_FILES += fin_ack_lat 405ef5c90eSJian YangTEST_GEN_FILES += reuseaddr_ports_exhausted 415ef5c90eSJian YangTEST_GEN_FILES += hwtstamp_config rxtimestamp timestamping txtimestamp 42bc2652b7SDmitry SafonovTEST_GEN_FILES += ipsec 43968691c7SJustin IurmanTEST_GEN_FILES += ioam6_parser 447d157501SCoco LiTEST_GEN_FILES += gro 45e06d79fbSJosef BacikTEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa 467f657d5bSDave WatsonTEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls 475ebfb4ccSCoco LiTEST_GEN_FILES += toeplitz 485e29a910SMichael Ellerman 49b881d089SPo-Hsu LinTEST_FILES := settings 50b881d089SPo-Hsu Lin 51b2d35fa5SAnders RoxellKSFT_KHDR_INSTALL := 1 525e29a910SMichael Ellermaninclude ../lib.mk 535e29a910SMichael Ellerman 54870f193dSFathi Boudra$(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma 553e839363SDmitry Safonov$(OUTPUT)/tcp_mmap: LDLIBS += -lpthread 563e839363SDmitry Safonov$(OUTPUT)/tcp_inq: LDLIBS += -lpthread 57