aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c7
-rw-r--r--drivers/net/hyperv/hyperv_net.h2
-rw-r--r--drivers/net/usb/Kconfig4
-rw-r--r--drivers/net/vmxnet3/vmxnet3_drv.c2
-rw-r--r--drivers/net/wireless/Kconfig1
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 4247356c16ff..1a162d21d8ac 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -6527,11 +6527,9 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
6527 6527
6528 /* We control everything through one PF */ 6528 /* We control everything through one PF */
6529 func = SOURCEPF_GET(readl(adapter->regs + PL_WHOAMI)); 6529 func = SOURCEPF_GET(readl(adapter->regs + PL_WHOAMI));
6530 if ((pdev->device == 0xa000 && func != 0) || 6530 if (func != ent->driver_data) {
6531 func != ent->driver_data) {
6532 pci_save_state(pdev); /* to restore SR-IOV later */ 6531 pci_save_state(pdev); /* to restore SR-IOV later */
6533 err = 0; 6532 goto sriov;
6534 goto out_unmap_bar0;
6535 } 6533 }
6536 6534
6537 adapter->pdev = pdev; 6535 adapter->pdev = pdev;
@@ -6697,6 +6695,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
6697 if (is_offload(adapter)) 6695 if (is_offload(adapter))
6698 attach_ulds(adapter); 6696 attach_ulds(adapter);
6699 6697
6698sriov:
6700#ifdef CONFIG_PCI_IOV 6699#ifdef CONFIG_PCI_IOV
6701 if (func < ARRAY_SIZE(num_vf) && num_vf[func] > 0) 6700 if (func < ARRAY_SIZE(num_vf) && num_vf[func] > 0)
6702 if (pci_enable_sriov(pdev, num_vf[func]) == 0) 6701 if (pci_enable_sriov(pdev, num_vf[func]) == 0)
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 02a3ee282eee..d5e07def6a59 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -585,7 +585,7 @@ struct nvsp_message {
585 585
586#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*16) /* 16MB */ 586#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*16) /* 16MB */
587#define NETVSC_RECEIVE_BUFFER_SIZE_LEGACY (1024*1024*15) /* 15MB */ 587#define NETVSC_RECEIVE_BUFFER_SIZE_LEGACY (1024*1024*15) /* 15MB */
588#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 * 16) /* 16MB */ 588#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 * 15) /* 15MB */
589#define NETVSC_INVALID_INDEX -1 589#define NETVSC_INVALID_INDEX -1
590 590
591 591
diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig
index 9f194a0bef7c..37eed4d84e9c 100644
--- a/drivers/net/usb/Kconfig
+++ b/drivers/net/usb/Kconfig
@@ -5,8 +5,8 @@ comment "Host-side USB support is needed for USB Network Adapter support"
5 depends on !USB && NET 5 depends on !USB && NET
6 6
7menuconfig USB_NET_DRIVERS 7menuconfig USB_NET_DRIVERS
8 bool "USB Network Adapters" 8 tristate "USB Network Adapters"
9 default y 9 default USB if USB
10 depends on USB && NET 10 depends on USB && NET
11 11
12if USB_NET_DRIVERS 12if USB_NET_DRIVERS
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index b76f7dcde0db..d0db371c30a7 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -766,7 +766,7 @@ vmxnet3_map_pkt(struct sk_buff *skb, struct vmxnet3_tx_ctx *ctx,
766 gdesc->dword[3] = 0; 766 gdesc->dword[3] = 0;
767 767
768 netdev_dbg(adapter->netdev, 768 netdev_dbg(adapter->netdev,
769 "txd[%u]: 0x%llu %u %u\n", 769 "txd[%u]: 0x%llx %u %u\n",
770 tq->tx_ring.next2fill, le64_to_cpu(gdesc->txd.addr), 770 tq->tx_ring.next2fill, le64_to_cpu(gdesc->txd.addr),
771 le32_to_cpu(gdesc->dword[2]), gdesc->dword[3]); 771 le32_to_cpu(gdesc->dword[2]), gdesc->dword[3]);
772 vmxnet3_cmd_ring_adv_next2fill(&tq->tx_ring); 772 vmxnet3_cmd_ring_adv_next2fill(&tq->tx_ring);
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index b2137e8f7ca6..16604bdf5197 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -189,6 +189,7 @@ config USB_NET_RNDIS_WLAN
189 tristate "Wireless RNDIS USB support" 189 tristate "Wireless RNDIS USB support"
190 depends on USB 190 depends on USB
191 depends on CFG80211 191 depends on CFG80211
192 select USB_NET_DRIVERS
192 select USB_USBNET 193 select USB_USBNET
193 select USB_NET_CDCETHER 194 select USB_NET_CDCETHER
194 select USB_NET_RNDIS_HOST 195 select USB_NET_RNDIS_HOST