Commit cecd59d8 authored by Rajesh Borundia's avatar Rajesh Borundia Committed by David S. Miller

qlcnic: Allow vlan0 traffic

o Adapter allows vlan0 traffic in case of SR-IOV after setting
  QLC_SRIOV_ALLOW_VLAN0 bit even though we do not add vlan0 filters.
Signed-off-by: default avatarRajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2a355aec
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#define QLC_MAC_STAR_DEL 7 #define QLC_MAC_STAR_DEL 7
#define QLC_VF_FLOOD_BIT BIT_16 #define QLC_VF_FLOOD_BIT BIT_16
#define QLC_FLOOD_MODE 0x5 #define QLC_FLOOD_MODE 0x5
#define QLC_SRIOV_ALLOW_VLAN0 BIT_19
static int qlcnic_sriov_pf_get_vport_handle(struct qlcnic_adapter *, u8); static int qlcnic_sriov_pf_get_vport_handle(struct qlcnic_adapter *, u8);
...@@ -337,8 +338,11 @@ static int qlcnic_sriov_pf_cfg_vlan_filtering(struct qlcnic_adapter *adapter, ...@@ -337,8 +338,11 @@ static int qlcnic_sriov_pf_cfg_vlan_filtering(struct qlcnic_adapter *adapter,
return err; return err;
cmd.req.arg[1] = 0x4; cmd.req.arg[1] = 0x4;
if (enable) if (enable) {
cmd.req.arg[1] |= BIT_16; cmd.req.arg[1] |= BIT_16;
if (qlcnic_84xx_check(adapter))
cmd.req.arg[1] |= QLC_SRIOV_ALLOW_VLAN0;
}
err = qlcnic_issue_cmd(adapter, &cmd); err = qlcnic_issue_cmd(adapter, &cmd);
if (err) if (err)
......
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