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