]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix u64 division usage
authorAlan Brady <alan.brady@intel.com>
Mon, 9 Oct 2017 22:48:45 +0000 (15:48 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 17 Oct 2017 17:48:52 +0000 (10:48 -0700)
commit351a253bb9635161cb78a91ac708fd60a70d58d9
treedc9340d92558353a984a998b7cb77283fe353f2e
parenta6f0a0c20bde57f05faa0dfad6e8f4d93ed8dd19
i40e: fix u64 division usage

Commit 52eb1ff93e98 ("i40e: Add support setting TC max bandwidth rates")
and commit 1ea6f21ae530 ("i40e: Refactor VF BW rate limiting") add some
needed functionality for TC bandwidth rate limiting.  Unfortunately they
introduce several usages of unsigned 64-bit division which needs to be
handled special by the kernel to support all architectures.

Fixes: 52eb1ff93e98 ("i40e: Add support setting TC max bandwidth
rates")
Fixes: 1ea6f21ae530 ("i40e: Refactor VF BW rate limiting")
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c