aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2019-09-05 21:31:36 +0800
committerDavid S. Miller <davem@davemloft.net>2019-09-06 15:20:34 +0200
commitd9c0f2756a33833b2653f7a3612814fa5f52a568 (patch)
tree7a181207d571f8b26bdc234f88a7e30e24b7a6ec /drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
parentstmmac: platform: adjust messages and move to dev level (diff)
downloadlinux-dev-d9c0f2756a33833b2653f7a3612814fa5f52a568.tar.xz
linux-dev-d9c0f2756a33833b2653f7a3612814fa5f52a568.zip
net: hns3: fix error VF index when setting VLAN offload
In original codes, the VF index used incorrectly in function hclge_set_vlan_rx_offload_cfg() and hclge_set_vlan_rx_offload_cfg(). When VF id is greater than 8, for example 9, it will set the same bit with VF id 1. This patch fixes it by using vport->vport_id % HCLGE_VF_NUM_PER_CMD / HCLGE_VF_NUM_PER_BYTE as the array index, instead of vport->vport_id / HCLGE_VF_NUM_PER_CMD. Fixes: 052ece6dc19c ("net: hns3: add ethtool related offload command") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions