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_hw_tls.c \ 12mlx5_en_hw_tls_rx.c \ 13mlx5_en_iq.c \ 14mlx5_en_rx.c \ 15mlx5_en_rl.c \ 16mlx5_en_txrx.c \ 17mlx5_en_port_buffer.c 18SRCS+= ${LINUXKPI_GENSRCS} 19SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h opt_kern_tls.h 20 21.if defined(HAVE_PER_CQ_EVENT_PACKET) 22CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET 23.endif 24 25.if defined(HAVE_TCP_LRO_RX) 26CFLAGS+= -DHAVE_TCP_LRO_RX 27.endif 28 29.if defined(CONFIG_BUILD_FPGA) 30CFLAGS+= -DCONFIG_MLX5_FPGA 31.endif 32 33CFLAGS+= -I${SRCTOP}/sys/ofed/include 34CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi 35CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include 36 37.include <bsd.kmod.mk> 38 39CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 40