Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349233
b: refs/heads/master
c: ca4c7b3
h: refs/heads/master
i:
  349231: 8b2a00c
v: v3
  • Loading branch information
Or Gerlitz authored and David S. Miller committed Jan 18, 2013
1 parent aff5bdd commit cee5fd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 213815a1e6ae70b9648483b110bc5081795f99e8
refs/heads/master: ca4c7b35f75492de7fbf5ee95be07481c348caee
11 changes: 2 additions & 9 deletions trunk/drivers/net/ethernet/mellanox/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1790,15 +1790,8 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
int i;

if (msi_x) {
/* In multifunction mode each function gets 2 msi-X vectors
* one for data path completions anf the other for asynch events
* or command completions */
if (mlx4_is_mfunc(dev)) {
nreq = 2;
} else {
nreq = min_t(int, dev->caps.num_eqs -
dev->caps.reserved_eqs, nreq);
}
nreq = min_t(int, dev->caps.num_eqs - dev->caps.reserved_eqs,
nreq);

entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL);
if (!entries)
Expand Down

0 comments on commit cee5fd9

Please sign in to comment.