Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327725
b: refs/heads/master
c: 7c5a524
h: refs/heads/master
i:
  327723: 1cb2e5a
v: v3
  • Loading branch information
Vasundhara Volam authored and David S. Miller committed Aug 30, 2012
1 parent 34fa374 commit 9fbc09e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cbdaf6d520b6bd9a1565525e5ad1967cb74e191
refs/heads/master: 7c5a524221dc3cf599a6aa4773eb0c1e2ca38adb
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/emulex/benet/be.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ static inline char *nic_name(struct pci_dev *pdev)
#define MAX_RX_POST BE_NAPI_WEIGHT /* Frags posted at a time */
#define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST)

#define MAX_VFS 30 /* Max VFs supported by BE3 FW */
#define FW_VER_LEN 32

struct be_dma_mem {
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,8 @@ static int be_get_config(struct be_adapter *adapter)
if (pos) {
pci_read_config_word(adapter->pdev, pos + PCI_SRIOV_TOTAL_VF,
&dev_num_vfs);
if (!lancer_chip(adapter))
dev_num_vfs = min_t(u16, dev_num_vfs, MAX_VFS);
adapter->dev_num_vfs = dev_num_vfs;
}
return 0;
Expand Down

0 comments on commit 9fbc09e

Please sign in to comment.