diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2016-08-22 13:25:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 04:24:52 +0300 |
commit | 11a85d759ea5064c986c47112607681c09cdcdd9 (patch) | |
tree | 617a8565f9faf181056089a2085a801fe921cec3 /drivers/net/ethernet/qlogic/qed/qed_l2.c | |
parent | a044df83e194c28697f6aae61851c3d6e34b8456 (diff) | |
download | linux-11a85d759ea5064c986c47112607681c09cdcdd9.tar.xz |
qed: Prevent VFs from pause flooding
Firmware would silently drop any control frame sent by VF to prevent
a malicious VF from generating pause flood in the network.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_l2.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_l2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_l2.c b/drivers/net/ethernet/qlogic/qed/qed_l2.c index c04162dabfea..bf433016551a 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_l2.c +++ b/drivers/net/ethernet/qlogic/qed/qed_l2.c @@ -101,6 +101,9 @@ int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn, p_ramrod->tx_switching_en = p_params->tx_switching; + p_ramrod->ctl_frame_mac_check_en = !!p_params->check_mac; + p_ramrod->ctl_frame_ethtype_check_en = !!p_params->check_ethtype; + /* Software Function ID in hwfn (PFs are 0 - 15, VFs are 16 - 135) */ p_ramrod->sw_fid = qed_concrete_to_sw_fid(p_hwfn->cdev, p_params->concrete_fid); |