lkml.org 
[lkml]   [2020]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.5 45/65] hinic: fix a bug of rss configuration
    Date
    From: Luo bin <luobin9@huawei.com>

    [ Upstream commit 386d4716fd91869e07c731657f2cde5a33086516 ]

    should use real receive queue number to configure hw rss
    indirect table rather than maximal queue number

    Signed-off-by: Luo bin <luobin9@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/ethernet/huawei/hinic/hinic_main.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c
    index 2411ad270c98e..42d00b049c6e8 100644
    --- a/drivers/net/ethernet/huawei/hinic/hinic_main.c
    +++ b/drivers/net/ethernet/huawei/hinic/hinic_main.c
    @@ -356,7 +356,8 @@ static void hinic_enable_rss(struct hinic_dev *nic_dev)
    if (!num_cpus)
    num_cpus = num_online_cpus();

    - nic_dev->num_qps = min_t(u16, nic_dev->max_qps, num_cpus);
    + nic_dev->num_qps = hinic_hwdev_num_qps(hwdev);
    + nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus);

    nic_dev->rss_limit = nic_dev->num_qps;
    nic_dev->num_rss = nic_dev->num_qps;
    --
    2.20.1


    \
     
     \ /
      Last update: 2020-03-19 14:26    [W:4.027 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site