net/ice/base: fix rate limit burst size calculation
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:15 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:48 +0000 (20:31 +0200)
commite4b73bee79bf6db14e9c98e09b48fd532b4b95df
treef5007df1080931cdae5dd41e10a5cbd3da0e77a4
parentd67818497669e0ca9ec1cf286d780b385e09d4bc
net/ice/base: fix rate limit burst size calculation

When the MSB is not set, the lower 11 bits do not represent bytes, but
chunks of 64 bytes. Adjust the rate limit burst size calculation
accordingly, and update the comments to indicate the way the hardware
actually works.

Fixes: 93e84b1bfc92 ("net/ice/base: add basic Tx scheduler")
Cc: stable@dpdk.org
Signed-off-by: Ben Shelton <benjamin.h.shelton@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_sched.c
drivers/net/ice/base/ice_sched.h