]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: hns3: add some VF VLAN information for command "ip link show"
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 19 Dec 2019 06:57:45 +0000 (14:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:20:39 +0000 (21:20 -0800)
This patch adds some VF VLAN information for command "ip link show".

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 76b4418d937c34d3710f5247cff7ce5eaa86673b..d1aafea918b07feb710a0796b4d0aeb0198d58fb 100644 (file)
@@ -2944,6 +2944,9 @@ static int hclge_get_vf_config(struct hnae3_handle *handle, int vf,
        ivf->trusted = vport->vf_info.trusted;
        ivf->min_tx_rate = 0;
        ivf->max_tx_rate = vport->vf_info.max_tx_rate;
+       ivf->vlan = vport->port_base_vlan_cfg.vlan_info.vlan_tag;
+       ivf->vlan_proto = htons(vport->port_base_vlan_cfg.vlan_info.vlan_proto);
+       ivf->qos = vport->port_base_vlan_cfg.vlan_info.qos;
        ether_addr_copy(ivf->mac, vport->vf_info.mac);
 
        return 0;