2018-03-20 21:20:35 +02:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2015-10-30 19:52:30 +01:00
|
|
|
# Copyright 2015 6WIND S.A.
|
2018-03-20 21:20:35 +02:00
|
|
|
# Copyright 2015 Mellanox Technologies, Ltd
|
2015-10-30 19:52:30 +01:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
# Library name.
|
|
|
|
LIB = librte_pmd_mlx5.a
|
2018-02-02 17:46:16 +01:00
|
|
|
LIB_GLUE = $(LIB_GLUE_BASE).$(LIB_GLUE_VERSION)
|
|
|
|
LIB_GLUE_BASE = librte_pmd_mlx5_glue.so
|
2019-07-16 14:34:53 +00:00
|
|
|
LIB_GLUE_VERSION = 19.08.0
|
2015-10-30 19:52:30 +01:00
|
|
|
|
|
|
|
# Sources.
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5.c
|
2019-01-09 15:23:18 +01:00
|
|
|
ifneq ($(CONFIG_RTE_IBVERBS_LINK_DLOPEN),y)
|
2018-01-30 16:34:58 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_glue.c
|
|
|
|
endif
|
2015-10-30 19:52:31 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxq.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_txq.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxtx.c
|
2017-10-09 11:47:00 -07:00
|
|
|
ifneq ($(filter y,$(CONFIG_RTE_ARCH_X86_64) \
|
|
|
|
$(CONFIG_RTE_ARCH_ARM64)),)
|
2017-10-09 11:46:55 -07:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxtx_vec.c
|
2017-07-06 11:41:10 -07:00
|
|
|
endif
|
2015-10-30 19:52:33 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_trigger.c
|
2015-10-30 19:52:30 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_ethdev.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_mac.c
|
2015-10-30 19:52:37 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxmode.c
|
2015-10-30 19:52:40 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_vlan.c
|
2015-10-30 19:52:36 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_stats.c
|
2015-10-30 19:55:11 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rss.c
|
2016-06-24 15:17:41 +02:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_mr.c
|
2016-12-29 16:15:17 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_flow.c
|
2018-09-24 23:17:43 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_flow_dv.c
|
2018-09-24 23:17:39 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_flow_verbs.c
|
2019-04-01 14:12:54 -07:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_mp.c
|
2018-04-05 17:07:19 +02:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_nl.c
|
2019-01-03 15:06:37 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_devx_cmds.c
|
2018-01-30 16:34:58 +01:00
|
|
|
|
2019-01-09 15:23:18 +01:00
|
|
|
ifeq ($(CONFIG_RTE_IBVERBS_LINK_DLOPEN),y)
|
2018-01-30 16:34:58 +01:00
|
|
|
INSTALL-$(CONFIG_RTE_LIBRTE_MLX5_PMD)-lib += $(LIB_GLUE)
|
|
|
|
endif
|
2015-10-30 19:52:30 +01:00
|
|
|
|
|
|
|
# Basic CFLAGS.
|
|
|
|
CFLAGS += -O3
|
2017-06-30 19:19:08 +02:00
|
|
|
CFLAGS += -std=c11 -Wall -Wextra
|
2015-10-30 19:52:30 +01:00
|
|
|
CFLAGS += -g
|
|
|
|
CFLAGS += -I.
|
2016-06-20 15:31:46 +02:00
|
|
|
CFLAGS += -D_BSD_SOURCE
|
|
|
|
CFLAGS += -D_DEFAULT_SOURCE
|
2015-10-30 19:52:30 +01:00
|
|
|
CFLAGS += -D_XOPEN_SOURCE=600
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2016-03-03 15:27:13 +01:00
|
|
|
CFLAGS += -Wno-strict-prototypes
|
2019-01-09 15:23:18 +01:00
|
|
|
ifeq ($(CONFIG_RTE_IBVERBS_LINK_DLOPEN),y)
|
2018-01-30 16:34:58 +01:00
|
|
|
CFLAGS += -DMLX5_GLUE='"$(LIB_GLUE)"'
|
2018-02-02 17:46:16 +01:00
|
|
|
CFLAGS += -DMLX5_GLUE_VERSION='"$(LIB_GLUE_VERSION)"'
|
2018-01-30 16:34:58 +01:00
|
|
|
CFLAGS_mlx5_glue.o += -fPIC
|
|
|
|
LDLIBS += -ldl
|
2019-01-09 15:23:19 +01:00
|
|
|
else ifeq ($(CONFIG_RTE_IBVERBS_LINK_STATIC),y)
|
|
|
|
LDLIBS += $(shell $(RTE_SDK)/buildtools/options-ibverbs-static.sh)
|
2018-01-30 16:34:58 +01:00
|
|
|
else
|
2017-09-26 17:38:24 +02:00
|
|
|
LDLIBS += -libverbs -lmlx5
|
2018-01-30 16:34:58 +01:00
|
|
|
endif
|
2017-10-12 18:04:21 +02:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
2017-10-26 12:06:08 +02:00
|
|
|
LDLIBS += -lrte_bus_pci
|
2015-10-30 19:52:30 +01:00
|
|
|
|
|
|
|
# A few warnings cannot be avoided in external headers.
|
|
|
|
CFLAGS += -Wno-error=cast-qual
|
|
|
|
|
|
|
|
EXPORT_MAP := rte_pmd_mlx5_version.map
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
2018-04-11 13:30:03 +01:00
|
|
|
# memseg walk is not part of stable API
|
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
|
|
|
|
2015-10-30 19:52:30 +01:00
|
|
|
# DEBUG which is usually provided on the command-line may enable
|
|
|
|
# CONFIG_RTE_LIBRTE_MLX5_DEBUG.
|
|
|
|
ifeq ($(DEBUG),1)
|
|
|
|
CONFIG_RTE_LIBRTE_MLX5_DEBUG := y
|
|
|
|
endif
|
|
|
|
|
|
|
|
# User-defined CFLAGS.
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DEBUG),y)
|
|
|
|
CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
|
|
|
|
else
|
|
|
|
CFLAGS += -DNDEBUG -UPEDANTIC
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|
|
|
|
|
|
|
|
# Generate and clean-up mlx5_autoconf.h.
|
|
|
|
|
|
|
|
export CC CFLAGS CPPFLAGS EXTRA_CFLAGS EXTRA_CPPFLAGS
|
|
|
|
export AUTO_CONFIG_CFLAGS = -Wno-error
|
|
|
|
|
|
|
|
ifndef V
|
|
|
|
AUTOCONF_OUTPUT := >/dev/null
|
|
|
|
endif
|
|
|
|
|
2016-06-10 17:09:32 +02:00
|
|
|
mlx5_autoconf.h.new: FORCE
|
|
|
|
|
2016-12-15 22:46:47 +01:00
|
|
|
mlx5_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config-h.sh
|
2015-10-30 19:52:30 +01:00
|
|
|
$Q $(RM) -f -- '$@'
|
2018-05-09 04:13:49 -07:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_DEVICE_STRIDING_RQ_SUPPORT \
|
|
|
|
infiniband/mlx5dv.h \
|
2018-06-26 05:39:24 -07:00
|
|
|
enum MLX5DV_CQE_RES_FORMAT_CSUM_STRIDX \
|
2018-05-09 04:13:49 -07:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2016-03-17 16:38:56 +01:00
|
|
|
$Q sh -- '$<' '$@' \
|
2018-02-25 09:28:37 +02:00
|
|
|
HAVE_IBV_DEVICE_TUNNEL_SUPPORT \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
enum MLX5DV_CONTEXT_MASK_TUNNEL_OFFLOADS \
|
2016-03-17 16:38:56 +01:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-05-15 11:07:14 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_DEVICE_MPLS_SUPPORT \
|
|
|
|
infiniband/verbs.h \
|
|
|
|
enum IBV_FLOW_SPEC_MPLS \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-01-15 09:38:59 -08:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_WQ_FLAGS_PCI_WRITE_END_PADDING \
|
|
|
|
infiniband/verbs.h \
|
|
|
|
enum IBV_WQ_FLAGS_PCI_WRITE_END_PADDING \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2016-03-17 16:38:57 +01:00
|
|
|
$Q sh -- '$<' '$@' \
|
2017-09-26 17:38:24 +02:00
|
|
|
HAVE_IBV_WQ_FLAG_RX_END_PADDING \
|
|
|
|
infiniband/verbs.h \
|
|
|
|
enum IBV_WQ_FLAG_RX_END_PADDING \
|
2016-03-17 16:38:58 +01:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-04-08 20:41:20 +08:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_MLX5_MOD_SWP \
|
|
|
|
infiniband/mlx5dv.h \
|
2018-05-24 08:28:59 +03:00
|
|
|
type 'struct mlx5dv_sw_parsing_caps' \
|
2018-04-08 20:41:20 +08:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2016-09-21 15:48:12 +02:00
|
|
|
$Q sh -- '$<' '$@' \
|
2017-09-26 17:38:24 +02:00
|
|
|
HAVE_IBV_MLX5_MOD_MPW \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
enum MLX5DV_CONTEXT_FLAGS_MPW_ALLOWED \
|
2016-09-21 15:48:12 +02:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2017-10-09 11:46:59 -07:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_MLX5_MOD_CQE_128B_COMP \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
enum MLX5DV_CONTEXT_FLAGS_CQE_128B_COMP \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-10-25 06:24:00 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_MLX5_MOD_CQE_128B_PAD \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
enum MLX5DV_CQ_INIT_ATTR_FLAGS_CQE_PAD \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-09-24 23:17:43 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_FLOW_DV_SUPPORT \
|
|
|
|
infiniband/mlx5dv.h \
|
2018-11-01 11:37:27 +02:00
|
|
|
func mlx5dv_create_flow_action_packet_reformat \
|
2018-09-24 23:17:43 +00:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-04-04 09:54:07 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_MLX5DV_DR \
|
|
|
|
infiniband/mlx5dv.h \
|
2019-05-01 20:40:45 +00:00
|
|
|
enum MLX5DV_DR_DOMAIN_TYPE_NIC_RX \
|
2019-04-04 09:54:07 +00:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-04-18 13:16:01 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_MLX5DV_DR_ESWITCH \
|
|
|
|
infiniband/mlx5dv.h \
|
2019-05-01 20:40:45 +00:00
|
|
|
enum MLX5DV_DR_DOMAIN_TYPE_FDB \
|
2019-04-18 13:16:01 +00:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-01-03 15:06:36 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_DEVX_OBJ \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
func mlx5dv_devx_obj_create \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-01-03 15:06:37 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_FLOW_DEVX_COUNTERS \
|
|
|
|
infiniband/mlx5dv.h \
|
2019-04-02 07:04:06 +00:00
|
|
|
enum MLX5DV_FLOW_ACTION_COUNTERS_DEVX \
|
2019-01-03 15:06:37 +00:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-07-16 14:34:55 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_DEVX_ASYNC \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
func mlx5dv_devx_obj_query_async \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-07-22 14:52:02 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_MLX5DV_DR_ACTION_DEST_DEVX_TIR \
|
|
|
|
infiniband/mlx5dv.h \
|
|
|
|
func mlx5dv_dr_action_create_dest_devx_tir \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2016-10-26 11:44:02 +02:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_ETHTOOL_LINK_MODE_25G \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
enum ETHTOOL_LINK_MODE_25000baseCR_Full_BIT \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_ETHTOOL_LINK_MODE_50G \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
enum ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_ETHTOOL_LINK_MODE_100G \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
enum ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2017-10-10 16:22:54 +02:00
|
|
|
$Q sh -- '$<' '$@' \
|
2018-10-23 10:04:11 +00:00
|
|
|
HAVE_IBV_DEVICE_COUNTERS_SET_V42 \
|
2017-10-10 16:22:54 +02:00
|
|
|
infiniband/verbs.h \
|
2018-07-12 09:40:32 +03:00
|
|
|
type 'struct ibv_counter_set_init_attr' \
|
2017-10-10 16:22:54 +02:00
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-10-23 10:04:12 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IBV_DEVICE_COUNTERS_SET_V45 \
|
|
|
|
infiniband/verbs.h \
|
|
|
|
type 'struct ibv_counters_init_attr' \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-07-10 18:04:52 +02:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NL_NLDEV \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NL_NLDEV \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NLDEV_CMD_GET \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NLDEV_CMD_GET \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NLDEV_CMD_PORT_GET \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NLDEV_CMD_PORT_GET \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NLDEV_ATTR_DEV_INDEX \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NLDEV_ATTR_DEV_INDEX \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NLDEV_ATTR_DEV_NAME \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NLDEV_ATTR_DEV_NAME \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NLDEV_ATTR_PORT_INDEX \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NLDEV_ATTR_PORT_INDEX \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_RDMA_NLDEV_ATTR_NDEV_INDEX \
|
|
|
|
rdma/rdma_netlink.h \
|
|
|
|
enum RDMA_NLDEV_ATTR_NDEV_INDEX \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2019-03-27 13:15:35 +00:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IFLA_NUM_VF \
|
|
|
|
linux/if_link.h \
|
|
|
|
enum IFLA_NUM_VF \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IFLA_EXT_MASK \
|
|
|
|
linux/if_link.h \
|
|
|
|
enum IFLA_EXT_MASK \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-07-10 18:04:52 +02:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IFLA_PHYS_SWITCH_ID \
|
|
|
|
linux/if_link.h \
|
|
|
|
enum IFLA_PHYS_SWITCH_ID \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_IFLA_PHYS_PORT_NAME \
|
|
|
|
linux/if_link.h \
|
|
|
|
enum IFLA_PHYS_PORT_NAME \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2018-07-15 20:31:39 +03:00
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_40000baseKR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_40000baseKR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_40000baseCR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_40000baseCR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_40000baseSR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_40000baseSR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_40000baseLR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_40000baseLR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_56000baseKR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_56000baseKR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_56000baseCR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_56000baseCR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_56000baseSR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_56000baseSR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_SUPPORTED_56000baseLR4_Full \
|
|
|
|
/usr/include/linux/ethtool.h \
|
|
|
|
define SUPPORTED_56000baseLR4_Full \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
|
|
|
$Q sh -- '$<' '$@' \
|
|
|
|
HAVE_STATIC_ASSERT \
|
|
|
|
/usr/include/assert.h \
|
|
|
|
define static_assert \
|
|
|
|
$(AUTOCONF_OUTPUT)
|
2015-10-30 19:52:30 +01:00
|
|
|
|
2016-06-10 17:09:32 +02:00
|
|
|
# Create mlx5_autoconf.h or update it in case it differs from the new one.
|
|
|
|
|
|
|
|
mlx5_autoconf.h: mlx5_autoconf.h.new
|
|
|
|
$Q [ -f '$@' ] && \
|
|
|
|
cmp '$<' '$@' $(AUTOCONF_OUTPUT) || \
|
|
|
|
mv '$<' '$@'
|
|
|
|
|
2016-01-29 11:31:36 +01:00
|
|
|
$(SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD):.c=.o): mlx5_autoconf.h
|
2015-10-30 19:52:30 +01:00
|
|
|
|
2018-01-30 16:34:58 +01:00
|
|
|
# Generate dependency plug-in for rdma-core when the PMD must not be linked
|
|
|
|
# directly, so that applications do not inherit this dependency.
|
|
|
|
|
2019-01-09 15:23:18 +01:00
|
|
|
ifeq ($(CONFIG_RTE_IBVERBS_LINK_DLOPEN),y)
|
2018-01-30 16:34:58 +01:00
|
|
|
|
|
|
|
$(LIB): $(LIB_GLUE)
|
|
|
|
|
2018-03-29 14:36:20 +01:00
|
|
|
ifeq ($(LINK_USING_CC),1)
|
|
|
|
GLUE_LDFLAGS := $(call linkerprefix,$(LDFLAGS))
|
|
|
|
else
|
|
|
|
GLUE_LDFLAGS := $(LDFLAGS)
|
|
|
|
endif
|
2018-01-30 16:34:58 +01:00
|
|
|
$(LIB_GLUE): mlx5_glue.o
|
2018-03-29 14:36:20 +01:00
|
|
|
$Q $(LD) $(GLUE_LDFLAGS) $(EXTRA_LDFLAGS) \
|
2018-02-02 17:46:16 +01:00
|
|
|
-Wl,-h,$(LIB_GLUE) \
|
2018-07-31 15:15:28 +02:00
|
|
|
-shared -o $@ $< -libverbs -lmlx5
|
2018-01-30 16:34:58 +01:00
|
|
|
|
|
|
|
mlx5_glue.o: mlx5_autoconf.h
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2015-10-30 19:52:30 +01:00
|
|
|
clean_mlx5: FORCE
|
2016-06-10 17:09:32 +02:00
|
|
|
$Q rm -f -- mlx5_autoconf.h mlx5_autoconf.h.new
|
2018-02-02 17:46:16 +01:00
|
|
|
$Q rm -f -- mlx5_glue.o $(LIB_GLUE_BASE)*
|
2015-10-30 19:52:30 +01:00
|
|
|
|
|
|
|
clean: clean_mlx5
|