]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: add a callback to set the maximum transmit bitrate
authorRostislav Pehlivanov <atomnuker@gmail.com>
Wed, 27 Jan 2016 18:33:30 +0000 (18:33 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Apr 2016 00:44:46 +0000 (17:44 -0700)
commit79802757ef13a0830930d2d56edf1fefbcb0be88
tree353b7048bdfb86143c617c2206c03b94e1f2f78d
parent78b532624056f1b184e01a5ce1bd47a1d5d9b98e
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@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h