]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: bnxt_en_bpo: Rename the backport driver to bnxt_en_bpo
authorJuerg Haefliger <juerg.haefliger@canonical.com>
Thu, 17 Aug 2017 11:32:00 +0000 (13:32 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 24 Aug 2017 16:35:19 +0000 (18:35 +0200)
BugLink: http://bugs.launchpad.net/bugs/1711056
Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
ubuntu/Kconfig
ubuntu/Makefile
ubuntu/bnxt/Kconfig
ubuntu/bnxt/Makefile
ubuntu/bnxt/bnxt.c
ubuntu/bnxt/bnxt.h
ubuntu/bnxt/bnxt_compat.h
ubuntu/bnxt/bnxt_dcb.c
ubuntu/bnxt/bnxt_ethtool.c
ubuntu/bnxt/bnxt_sriov.c

index b653c1c37e2c26b09468b20c7f3730c329b037bd..bc2fb5530593d8b4231ba8af6da48c89b717f4c1 100644 (file)
@@ -33,5 +33,12 @@ source "ubuntu/opennsl/Kconfig"
 ##
 ##
 ##
+source "ubuntu/bnxt/Kconfig"
+##
+##
+##
+##
+##
+##
 
 endmenu
index c27f5ebf7c7e4585434de8d5efe3ef37c1faa22e..85e1c900735c959a9e1a8993f3b1ba2eb1b953f1 100644 (file)
@@ -45,6 +45,11 @@ obj-$(CONFIG_OPENNSL) += opennsl/
 ##
 ##
 ##
+obj-$(CONFIG_BNXT_BPO) += bnxt/
+##
+##
+##
+##
 ##
 ##
 
index 7dd42953e9f8d263947df983796ea28e922d3d03..68fc21fa947c93f68cba60f5a5b0f42a3ab77786 100644 (file)
@@ -1,4 +1,4 @@
-config BNXT
+config BNXT_BPO
        tristate "Broadcom NetXtreme-C/E support"
        depends on PCI
        depends on VXLAN || VXLAN=n
@@ -7,21 +7,21 @@ config BNXT
        ---help---
          This driver supports Broadcom NetXtreme-C/E 10/25/40/50 gigabit
          Ethernet cards.  To compile this driver as a module, choose M here:
-         the module will be called bnxt_en.  This is recommended.
+         the module will be called bnxt_en_bpo.  This is recommended.
 
-config BNXT_SRIOV
+config BNXT_BPO_SRIOV
        bool "Broadcom NetXtreme-C/E SR-IOV support"
-       depends on BNXT && PCI_IOV
+       depends on BNXT_BPO && PCI_IOV
        default y
        ---help---
          This configuration parameter enables Single Root Input Output
          Virtualization support in the NetXtreme-C/E products. This
          allows for virtual function acceleration in virtual environments.
 
-config BNXT_DCB
+config BNXT_BPO_DCB
        bool "Data Center Bridging (DCB) Support"
        default n
-       depends on BNXT && DCB
+       depends on BNXT_BPO && DCB
        ---help---
          Say Y here if you want to use Data Center Bridging (DCB) in the
          driver.
index 5a0883cb897d322e023a3f98576b7741f25d5fb0..0960b4b859f77ac39f4066a514e9e9251dc1c868 100644 (file)
@@ -403,9 +403,9 @@ ifneq ($(shell ls $(LINUXSRC)/include/$(UAPI)/linux/net_tstamp.h > /dev/null 2>&
   endif
 endif
 
-EXTRA_CFLAGS += $(DISTRO_CFLAG) -DCHIMP_FW -DCONFIG_BNXT_FLASHDEV -DHSI_DBG_DISABLE -DCONFIG_BNXT_RE
+EXTRA_CFLAGS += $(DISTRO_CFLAG) -DCHIMP_FW -DCONFIG_BNXT_BPO_FLASHDEV -DHSI_DBG_DISABLE -DCONFIG_BNXT_BPO_RE
 
 cflags-y += $(EXTRA_CFLAGS)
 
-obj-$(CONFIG_BNXT) += bnxt_en.o
-bnxt_en-y := bnxt.o bnxt_ethtool.o bnxt_sriov.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_ptp.o #decode_hsi.o
+obj-$(CONFIG_BNXT_BPO) += bnxt_en_bpo.o
+bnxt_en_bpo-y := bnxt.o bnxt_ethtool.o bnxt_sriov.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_ptp.o #decode_hsi.o
index f7a4dd587dd80579d244e05a18ca9ac44640a20c..f04db6967461d2708ece7b75146abad35d40ab1a 100644 (file)
@@ -195,7 +195,7 @@ static const struct pci_device_id bnxt_pci_tbl[] = {
        { PCI_VDEVICE(BROADCOM, 0x16ef), .driver_data = BCM57416_NPAR },
        { PCI_VDEVICE(BROADCOM, 0x16f1), .driver_data = BCM57452 },
        { PCI_VDEVICE(BROADCOM, 0x1614), .driver_data = BCM57454 },
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        { PCI_VDEVICE(BROADCOM, 0x16c1), .driver_data = NETXTREME_E_VF },
        { PCI_VDEVICE(BROADCOM, 0x16dc), .driver_data = NETXTREME_E_VF },
        { PCI_VDEVICE(BROADCOM, 0x16e1), .driver_data = NETXTREME_C_VF },
@@ -4186,7 +4186,7 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id)
        req.mru = cpu_to_le16(bp->dev->mtu + ETH_HLEN + ETH_FCS_LEN +
                              VLAN_HLEN);
 
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        if (BNXT_VF(bp))
                def_vlan = bp->vf.vlan;
 #endif
@@ -4852,7 +4852,7 @@ static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
        if (rc)
                goto func_qcfg_exit;
 
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        if (BNXT_VF(bp)) {
                struct bnxt_vf_info *vf = &bp->vf;
 
@@ -4983,7 +4983,7 @@ int bnxt_hwrm_func_qcaps(struct bnxt *bp)
                if (flags & FUNC_QCAPS_RESP_FLAGS_PTP_SUPPORTED)
                        __bnxt_hwrm_ptp_qcfg(bp);
        } else {
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
                struct bnxt_vf_info *vf = &bp->vf;
 
                vf->fw_fid = le16_to_cpu(resp->fid);
@@ -5337,7 +5337,7 @@ static int bnxt_alloc_rfs_vnics(struct bnxt *bp)
 /* Allow PF and VF with default VLAN to be in promiscuous mode */
 static bool bnxt_promisc_ok(struct bnxt *bp)
 {
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        if (BNXT_VF(bp) && !bp->vf.vlan)
                return false;
 #endif
@@ -5603,7 +5603,7 @@ static int bnxt_setup_int_mode(struct bnxt *bp)
 #ifdef CONFIG_RFS_ACCEL
 static unsigned int bnxt_get_max_func_rss_ctxs(struct bnxt *bp)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                return bp->vf.max_rsscos_ctxs;
 #endif
@@ -5612,7 +5612,7 @@ static unsigned int bnxt_get_max_func_rss_ctxs(struct bnxt *bp)
 
 static unsigned int bnxt_get_max_func_vnics(struct bnxt *bp)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                return bp->vf.max_vnics;
 #endif
@@ -5622,7 +5622,7 @@ static unsigned int bnxt_get_max_func_vnics(struct bnxt *bp)
 
 unsigned int bnxt_get_max_func_stat_ctxs(struct bnxt *bp)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                return bp->vf.max_stat_ctxs;
 #endif
@@ -5631,7 +5631,7 @@ unsigned int bnxt_get_max_func_stat_ctxs(struct bnxt *bp)
 
 void bnxt_set_max_func_stat_ctxs(struct bnxt *bp, unsigned int max)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                bp->vf.max_stat_ctxs = max;
        else
@@ -5641,7 +5641,7 @@ void bnxt_set_max_func_stat_ctxs(struct bnxt *bp, unsigned int max)
 
 unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                return bp->vf.max_cp_rings;
 #endif
@@ -5650,7 +5650,7 @@ unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp)
 
 void bnxt_set_max_func_cp_rings(struct bnxt *bp, unsigned int max)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                bp->vf.max_cp_rings = max;
        else
@@ -5660,7 +5660,7 @@ void bnxt_set_max_func_cp_rings(struct bnxt *bp, unsigned int max)
 
 static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                return min_t(unsigned int, bp->vf.max_irqs,
                             bp->vf.max_cp_rings);
@@ -5670,7 +5670,7 @@ static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp)
 
 void bnxt_set_max_func_irqs(struct bnxt *bp, unsigned int max_irqs)
 {
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
        if (BNXT_VF(bp))
                bp->vf.max_irqs = max_irqs;
        else
@@ -6673,7 +6673,7 @@ int bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
 {
        int rc = 0;
 
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        if (bp->sriov_cfg) {
                rc = wait_event_interruptible_timeout(bp->sriov_cfg_wait,
                                                      !bp->sriov_cfg,
@@ -7107,7 +7107,7 @@ static netdev_features_t bnxt_fix_features(struct net_device *dev,
                        features |= NETIF_F_HW_VLAN_CTAG_RX |
                                    NETIF_F_HW_VLAN_STAG_RX;
        }
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        if (BNXT_VF(bp)) {
                if (bp->vf.vlan) {
                        features &= ~(NETIF_F_HW_VLAN_CTAG_RX |
@@ -7832,7 +7832,7 @@ static int bnxt_change_mtu(struct net_device *dev, int new_mtu)
        return 0;
 }
 
-#if defined(HAVE_SETUP_TC) || defined(CONFIG_BNXT_DCB)
+#if defined(HAVE_SETUP_TC) || defined(CONFIG_BNXT_BPO_DCB)
 int bnxt_setup_mq_tc(struct net_device *dev, u8 tc)
 {
        struct bnxt *bp = netdev_priv(dev);
@@ -8338,7 +8338,7 @@ static const struct net_device_ops bnxt_netdev_ops = {
        .ndo_set_features       = bnxt_set_features,
 #endif
        .ndo_tx_timeout         = bnxt_tx_timeout,
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
 #ifdef HAVE_NDO_GET_VF_CONFIG
        .ndo_get_vf_config      = bnxt_get_vf_config,
        .ndo_set_vf_mac         = bnxt_set_vf_mac,
@@ -8492,7 +8492,7 @@ static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx,
 {
        int max_ring_grps = 0;
 
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        if (!BNXT_PF(bp)) {
                *max_tx = bp->vf.max_tx_rings;
                *max_rx = bp->vf.max_rx_rings;
@@ -8547,7 +8547,7 @@ static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx,
                bp->dev->features &= ~NETIF_F_LRO;
                bnxt_set_ring_params(bp);
        }
-#ifdef CONFIG_BNXT_RE
+#ifdef CONFIG_BNXT_BPO_RE
        if (bp->flags & BNXT_FLAG_ROCE_CAP) {
                int max_cp, max_stat, max_irq;
 
@@ -8717,7 +8717,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        dev->max_mtu = BNXT_MAX_MTU;
 #endif
 
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        init_waitqueue_head(&bp->sriov_cfg_wait);
 #endif
        bp->gro_func = bnxt_gro_func_5730x;
@@ -9036,7 +9036,7 @@ static struct pci_driver bnxt_pci_driver = {
        .shutdown       = bnxt_shutdown,
        .driver.pm      = BNXT_PM_OPS,
        .err_handler    = &bnxt_err_handler,
-#if defined(CONFIG_BNXT_SRIOV) && defined(PCIE_SRIOV_CONFIGURE)
+#if defined(CONFIG_BNXT_BPO_SRIOV) && defined(PCIE_SRIOV_CONFIGURE)
        .sriov_configure = bnxt_sriov_configure,
 #endif
 };
index d166ffc770889665f4961af33cf9a1ff40c08974..f708ece72152241469f3230b4ef6bd42adac359f 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef BNXT_H
 #define BNXT_H
 
-#define DRV_MODULE_NAME                "bnxt_en"
+#define DRV_MODULE_NAME                "bnxt_en_bpo"
 #define DRV_MODULE_VERSION     "1.8.1"
 
 #define DRV_VER_MAJ    1
@@ -755,7 +755,7 @@ struct bnxt_vnic_info {
 #define BNXT_VNIC_RFS_NEW_RSS_FLAG     0x10
 };
 
-#if defined(CONFIG_BNXT_SRIOV)
+#if defined(CONFIG_BNXT_BPO_SRIOV)
 struct bnxt_vf_info {
        u16     fw_fid;
        u8      mac_addr[ETH_ALEN];
@@ -1126,12 +1126,12 @@ struct bnxt {
        int                     total_irqs;
        u8                      mac_addr[ETH_ALEN];
 
-#ifdef CONFIG_BNXT_DCB
+#ifdef CONFIG_BNXT_BPO_DCB
        struct ieee_pfc         *ieee_pfc;
        struct ieee_ets         *ieee_ets;
        u8                      dcbx_cap;
        u8                      default_pri;
-#endif /* CONFIG_BNXT_DCB */
+#endif /* CONFIG_BNXT_BPO_DCB */
 
        u32                     msg_enable;
 
@@ -1202,7 +1202,7 @@ struct bnxt {
 #define BNXT_LINK_SPEED_CHNG_SP_EVENT  14
 
        struct bnxt_pf_info     pf;
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
        int                     nr_vfs;
        struct bnxt_vf_info     vf;
        wait_queue_head_t       sriov_cfg_wait;
@@ -1413,7 +1413,7 @@ void bnxt_half_close_nic(struct bnxt *bp);
 int bnxt_close_nic(struct bnxt *, bool, bool);
 int bnxt_reserve_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,
                       int tx_xdp);
-#if defined(HAVE_SETUP_TC) || defined(CONFIG_BNXT_DCB)
+#if defined(HAVE_SETUP_TC) || defined(CONFIG_BNXT_BPO_DCB)
 int bnxt_setup_mq_tc(struct net_device *, u8);
 #endif
 int bnxt_get_max_rings(struct bnxt *, int *, int *, bool);
index a00dccfe93e21ea214a55ec54094c0ec5a763131..82f45bd5152d6fd9f3c4f6e49346754599ac5ae1 100644 (file)
@@ -286,7 +286,7 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type)
 #endif
 
 #if !defined(IEEE_8021QAZ_APP_SEL_DGRAM) || !defined(CONFIG_DCB)
-#undef CONFIG_BNXT_DCB
+#undef CONFIG_BNXT_BPO_DCB
 #endif
 
 #ifdef NETDEV_UDP_TUNNEL_PUSH_INFO
@@ -294,7 +294,7 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type)
 #endif
 
 #ifdef HAVE_NDO_XDP
-#define CONFIG_BNXT_XDP        1
+#define CONFIG_BNXT_BPO_XDP    1
 #endif
 
 #ifndef NETDEV_HW_FEATURES
index 0c502cd3a08f974279711264526da5b2e46fc86d..b9ec618d0f199caf3fbbedeac8a2d4aaf0047627 100644 (file)
@@ -20,7 +20,7 @@
 #include "bnxt.h"
 #include "bnxt_dcb.h"
 
-#ifdef CONFIG_BNXT_DCB
+#ifdef CONFIG_BNXT_BPO_DCB
 static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets)
 {
        struct hwrm_queue_pri2cos_cfg_input req = {0};
index f576ec0169e213ceba0115e69287b39cb556bf4a..80dc1e8f7c8ff9e19635315520d4d10c15cc8ce0 100644 (file)
@@ -30,7 +30,7 @@
 #include "bnxt_xdp.h"
 #include "bnxt_ptp.h"
 #include "bnxt_ethtool.h"
-#ifdef CONFIG_BNXT_FLASHDEV
+#ifdef CONFIG_BNXT_BPO_FLASHDEV
 #include "bnxt_nvm_defs.h"     /* NVRAM content constant and structure defs */
 #include "bnxt_fw_hdr.h"       /* Firmware hdr constant and structure defs */
 #define FLASH_NVRAM_TIMEOUT    ((HWRM_CMD_TIMEOUT) * 100)
@@ -1538,7 +1538,7 @@ static u32 bnxt_get_link(struct net_device *dev)
        return bp->link_info.link_up;
 }
 
-#ifdef CONFIG_BNXT_FLASHDEV
+#ifdef CONFIG_BNXT_BPO_FLASHDEV
 static int bnxt_find_nvram_item(struct net_device *dev, u16 type, u16 ordinal,
                                u16 ext, u16 *index, u32 *item_length,
                                u32 *data_length);
@@ -2920,7 +2920,7 @@ const struct ethtool_ops bnxt_ethtool_ops = {
        .get_rxfh_key_size      = bnxt_get_rxfh_key_size,
        .get_rxfh               = bnxt_get_rxfh,
 #endif
-#ifdef CONFIG_BNXT_FLASHDEV
+#ifdef CONFIG_BNXT_BPO_FLASHDEV
        .flash_device           = bnxt_flash_device,
        .get_eeprom_len         = bnxt_get_eeprom_len,
        .get_eeprom             = bnxt_get_eeprom,
index d6e31d92130a5353be298490b69c0fdecb773b9a..46bca0032f6821c2de470288cc2a2a898192571d 100644 (file)
@@ -22,7 +22,7 @@
 #include "bnxt_sriov.h"
 #include "bnxt_ethtool.h"
 
-#ifdef CONFIG_BNXT_SRIOV
+#ifdef CONFIG_BNXT_BPO_SRIOV
 static int bnxt_hwrm_fwd_async_event_cmpl(struct bnxt *bp,
                                          struct bnxt_vf_info *vf,
                                          u16 event_id)