2015-11-10 12:20:22 +00:00
|
|
|
# $FreeBSD$
|
2017-03-04 10:10:17 +00:00
|
|
|
.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_en
|
2015-11-10 12:20:22 +00:00
|
|
|
|
|
|
|
KMOD=mlx5en
|
|
|
|
SRCS= \
|
2019-05-08 10:23:33 +00:00
|
|
|
mlx5_en_dim.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_en_ethtool.c \
|
|
|
|
mlx5_en_main.c \
|
|
|
|
mlx5_en_tx.c \
|
|
|
|
mlx5_en_flow_table.c \
|
2019-12-06 15:36:32 +00:00
|
|
|
mlx5_en_hw_tls.c \
|
2022-02-01 15:20:16 +00:00
|
|
|
mlx5_en_hw_tls_rx.c \
|
2022-02-01 15:20:09 +00:00
|
|
|
mlx5_en_iq.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_en_rx.c \
|
2018-05-29 14:04:57 +00:00
|
|
|
mlx5_en_rl.c \
|
2015-11-10 12:20:22 +00:00
|
|
|
mlx5_en_txrx.c \
|
2020-03-20 21:06:58 +00:00
|
|
|
mlx5_en_port_buffer.c
|
|
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
|
|
SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h opt_kern_tls.h
|
2015-11-10 12:20:22 +00:00
|
|
|
|
|
|
|
.if defined(HAVE_PER_CQ_EVENT_PACKET)
|
|
|
|
CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET
|
|
|
|
.endif
|
|
|
|
|
2016-08-08 16:22:16 +00:00
|
|
|
.if defined(HAVE_TCP_LRO_RX)
|
|
|
|
CFLAGS+= -DHAVE_TCP_LRO_RX
|
|
|
|
.endif
|
|
|
|
|
2018-12-05 14:11:20 +00:00
|
|
|
.if defined(CONFIG_BUILD_FPGA)
|
|
|
|
CFLAGS+= -DCONFIG_MLX5_FPGA
|
|
|
|
.endif
|
|
|
|
|
2017-03-04 10:10:17 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include
|
2021-06-16 13:02:00 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
|
2022-09-23 21:18:45 +00:00
|
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
2015-11-10 12:20:22 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|