net/mlx4_core: Dynamic VST to VST vlan/qos changes
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx4 / mlx4.h
index 7527293..5abcb65 100644 (file)
@@ -571,6 +571,24 @@ struct mlx4_cmd {
        u8                      comm_toggle;
 };
 
+enum {
+       MLX4_VF_IMMED_VLAN_FLAG_VLAN = 1 << 0,
+       MLX4_VF_IMMED_VLAN_FLAG_QOS = 1 << 1,
+};
+struct mlx4_vf_immed_vlan_work {
+       struct work_struct      work;
+       struct mlx4_priv        *priv;
+       int                     flags;
+       int                     slave;
+       int                     vlan_ix;
+       int                     orig_vlan_ix;
+       u8                      port;
+       u8                      qos;
+       u16                     vlan_id;
+       u16                     orig_vlan_id;
+};
+
+
 struct mlx4_uar_table {
        struct mlx4_bitmap      bitmap;
 };
@@ -1218,4 +1236,6 @@ static inline spinlock_t *mlx4_tlock(struct mlx4_dev *dev)
 
 #define NOT_MASKED_PD_BITS 17
 
+void mlx4_vf_immed_vlan_work_handler(struct work_struct *_work);
+
 #endif /* MLX4_H */