Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314527
b: refs/heads/master
c: f00b0da
h: refs/heads/master
i:
  314525: c243633
  314523: e1ff58e
  314519: 7f9b2d9
  314511: 8e3a9a5
  314495: f33d7ae
v: v3
  • Loading branch information
Lior Levy authored and Jeff Kirsher committed Jun 20, 2012
1 parent 76ebb14 commit b549e59
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 7500673be30f9467cd1a0e065c93e75c5213b44d
refs/heads/master: f00b0da776fda1abc481578e3932a668f603d72d
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/intel/igb/e1000_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@

/* TX Rate Limit Registers */
#define E1000_RTTDQSEL 0x3604 /* Tx Desc Plane Queue Select - WO */
#define E1000_RTTBCNRM 0x3690 /* Tx BCN Rate-scheduler MMW */
#define E1000_RTTBCNRC 0x36B0 /* Tx BCN Rate-Scheduler Config - WO */

/* Split and Replication RX Control - RW */
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/net/ethernet/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6997,6 +6997,11 @@ static void igb_set_vf_rate_limit(struct e1000_hw *hw, int vf, int tx_rate,
}

wr32(E1000_RTTDQSEL, vf); /* vf X uses queue X */
/*
* Set global transmit compensation time to the MMW_SIZE in RTTBCNRM
* register. MMW_SIZE=0x014 if 9728-byte jumbo is supported.
*/
wr32(E1000_RTTBCNRM, 0x14);
wr32(E1000_RTTBCNRC, bcnrc_val);
}

Expand Down

0 comments on commit b549e59

Please sign in to comment.