diff options
author | Jian Shen <shenjian15@huawei.com> | 2018-12-20 06:52:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-20 10:47:58 +0300 |
commit | 75edb610860fda65ceedb017fc69afabd2806b8b (patch) | |
tree | 10fd33d5405dd97d845fed6d3dd89e73313356b9 /lib/test_xarray.c | |
parent | 1b7d7b0581173219b82abbd81c88cf8aa7d402c2 (diff) | |
download | linux-75edb610860fda65ceedb017fc69afabd2806b8b.tar.xz |
net: hns3: add max vector number check for pf
Each pf supports max 64 vectors and 128 tqps. For 2p/4p core scenario,
there may be more than 64 cpus online. So the result of min_t(u16,
num_Online_cpus(), tqp_num) may be more than 64. This patch adds check
for the vector number.
Fixes: dd38c72604dc ("net: hns3: fix for coalesce configuration lost during reset")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions