[Intel-wired-lan] [PATCH] ixgbe: add a callback to set the maximum transmit bitrate

Bowers, AndrewX andrewx.bowers at intel.com
Tue Mar 1 19:16:16 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Rostislav Pehlivanov
> Sent: Wednesday, January 27, 2016 10:34 AM
> To: intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; linux-
> kernel at vger.kernel.org; Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>;
> Brandeburg, Jesse <jesse.brandeburg at intel.com>; Nelson, Shannon
> <shannon.nelson at intel.com>
> Cc: Rostislav Pehlivanov <atomnuker at gmail.com>
> Subject: [Intel-wired-lan] [PATCH] ixgbe: add a callback to set the maximum
> transmit bitrate
> 
> This commit adds a callback which allows to adjust the maximum transmit
> bitrate the card can output. This makes it possible to get a smooth traffic
> instead of the default burst-y behaviour when trying to output e.g. a video
> stream.
> 
> Much of the logic needed to get a correct bcnrc_val was taken from the
> ixgbe_set_vf_rate_limit() function.
> 
> Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_main.c  | 31
> ++++++++++++++++++++++++++
> drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c |  2 +-
> drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h |  1 +
>  3 files changed, 33 insertions(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Traffic rate smooth as expected


More information about the Intel-wired-lan mailing list