mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
qed: Correct default vlan behavior
When no vlan filter is configured, firmware has a configurable default on whether to pass only untagged packets or all packets regardless of their tagging. Driver currently doesn't set this field in the necessary ramrod, causing the default to always be 'receive all'. Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5c3da57d70
commit
e6bd89232b
@ -72,6 +72,7 @@ int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn,
|
||||
p_ramrod->mtu = cpu_to_le16(p_params->mtu);
|
||||
p_ramrod->inner_vlan_removal_en = p_params->remove_inner_vlan;
|
||||
p_ramrod->drop_ttl0_en = p_params->drop_ttl0;
|
||||
p_ramrod->untagged = p_params->only_untagged;
|
||||
|
||||
SET_FIELD(rx_mode, ETH_VPORT_RX_MODE_UCAST_DROP_ALL, 1);
|
||||
SET_FIELD(rx_mode, ETH_VPORT_RX_MODE_MCAST_DROP_ALL, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user