summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/Makefile
blob: 55d1ad6e045792be12e945983b082b3803cec7dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2014 - 2018 Cavium Inc.
# All rights reserved.
# www.cavium.com
include $(RTE_SDK)/mk/rte.vars.mk

#
# library name
#
LIB = librte_pmd_bnx2x.a

CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DZLIB_CONST
LDLIBS += -lz
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
LDLIBS += -lrte_bus_pci

EXPORT_MAP := rte_pmd_bnx2x_version.map

LIBABIVER := 1

#
# all source are stored in SRCS-y
#
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x.c
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_rxtx.c
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_stats.c
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_ethdev.c
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += ecore_sp.c
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += elink.c
SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_vfpf.c

include $(RTE_SDK)/mk/rte.lib.mk
lane API messages used to control the L3XC plugin */ option version = "1.0.0"; import "vnet/fib/fib_types.api"; /** \brief Get the plugin version @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request */ define l3xc_plugin_get_version { u32 client_index; u32 context; }; /** \brief Reply to get the plugin version @param context - returned sender context, to match reply w/ request @param major - Incremented every time a known breaking behavior change is introduced @param minor - Incremented with small changes, may be used to avoid buggy versions */ define l3xc_plugin_get_version_reply { u32 context; u32 major; u32 minor; }; /** \brief A description of an L3XC policy @param input interface of the x-connect @param n_paths Number of paths @param paths The set of forwarding paths. */ typeonly define l3xc { u32 sw_if_index; u8 is_ip6; u8 n_paths; vl_api_fib_path_t paths[n_paths]; }; define l3xc_update { u32 client_index; u32 context; vl_api_l3xc_t l3xc; }; define l3xc_update_reply { u32 context; i32 retval; u32 stats_index; }; autoreply define l3xc_del { u32 client_index; u32 context; u32 sw_if_index; u8 is_ip6; }; /** \brief Dump all L3XC policies */ define l3xc_dump { u32 client_index; u32 context; u32 sw_if_index; }; /** \brief description returned in the dump */ define l3xc_details { u32 context; vl_api_l3xc_t l3xc; };