Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203632
b: refs/heads/master
c: 0bdc0d7
h: refs/heads/master
v: v3
  • Loading branch information
Shreyas Bhatewara authored and David S. Miller committed Jul 19, 2010
1 parent d698ba2 commit 4d8f7ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9a5f210c5ef338295cf1c29d98825722351bed7
refs/heads/master: 0bdc0d70c535d59c10add461b96340425f0aac7d
13 changes: 10 additions & 3 deletions trunk/drivers/net/vmxnet3/vmxnet3_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2302,9 +2302,13 @@ vmxnet3_alloc_intr_resources(struct vmxnet3_adapter *adapter)
adapter->intr.mask_mode = (cfg >> 2) & 0x3;

if (adapter->intr.type == VMXNET3_IT_AUTO) {
int err;
adapter->intr.type = VMXNET3_IT_MSIX;
}

#ifdef CONFIG_PCI_MSI
if (adapter->intr.type == VMXNET3_IT_MSIX) {
int err;

adapter->intr.msix_entries[0].entry = 0;
err = pci_enable_msix(adapter->pdev, adapter->intr.msix_entries,
VMXNET3_LINUX_MAX_MSIX_VECT);
Expand All @@ -2313,15 +2317,18 @@ vmxnet3_alloc_intr_resources(struct vmxnet3_adapter *adapter)
adapter->intr.type = VMXNET3_IT_MSIX;
return;
}
#endif
adapter->intr.type = VMXNET3_IT_MSI;
}

if (adapter->intr.type == VMXNET3_IT_MSI) {
int err;
err = pci_enable_msi(adapter->pdev);
if (!err) {
adapter->intr.num_intrs = 1;
adapter->intr.type = VMXNET3_IT_MSI;
return;
}
}
#endif /* CONFIG_PCI_MSI */

adapter->intr.type = VMXNET3_IT_INTX;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/vmxnet3/vmxnet3_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
/*
* Version numbers
*/
#define VMXNET3_DRIVER_VERSION_STRING "1.0.5.0-k"
#define VMXNET3_DRIVER_VERSION_STRING "1.0.13.0-k"

/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
#define VMXNET3_DRIVER_VERSION_NUM 0x01000500
#define VMXNET3_DRIVER_VERSION_NUM 0x01000B00


/*
Expand Down

0 comments on commit 4d8f7ec

Please sign in to comment.