]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: fix an incorrect comment for num_tqps in struct hclgevf_dev
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 30 May 2020 01:08:30 +0000 (09:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 00:41:22 +0000 (17:41 -0700)
struct hclgevf_dev stands for VF device, its field num_tqps
indicates the number of VF's task queue pairs, so the comment
is incorrect, replace 'PF' with 'VF'.

Reported-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h

index 738de124cfc4e9f92836763de9d51593d6e336b0..c1fac8920ae312cab6c8936dc6ff55ed9f9d2c76 100644 (file)
@@ -278,7 +278,7 @@ struct hclgevf_dev {
        struct semaphore reset_sem;     /* protect reset process */
 
        u32 fw_version;
-       u16 num_tqps;           /* num task queue pairs of this PF */
+       u16 num_tqps;           /* num task queue pairs of this VF */
 
        u16 alloc_rss_size;     /* allocated RSS task queue */
        u16 rss_size_max;       /* HW defined max RSS task queue */