bnx2x: poll mode driver
cover bnx2x: poll mode driver
This is a rename, rebase and cleanup of earlier BCM driver. The driver is named bnx2x because that is the name of the driver in Linux used for the same hardware. The code is rebased against 2.0 latest code base, and used config_fd from vfio or uio_pci_generic. It is also cleaned up to scrub away some of the obvious whitespace issues.
Stephen Hemminger (3):
pci: allow access to PCI config space
bnx2x: new poll mode driver
bnx2x: enable BNX2X poll mode driver
MAINTAINERS | 3 + config/common_linuxapp | 10 + lib/Makefile | 1 + lib/librte_eal/common/include/rte_pci.h | 28 + lib/librte_eal/common/include/rte_pci_dev_ids.h | 30 + lib/librte_eal/linuxapp/eal/eal_pci.c | 48 + lib/librte_eal/linuxapp/eal/eal_pci_init.h | 11 + lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 14 + lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 16 + lib/librte_pmd_bnx2x/Makefile | 28 + lib/librte_pmd_bnx2x/bnx2x.c | 11816 +++++++++++++++++++ lib/librte_pmd_bnx2x/bnx2x.h | 1998 ++++ lib/librte_pmd_bnx2x/bnx2x_ethdev.c | 542 + lib/librte_pmd_bnx2x/bnx2x_ethdev.h | 79 + lib/librte_pmd_bnx2x/bnx2x_logs.h | 51 + lib/librte_pmd_bnx2x/bnx2x_rxtx.c | 487 + lib/librte_pmd_bnx2x/bnx2x_rxtx.h | 85 + lib/librte_pmd_bnx2x/bnx2x_stats.c | 1619 +++ lib/librte_pmd_bnx2x/bnx2x_stats.h | 632 + lib/librte_pmd_bnx2x/bnx2x_vfpf.c | 597 + lib/librte_pmd_bnx2x/bnx2x_vfpf.h | 315 + lib/librte_pmd_bnx2x/debug.c | 113 + lib/librte_pmd_bnx2x/ecore_fw_defs.h | 422 + lib/librte_pmd_bnx2x/ecore_hsi.h | 6348 ++++++++++ lib/librte_pmd_bnx2x/ecore_init.h | 841 ++ lib/librte_pmd_bnx2x/ecore_init_ops.h | 886 ++ lib/librte_pmd_bnx2x/ecore_mfw_req.h | 206 + lib/librte_pmd_bnx2x/ecore_reg.h | 3663 ++++++ lib/librte_pmd_bnx2x/ecore_sp.c | 5455 +++++++++ lib/librte_pmd_bnx2x/ecore_sp.h | 1795 +++ lib/librte_pmd_bnx2x/elink.c | 13378 ++++++++++++++++++++++ lib/librte_pmd_bnx2x/elink.h | 609 + mk/rte.app.mk | 8 + 33 files changed, 52134 insertions(+) create mode 100644 lib/librte_pmd_bnx2x/Makefile create mode 100644 lib/librte_pmd_bnx2x/bnx2x.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_ethdev.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_ethdev.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_logs.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_rxtx.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_rxtx.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_stats.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_stats.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_vfpf.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_vfpf.h create mode 100644 lib/librte_pmd_bnx2x/debug.c create mode 100644 lib/librte_pmd_bnx2x/ecore_fw_defs.h create mode 100644 lib/librte_pmd_bnx2x/ecore_hsi.h create mode 100644 lib/librte_pmd_bnx2x/ecore_init.h create mode 100644 lib/librte_pmd_bnx2x/ecore_init_ops.h create mode 100644 lib/librte_pmd_bnx2x/ecore_mfw_req.h create mode 100644 lib/librte_pmd_bnx2x/ecore_reg.h create mode 100644 lib/librte_pmd_bnx2x/ecore_sp.c create mode 100644 lib/librte_pmd_bnx2x/ecore_sp.h create mode 100644 lib/librte_pmd_bnx2x/elink.c create mode 100644 lib/librte_pmd_bnx2x/elink.h
Signature · 1 line
2.1.4
PATCH 1/3 pci: allow access to PCI config space
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
Some drivers need ability to access PCI config (for example for power management). This adds an abstraction to do this; only implemented on Linux, but should be possible on BSD.
--- lib/librte_eal/common/include/rte_pci.h | 28 +++++++++++++++++ lib/librte_eal/linuxapp/eal/eal_pci.c | 48 ++++++++++++++++++++++++++++++ lib/librte_eal/linuxapp/eal/eal_pci_init.h | 11 +++++++ lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 14 +++++++++ lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 16 ++++++++++ 5 files changed, 117 insertions(+)
lib/librte_eal/common/include/rte_pci.h +28 -0
@@ -393,6 +393,34 @@ void rte_eal_pci_register(struct rte_pci_driver *driver);*/ void rte_eal_pci_unregister (struct rte_pci_driver *driver); +/** +* Read PCI config space. +* +* @param device +* A pointer to a rte_pci_device structure describing the device +* to use +* @param buf +* A data buffer where the bytes should be read into +* @param size +* The length of the data buffer. +*/ +int rte_eal_pci_read_config (const struct rte_pci_device *device, +void *buf,size_t len,off_t offset); + +/** +* Write PCI config space. +* +* @param device +* A pointer to a rte_pci_device structure describing the device +* to use +* @param buf +* A data buffer containing the bytes should be written +* @param size +* The length of the data buffer. +*/ +int rte_eal_pci_write_config (const struct rte_pci_device *device, +const void *buf,size_t len,off_t offset); + #ifdef __cplusplus }#endif
lib/librte_eal/linuxapp/eal/eal_pci.c +48 -0
54 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/eal_pci_init.h +11 -0
@@ -68,6 +68,11 @@ void *pci_find_max_end_va(void);void *pci_map_resource (void *requested_addr,int fd,off_t offset,size_t size,int additional_flags); +int pci_uio_read_config (const struct rte_intr_handle *intr_handle, +void *buf,size_t len,off_t offs); +int pci_uio_write_config (const struct rte_intr_handle *intr_handle, +const void *buf,size_t len,off_t offs); +/* map IGB_UIO resource prototype */ int pci_uio_map_resource (struct rte_pci_device *dev);
@@ -86,6 +91,12 @@ int pci_vfio_enable(void);int pci_vfio_is_enabled (void );int pci_vfio_mp_sync_setup (void ); +/* access config space */ +int pci_vfio_read_config (const struct rte_intr_handle *intr_handle, +void *buf,size_t len,off_t offs); +int pci_vfio_write_config (const struct rte_intr_handle *intr_handle, +const void *buf,size_t len,off_t offs); +/* map VFIO resource prototype */ int pci_vfio_map_resource (struct rte_pci_device *dev);int pci_vfio_get_group_fd (int iommu_group_fd);
lib/librte_eal/linuxapp/eal/eal_pci_uio.c +14 -0
@@ -58,6 +58,20 @@ EAL_REGISTER_TAILQ(rte_uio_tailq)#define OFF_MAX ((uint64_t)(off_t)-1) +int +pci_uio_read_config (const struct rte_intr_handle *intr_handle, +void *buf,size_t len,off_t offset) +{ +return pread (intr_handle->uio_cfg_fd, buf, len, offset); +} + +int +pci_uio_write_config (const struct rte_intr_handle *intr_handle, +const void *buf,size_t len,off_t offset) +{ +return pwrite (intr_handle->uio_cfg_fd, buf, len, offset); +} +static int pci_uio_set_bus_master (int dev_fd) {
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c +16 -0
@@ -77,6 +77,22 @@ EAL_REGISTER_TAILQ(rte_vfio_tailq)/* per-process VFIO config */ static struct vfio_config vfio_cfg; +int +pci_vfio_read_config (const struct rte_intr_handle *intr_handle, +void *buf,size_t len,off_t offs) +{ +return pread64 (intr_handle->vfio_dev_fd, buf, len, +VFIO_GET_REGION_ADDR (VFIO_PCI_CONFIG_REGION_INDEX ) + offs); +} + +int +pci_vfio_write_config (const struct rte_intr_handle *intr_handle, +const void *buf,size_t len,off_t offs) +{ +return pwrite64 (intr_handle->vfio_dev_fd, buf, len, +VFIO_GET_REGION_ADDR (VFIO_PCI_CONFIG_REGION_INDEX ) + offs); +} +/* get PCI BAR number where MSI-X interrupts are */ static int pci_vfio_get_msix_bar(int fd, int *msix_bar, uint32_t *msix_table_offset,
Signature · 1 line
2.1.4
PATCH 2/3 bnx2x: new poll mode driver
In reply to a message not in the archiveFrom: Sergey Kreys <skreys-nYU0QVwCCFFWk0Htik3J/[email protected]>
Add driver for the Broadcom NetXtremeII 10 gigabit devices.
---
v3 - this is same as previous bcm driver just renamed
--- lib/Makefile | 1 + lib/librte_eal/common/include/rte_pci_dev_ids.h | 30 + lib/librte_pmd_bnx2x/Makefile | 28 + lib/librte_pmd_bnx2x/bnx2x.c | 11816 +++++++++++++++++++ lib/librte_pmd_bnx2x/bnx2x.h | 1998 ++++ lib/librte_pmd_bnx2x/bnx2x_ethdev.c | 542 + lib/librte_pmd_bnx2x/bnx2x_ethdev.h | 79 + lib/librte_pmd_bnx2x/bnx2x_logs.h | 51 + lib/librte_pmd_bnx2x/bnx2x_rxtx.c | 487 + lib/librte_pmd_bnx2x/bnx2x_rxtx.h | 85 + lib/librte_pmd_bnx2x/bnx2x_stats.c | 1619 +++ lib/librte_pmd_bnx2x/bnx2x_stats.h | 632 + lib/librte_pmd_bnx2x/bnx2x_vfpf.c | 597 + lib/librte_pmd_bnx2x/bnx2x_vfpf.h | 315 + lib/librte_pmd_bnx2x/debug.c | 113 + lib/librte_pmd_bnx2x/ecore_fw_defs.h | 422 + lib/librte_pmd_bnx2x/ecore_hsi.h | 6348 ++++++++++ lib/librte_pmd_bnx2x/ecore_init.h | 841 ++ lib/librte_pmd_bnx2x/ecore_init_ops.h | 886 ++ lib/librte_pmd_bnx2x/ecore_mfw_req.h | 206 + lib/librte_pmd_bnx2x/ecore_reg.h | 3663 ++++++ lib/librte_pmd_bnx2x/ecore_sp.c | 5455 +++++++++ lib/librte_pmd_bnx2x/ecore_sp.h | 1795 +++ lib/librte_pmd_bnx2x/elink.c | 13378 ++++++++++++++++++++++ lib/librte_pmd_bnx2x/elink.h | 609 + 25 files changed, 51996 insertions(+) create mode 100644 lib/librte_pmd_bnx2x/Makefile create mode 100644 lib/librte_pmd_bnx2x/bnx2x.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_ethdev.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_ethdev.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_logs.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_rxtx.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_rxtx.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_stats.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_stats.h create mode 100644 lib/librte_pmd_bnx2x/bnx2x_vfpf.c create mode 100644 lib/librte_pmd_bnx2x/bnx2x_vfpf.h create mode 100644 lib/librte_pmd_bnx2x/debug.c create mode 100644 lib/librte_pmd_bnx2x/ecore_fw_defs.h create mode 100644 lib/librte_pmd_bnx2x/ecore_hsi.h create mode 100644 lib/librte_pmd_bnx2x/ecore_init.h create mode 100644 lib/librte_pmd_bnx2x/ecore_init_ops.h create mode 100644 lib/librte_pmd_bnx2x/ecore_mfw_req.h create mode 100644 lib/librte_pmd_bnx2x/ecore_reg.h create mode 100644 lib/librte_pmd_bnx2x/ecore_sp.c create mode 100644 lib/librte_pmd_bnx2x/ecore_sp.h create mode 100644 lib/librte_pmd_bnx2x/elink.c create mode 100644 lib/librte_pmd_bnx2x/elink.h
lib/Makefile +1 -0
@@ -47,6 +47,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += librte_pmd_i40e DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += librte_pmd_fm10k DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += librte_pmd_mlx4 DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += librte_pmd_enic +DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += librte_pmd_bnx2x DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += librte_pmd_bond DIRS-$(CONFIG_RTE_LIBRTE_PMD_RING) += librte_pmd_ring DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += librte_pmd_pcap
lib/librte_eal/common/include/rte_pci_dev_ids.h +30 -0
@@ -140,6 +140,14 @@#define RTE_PCI_DEV_ID_DECL_FM10KVF (vend, dev)#endif +#ifndef RTE_PCI_DEV_ID_DECL_BNX2X +#define RTE_PCI_DEV_ID_DECL_BNX2X (vend, dev) +#endif + +#ifndef RTE_PCI_DEV_ID_DECL_BNX2XVF +#define RTE_PCI_DEV_ID_DECL_BNX2XVF (vend, dev) +#endif +#ifndef PCI_VENDOR_ID_INTEL /** Vendor ID used by Intel devices */ #define PCI_VENDOR_ID_INTEL 0x8086
@@ -155,6 +163,11 @@#define PCI_VENDOR_ID_VMWARE 0x15AD#endif +#ifndef PCI_VENDOR_ID_BROADCOM +/** Vendor ID used by Broadcom devices */ +#define PCI_VENDOR_ID_BROADCOM 0x14E4 +#endif +/******************** Physical EM devices from e1000_hw.h ********************/ #define E1000_DEV_ID_82542 0x1000
@@ -548,6 +561,21 @@ RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3)RTE_PCI_DEV_ID_DECL_FM10KVF (PCI_VENDOR_ID_INTEL ,FM10K_DEV_ID_VF ) +/****************** Qualcom devices ******************/ + +/* Broadcom/Qualcom BNX2X */ +#define BNX2X_DEV_ID_57711 0x164F +#define BNX2X_DEV_ID_57810 0x168E +#define BNX2X_DEV_ID_57810_MF 0x16AE +#define BNX2X_DEV_ID_57810_VF 0x16AF + +RTE_PCI_DEV_ID_DECL_BNX2X(PCI_VENDOR_ID_BROADCOM, BNX2X_DEV_ID_57711) +RTE_PCI_DEV_ID_DECL_BNX2X(PCI_VENDOR_ID_BROADCOM, BNX2X_DEV_ID_57810) +#ifdef RTE_LIBRTE_BNX2X_MF_SUPPORT +RTE_PCI_DEV_ID_DECL_BNX2X(PCI_VENDOR_ID_BROADCOM, BNX2X_DEV_ID_57810_MF) +#endif +RTE_PCI_DEV_ID_DECL_BNX2XVF (PCI_VENDOR_ID_BROADCOM ,BNX2X_DEV_ID_57810_VF ) +/* * Undef all RTE_PCI_DEV_ID_DECL_* here. */
@@ -560,5 +588,7 @@ RTE_PCI_DEV_ID_DECL_FM10KVF(PCI_VENDOR_ID_INTEL, FM10K_DEV_ID_VF)#undef RTE_PCI_DEV_ID_DECL_I40EVF#undef RTE_PCI_DEV_ID_DECL_VIRTIO#undef RTE_PCI_DEV_ID_DECL_VMXNET3 +#undef RTE_PCI_DEV_ID_DECL_BNX2X +#undef RTE_PCI_DEV_ID_DECL_BNX2XVF#undef RTE_PCI_DEV_ID_DECL_FM10K#undef RTE_PCI_DEV_ID_DECL_FM10KVF
lib/librte_pmd_bnx2x/Makefile new file +28 -0
@@ -0,0 +1,28 @@ +include $(RTE_SDK)/mk/rte.vars.mk + +# +# library name +# +LIB = librte_pmd_bnx2x.a + +CFLAGS += -O3 -g +CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DZLIB_CONST + +# +# 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 +SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_DEBUG) += debug.c + +# this lib depends upon: +DEPDIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += lib/librte_eal lib/librte_ether lib/librte_hash +DEPDIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += lib/librte_mempool lib/librte_mbuf + +include $(RTE_SDK)/mk/rte.lib.mk
lib/librte_pmd_bnx2x/bnx2x.c new file +11816 -0
2,912 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x.h new file +1998 -0
1,998 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_ethdev.c new file +542 -0
542 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_ethdev.h new file +79 -0
79 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_logs.h new file +51 -0
51 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_rxtx.c new file +487 -0
487 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_rxtx.h new file +85 -0
85 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_stats.c new file +1619 -0
1,619 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_stats.h new file +632 -0
632 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_vfpf.c new file +597 -0
597 lines not on this page · raw message
lib/librte_pmd_bnx2x/bnx2x_vfpf.h new file +315 -0
315 lines not on this page · raw message
lib/librte_pmd_bnx2x/debug.c new file +113 -0
113 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_fw_defs.h new file +422 -0
422 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_hsi.h new file +6348 -0
6,348 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_init.h new file +841 -0
841 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_init_ops.h new file +886 -0
886 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_mfw_req.h new file +206 -0
206 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_reg.h new file +3663 -0
3,663 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_sp.c new file +5455 -0
5,455 lines not on this page · raw message
lib/librte_pmd_bnx2x/ecore_sp.h new file +1795 -0
1,795 lines not on this page · raw message
lib/librte_pmd_bnx2x/elink.c new file +13378 -0
13,378 lines not on this page · raw message
lib/librte_pmd_bnx2x/elink.h new file +609 -0
609 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.1.4
Part of the diff is not shown here. View the raw message.
PATCH 3/3 bnx2x: enable BNX2X poll mode driver
In reply to a message not in the archiveThis is build infrastructure changes for bnx2x driver.
- enable BNX2X poll mode driver in default config.
- add it to mk
- put entry in MAINTAINERS
Note: I intentionally did not list myself as maintainer of this driver. There is no official support for this driver.
--- MAINTAINERS | 3 +++ config/common_linuxapp | 10 ++++++++++ mk/rte.app.mk | 8 ++++++++ 3 files changed, 21 insertions(+)
MAINTAINERS +3 -0
@@ -258,6 +258,9 @@ M: John McNamara <[email protected]> F: lib/librte_pmd_pcap/ F: doc/guides/nics/pcap_ring.rst +Qlogic/Broadcom bnx2x +F: lib/librte_pmd_bnx2x/ + Ring PMD M: Bruce Richardson <[email protected]> F: lib/librte_pmd_ring/
config/common_linuxapp +10 -0
@@ -214,6 +214,16 @@ CONFIG_RTE_LIBRTE_ENIC_PMD=y CONFIG_RTE_LIBRTE_ENIC_DEBUG=n # +# Compile burst-oriented Broadcom PMD driver +# +CONFIG_RTE_LIBRTE_BNX2X_PMD=y +CONFIG_RTE_LIBRTE_BNX2X_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_BNX2X_DEBUG=n +CONFIG_RTE_LIBRTE_BNX2X_MF_SUPPORT=n +CONFIG_RTE_LIBRTE_BNX2X_DEBUG_TX=n +CONFIG_RTE_LIBRTE_BNX2X_DEBUG_RX=n + +# # Compile burst-oriented VIRTIO PMD driver # CONFIG_RTE_LIBRTE_VIRTIO_PMD=y
mk/rte.app.mk +8 -0
@@ -151,6 +151,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_MLX4_PMD),y) LDLIBS += -libverbs endif +ifeq ($(CONFIG_RTE_LIBRTE_BNX2X_PMD),y) +LDLIBS += -lz +endif + LDLIBS += --start-group ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n)
@@ -219,6 +223,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_ENIC_PMD),y) LDLIBS += -lrte_pmd_enic endif +ifeq ($(CONFIG_RTE_LIBRTE_BNX2X_PMD),y) +LDLIBS += -lrte_pmd_bnx2x +endif + ifeq ($(CONFIG_RTE_LIBRTE_I40E_PMD),y) LDLIBS += -lrte_pmd_i40e endif
Signature · 1 line
2.1.4
Re: [PATCH 1/3] pci: allow access to PCI config space
In reply to a message not in the archiveQuoted 6 lines · Stephen Hemminger
From: Stephen Hemminger <[email protected]>
Some drivers need ability to access PCI config (for example for power management). This adds an abstraction to do this; only implemented on Linux, but should be possible on BSD.
You didn't test this with shared libraries. Not having added these new symbols to the version map will cause a build break. Also I think you need to implement this on BSD, its not ok to just have bnx2x break on non-linux platforms.
Thanks
Neil