net/enic: re-enable link status change interrupt
[dpdk.git] / drivers / net / enic / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2008-2017 Cisco Systems, Inc.  All rights reserved.
3 # Copyright 2007 Nuova Systems, Inc.  All rights reserved.
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 #
8 # library name
9 #
10 LIB = librte_pmd_enic.a
11
12 EXPORT_MAP := rte_pmd_enic_version.map
13
14 LIBABIVER := 1
15
16 # Experimental APIs used: rte_intr_ack
17 CFLAGS += -DALLOW_EXPERIMENTAL_API
18 CFLAGS += -I$(SRCDIR)/base/
19 CFLAGS += -I$(SRCDIR)
20 CFLAGS += -O3
21 CFLAGS += $(WERROR_FLAGS) -Wno-strict-aliasing
22 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
23 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
24 LDLIBS += -lrte_bus_pci
25
26 VPATH += $(SRCDIR)/src
27
28 #
29 # all source are stored in SRCS-y
30 #
31 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_ethdev.c
32 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_main.c
33 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_rxtx.c
34 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_clsf.c
35 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_res.c
36 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_flow.c
37 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_fm_flow.c
38 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += base/vnic_cq.c
39 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += base/vnic_wq.c
40 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += base/vnic_dev.c
41 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += base/vnic_intr.c
42 SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += base/vnic_rq.c
43
44 # The current implementation assumes 64-bit pointers
45 CC_AVX2_SUPPORT=0
46 ifeq ($(CONFIG_RTE_ARCH_X86_64),y)
47 # Figure out if the compiler supports avx2. The extra check using
48 # -march=core-avx2 is necessary to support users who build for the
49 # 'default' machine (corei7 which has no avx2) and run the binary on
50 # newer CPUs that have avx2.
51 # This part is verbatim from i40e makefile.
52 ifeq ($(findstring RTE_MACHINE_CPUFLAG_AVX2,$(CFLAGS)),RTE_MACHINE_CPUFLAG_AVX2)
53         CC_AVX2_SUPPORT=1
54 else
55         CC_AVX2_SUPPORT=\
56         $(shell $(CC) -march=core-avx2 -dM -E - </dev/null 2>&1 | \
57         grep -q AVX2 && echo 1)
58         ifeq ($(CC_AVX2_SUPPORT), 1)
59                 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
60                         CFLAGS_enic_rxtx_vec_avx2.o += -march=core-avx2
61                 else
62                         CFLAGS_enic_rxtx_vec_avx2.o += -mavx2
63                 endif
64         endif
65 endif
66 endif
67
68 ifeq ($(CC_AVX2_SUPPORT), 1)
69         SRCS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic_rxtx_vec_avx2.c
70 endif
71
72 include $(RTE_SDK)/mk/rte.lib.mk