diff options
author | Lior Levy <lior.levy@intel.com> | 2011-02-07 21:28:46 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-02-24 05:39:03 -0500 |
commit | 17dc566c5ee46e14021e6b8dd89098d3cb237208 (patch) | |
tree | 5d61a0b9fd3c2688aa0494126a6fd7d5dac95457 /drivers/net/igb/e1000_defines.h | |
parent | 6799746ad63b3df7ddf47797bb06467db35c6f94 (diff) |
igb: add support for VF Transmit rate limit using iproute2
Implemented igb_ndo_set_vf_bw function which is being used
by iproute2 tool. In addition, updated igb_ndo_get_vf_config function
to show the actual rate limit to the user.
The rate limitation can be configured only when the link is up.
The rate limit value can be ranged between 0 and actual
link speed measured in Mbps. A value of '0' disables the rate limit for
this specific VF.
iproute2 usage will be 'ip link set ethX vf Y rate Z'.
After the command is made, the rate will be changed instantly.
To view the current rate limit, use 'ip link show ethX'.
The rates will be zeroed only upon driver reload or a link speed change.
This feature is being supported only by 82576 device.
Signed-off-by: Lior Levy <lior.levy@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/igb/e1000_defines.h')
-rw-r--r-- | drivers/net/igb/e1000_defines.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/igb/e1000_defines.h b/drivers/net/igb/e1000_defines.h index 6319ed902bc0..ff46c91520af 100644 --- a/drivers/net/igb/e1000_defines.h +++ b/drivers/net/igb/e1000_defines.h | |||
@@ -770,4 +770,11 @@ | |||
770 | #define E1000_PCIEMISC_LX_DECISION 0x00000080 /* Lx power decision based | 770 | #define E1000_PCIEMISC_LX_DECISION 0x00000080 /* Lx power decision based |
771 | on DMA coal */ | 771 | on DMA coal */ |
772 | 772 | ||
773 | /* Tx Rate-Scheduler Config fields */ | ||
774 | #define E1000_RTTBCNRC_RS_ENA 0x80000000 | ||
775 | #define E1000_RTTBCNRC_RF_DEC_MASK 0x00003FFF | ||
776 | #define E1000_RTTBCNRC_RF_INT_SHIFT 14 | ||
777 | #define E1000_RTTBCNRC_RF_INT_MASK \ | ||
778 | (E1000_RTTBCNRC_RF_DEC_MASK << E1000_RTTBCNRC_RF_INT_SHIFT) | ||
779 | |||
773 | #endif | 780 | #endif |