Skip to content

Commit b0f46a9

Browse files
committed
Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue
Jeff Kirsher says: ==================== 40GbE Intel Wired LAN Driver Updates 2020-06-25 This series contains updates to i40e driver and removes the individual driver versions from all of the Intel wired LAN drivers. Shiraz moves the client header so that it can easily be shared between the i40e LAN driver and i40iw RDMA driver. Jesse cleans up the unused defines, since they are just dead weight. Alek reduces the unreasonably long wait time for a PF reset after reboot by using jiffies to limit the maximum wait time for the PF reset to succeed. Added additional logging to let the user know when the driver transitions into recovery mode. Adds new device support for our 5 Gbps NICs. Todd adds a check to see if MFS is set after warm reboot and notifies the user when MFS is set to anything lower than the default value. Arkadiusz fixes a possible race condition, where were holding a spin-lock while in atomic context. v2: removed code comments that were no longer applicable in patch 2 of the series. Also removed 'inline' from patch 4 and patch 8 of the series. Also re-arranged code to be able to remove the forward function declarations. Dropped patch 9 of the series, while the author works on cleaning up the commit message. v3: Updated patch 8 description to answer Jakub's questions ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 18c955b + 37d318d commit b0f46a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+246
-5594
lines changed

drivers/infiniband/hw/i40iw/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ccflags-y := -I $(srctree)/drivers/net/ethernet/intel/i40e
32

43
obj-$(CONFIG_INFINIBAND_I40IW) += i40iw.o
54

drivers/infiniband/hw/i40iw/i40iw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include <linux/slab.h>
4646
#include <linux/io.h>
4747
#include <linux/crc32c.h>
48+
#include <linux/net/intel/i40e_client.h>
4849
#include <rdma/ib_smi.h>
4950
#include <rdma/ib_verbs.h>
5051
#include <rdma/ib_pack.h>
@@ -57,7 +58,6 @@
5758
#include "i40iw_d.h"
5859
#include "i40iw_hmc.h"
5960

60-
#include <i40e_client.h>
6161
#include "i40iw_type.h"
6262
#include "i40iw_p.h"
6363
#include <rdma/i40iw-abi.h>

drivers/net/ethernet/intel/e100.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@
150150

151151

152152
#define DRV_NAME "e100"
153-
#define DRV_EXT "-NAPI"
154-
#define DRV_VERSION "3.5.24-k2"DRV_EXT
155153
#define DRV_DESCRIPTION "Intel(R) PRO/100 Network Driver"
156154
#define DRV_COPYRIGHT "Copyright(c) 1999-2006 Intel Corporation"
157155

@@ -165,7 +163,6 @@
165163
MODULE_DESCRIPTION(DRV_DESCRIPTION);
166164
MODULE_AUTHOR(DRV_COPYRIGHT);
167165
MODULE_LICENSE("GPL v2");
168-
MODULE_VERSION(DRV_VERSION);
169166
MODULE_FIRMWARE(FIRMWARE_D101M);
170167
MODULE_FIRMWARE(FIRMWARE_D101S);
171168
MODULE_FIRMWARE(FIRMWARE_D102E);
@@ -2430,7 +2427,6 @@ static void e100_get_drvinfo(struct net_device *netdev,
24302427
{
24312428
struct nic *nic = netdev_priv(netdev);
24322429
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
2433-
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
24342430
strlcpy(info->bus_info, pci_name(nic->pdev),
24352431
sizeof(info->bus_info));
24362432
}
@@ -3167,7 +3163,7 @@ static struct pci_driver e100_driver = {
31673163
static int __init e100_init_module(void)
31683164
{
31693165
if (((1 << debug) - 1) & NETIF_MSG_DRV) {
3170-
pr_info("%s, %s\n", DRV_DESCRIPTION, DRV_VERSION);
3166+
pr_info("%s\n", DRV_DESCRIPTION);
31713167
pr_info("%s\n", DRV_COPYRIGHT);
31723168
}
31733169
return pci_register_driver(&e100_driver);

drivers/net/ethernet/intel/e1000/e1000.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ struct net_device *e1000_get_hw_dev(struct e1000_hw *hw);
330330
dev_err(&adapter->pdev->dev, format, ## arg)
331331

332332
extern char e1000_driver_name[];
333-
extern const char e1000_driver_version[];
334333

335334
int e1000_open(struct net_device *netdev);
336335
int e1000_close(struct net_device *netdev);

drivers/net/ethernet/intel/e1000/e1000_ethtool.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,
533533

534534
strlcpy(drvinfo->driver, e1000_driver_name,
535535
sizeof(drvinfo->driver));
536-
strlcpy(drvinfo->version, e1000_driver_version,
537-
sizeof(drvinfo->version));
538536

539537
strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
540538
sizeof(drvinfo->bus_info));

drivers/net/ethernet/intel/e1000/e1000_main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
char e1000_driver_name[] = "e1000";
1212
static char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver";
13-
#define DRV_VERSION "7.3.21-k8-NAPI"
14-
const char e1000_driver_version[] = DRV_VERSION;
1513
static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation.";
1614

1715
/* e1000_pci_tbl - PCI Device ID Table
@@ -194,7 +192,6 @@ static struct pci_driver e1000_driver = {
194192
MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
195193
MODULE_DESCRIPTION("Intel(R) PRO/1000 Network Driver");
196194
MODULE_LICENSE("GPL v2");
197-
MODULE_VERSION(DRV_VERSION);
198195

199196
#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)
200197
static int debug = -1;
@@ -221,7 +218,7 @@ struct net_device *e1000_get_hw_dev(struct e1000_hw *hw)
221218
static int __init e1000_init_module(void)
222219
{
223220
int ret;
224-
pr_info("%s - version %s\n", e1000_driver_string, e1000_driver_version);
221+
pr_info("%s\n", e1000_driver_string);
225222

226223
pr_info("%s\n", e1000_copyright);
227224

drivers/net/ethernet/intel/e1000e/e1000.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ enum latency_range {
460460
};
461461

462462
extern char e1000e_driver_name[];
463-
extern const char e1000e_driver_version[];
464463

465464
void e1000e_check_options(struct e1000_adapter *adapter);
466465
void e1000e_set_ethtool_ops(struct net_device *netdev);

drivers/net/ethernet/intel/e1000e/ethtool.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,
633633
struct e1000_adapter *adapter = netdev_priv(netdev);
634634

635635
strlcpy(drvinfo->driver, e1000e_driver_name, sizeof(drvinfo->driver));
636-
strlcpy(drvinfo->version, e1000e_driver_version,
637-
sizeof(drvinfo->version));
638636

639637
/* EEPROM image version # is reported as firmware version # for
640638
* PCI-E controllers

drivers/net/ethernet/intel/e1000e/netdev.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@
2828

2929
#include "e1000.h"
3030

31-
#define DRV_EXTRAVERSION "-k"
32-
33-
#define DRV_VERSION "3.2.6" DRV_EXTRAVERSION
3431
char e1000e_driver_name[] = "e1000e";
35-
const char e1000e_driver_version[] = DRV_VERSION;
3632

3733
#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)
3834
static int debug = -1;
@@ -7899,8 +7895,7 @@ static struct pci_driver e1000_driver = {
78997895
**/
79007896
static int __init e1000_init_module(void)
79017897
{
7902-
pr_info("Intel(R) PRO/1000 Network Driver - %s\n",
7903-
e1000e_driver_version);
7898+
pr_info("Intel(R) PRO/1000 Network Driver\n");
79047899
pr_info("Copyright(c) 1999 - 2015 Intel Corporation.\n");
79057900

79067901
return pci_register_driver(&e1000_driver);
@@ -7922,6 +7917,5 @@ module_exit(e1000_exit_module);
79227917
MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
79237918
MODULE_DESCRIPTION("Intel(R) PRO/1000 Network Driver");
79247919
MODULE_LICENSE("GPL v2");
7925-
MODULE_VERSION(DRV_VERSION);
79267920

79277921
/* netdev.c */

drivers/net/ethernet/intel/fm10k/fm10k.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ struct fm10k_cb {
476476

477477
/* main */
478478
extern char fm10k_driver_name[];
479-
extern const char fm10k_driver_version[];
480479
int fm10k_init_queueing_scheme(struct fm10k_intfc *interface);
481480
void fm10k_clear_queueing_scheme(struct fm10k_intfc *interface);
482481
__be16 fm10k_tx_encap_offload(struct sk_buff *skb);

0 commit comments

Comments
 (0)