Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203344
b: refs/heads/master
c: c0f2276
h: refs/heads/master
v: v3
  • Loading branch information
Emil Tantilov authored and David S. Miller committed Jul 2, 2010
1 parent 0bedc9e commit 475c8fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 5fa8517f038d51d571981fb495206cc30ed91b06
refs/heads/master: c0f2276f3601a96b29d4347c5938e9494e8e4e5d
5 changes: 1 addition & 4 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2091,9 +2091,6 @@ static void __devinit igb_probe_vfs(struct igb_adapter * adapter)
#ifdef CONFIG_PCI_IOV
struct pci_dev *pdev = adapter->pdev;

if (adapter->vfs_allocated_count > 7)
adapter->vfs_allocated_count = 7;

if (adapter->vfs_allocated_count) {
adapter->vf_data = kcalloc(adapter->vfs_allocated_count,
sizeof(struct vf_data_storage),
Expand Down Expand Up @@ -2258,7 +2255,7 @@ static int __devinit igb_sw_init(struct igb_adapter *adapter)

#ifdef CONFIG_PCI_IOV
if (hw->mac.type == e1000_82576)
adapter->vfs_allocated_count = max_vfs;
adapter->vfs_allocated_count = (max_vfs > 7) ? 7 : max_vfs;

#endif /* CONFIG_PCI_IOV */
adapter->rss_queues = min_t(u32, IGB_MAX_RX_QUEUES, num_online_cpus());
Expand Down

0 comments on commit 475c8fc

Please sign in to comment.