1# $FreeBSD$ 2.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_en 3 4KMOD=mlx5en 5SRCS= \ 6mlx5_en_dim.c \ 7mlx5_en_ethtool.c \ 8mlx5_en_main.c \ 9mlx5_en_tx.c \ 10mlx5_en_flow_table.c \ 11mlx5_en_rx.c \ 12mlx5_en_rl.c \ 13mlx5_en_txrx.c \ 14device_if.h bus_if.h vnode_if.h pci_if.h \ 15opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h 16 17.if defined(HAVE_PER_CQ_EVENT_PACKET) 18CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET 19.endif 20 21.if defined(HAVE_TCP_LRO_RX) 22CFLAGS+= -DHAVE_TCP_LRO_RX 23.endif 24 25.if defined(CONFIG_BUILD_FPGA) 26CFLAGS+= -DCONFIG_MLX5_FPGA 27.endif 28 29CFLAGS+= -I${SRCTOP}/sys/ofed/include 30CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include 31 32.include <bsd.kmod.mk> 33 34CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 35