summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/mlx4.h
diff options
context:
space:
mode:
authorRony Efraim2013-06-27 18:05:22 +0200
committerDavid S. Miller2013-07-01 22:10:57 +0200
commit0a6eac24583848490e9a9c02daef5e33c997431f (patch)
treec314d372854be62218ccaccfc93ebcd9cae29efb /drivers/net/ethernet/mellanox/mlx4/mlx4.h
parentnet/mlx4_core: Dynamic VST to VST vlan/qos changes (diff)
downloadkernel-qcow2-linux-0a6eac24583848490e9a9c02daef5e33c997431f.tar.gz
kernel-qcow2-linux-0a6eac24583848490e9a9c02daef5e33c997431f.tar.xz
kernel-qcow2-linux-0a6eac24583848490e9a9c02daef5e33c997431f.zip
net/mlx4_core: Add HW enforcement to VF link state
When the firmware supports the UPDATE_QP command, if the VF link is disabled, block all QPs opened by the VF, by programming the UPDATE_QP command to drop all RX & TX traffic to/from these QPs. Operates only in VST mode. Signed-off-by: Rony Efraim <ronye@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mlx4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
index 5abcb6501e30..17d9277e33ef 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
+++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
@@ -574,6 +574,7 @@ struct mlx4_cmd {
enum {
MLX4_VF_IMMED_VLAN_FLAG_VLAN = 1 << 0,
MLX4_VF_IMMED_VLAN_FLAG_QOS = 1 << 1,
+ MLX4_VF_IMMED_VLAN_FLAG_LINK_DISABLE = 1 << 2,
};
struct mlx4_vf_immed_vlan_work {
struct work_struct work;