• Alan Brady's avatar
    i40e: fix u64 division usage · 6c32e0d9
    Alan Brady authored
    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: default avatarAlan Brady <alan.brady@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    6c32e0d9
i40e.h 33.3 KB