Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255639
b: refs/heads/master
c: 86b4db3
h: refs/heads/master
i:
  255637: 9f1493b
  255635: 6e5d787
  255631: 6831fd0
v: v3
  • Loading branch information
John Fastabend authored and Jeff Kirsher committed Jun 21, 2011
1 parent e556c85 commit 05bee2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: aba70d5e6c1c188fe45c1a782060440b6c2ea759
refs/heads/master: 86b4db3bcce714d6bdd8c056158821301624bf00
6 changes: 5 additions & 1 deletion trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2939,14 +2939,18 @@ static void ixgbe_setup_mrqc(struct ixgbe_adapter *adapter)
u32 rxcsum;
int i, j;
u8 tcs = netdev_get_num_tc(adapter->netdev);
int maxq = adapter->ring_feature[RING_F_RSS].indices;

if (tcs)
maxq = min(maxq, adapter->num_tx_queues / tcs);

/* Fill out hash function seeds */
for (i = 0; i < 10; i++)
IXGBE_WRITE_REG(hw, IXGBE_RSSRK(i), seed[i]);

/* Fill out redirection table */
for (i = 0, j = 0; i < 128; i++, j++) {
if (j == adapter->ring_feature[RING_F_RSS].indices)
if (j == maxq)
j = 0;
/* reta = 4-byte sliding window of
* 0x00..(indices-1)(indices-1)00..etc. */
Expand Down

0 comments on commit 05bee2b

Please sign in to comment.