Commit a60b3a13 authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller

be2net: Fix to display the VLAN priority for a VF

VLAN priority is not being displayed for a VF currently when user executes
"ip link show" command. This patch fixes it.
Signed-off-by: default avatarAjit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9fc0e53
...@@ -1201,8 +1201,8 @@ static int be_get_vf_config(struct net_device *netdev, int vf, ...@@ -1201,8 +1201,8 @@ static int be_get_vf_config(struct net_device *netdev, int vf,
vi->vf = vf; vi->vf = vf;
vi->tx_rate = vf_cfg->tx_rate; vi->tx_rate = vf_cfg->tx_rate;
vi->vlan = vf_cfg->vlan_tag; vi->vlan = vf_cfg->vlan_tag & VLAN_VID_MASK;
vi->qos = 0; vi->qos = vf_cfg->vlan_tag >> VLAN_PRIO_SHIFT;
memcpy(&vi->mac, vf_cfg->mac_addr, ETH_ALEN); memcpy(&vi->mac, vf_cfg->mac_addr, ETH_ALEN);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment