aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mlx4/device.h')
-rw-r--r--include/linux/mlx4/device.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 52c23a892bab..24ce6bdd540e 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -33,6 +33,7 @@
33#ifndef MLX4_DEVICE_H 33#ifndef MLX4_DEVICE_H
34#define MLX4_DEVICE_H 34#define MLX4_DEVICE_H
35 35
36#include <linux/if_ether.h>
36#include <linux/pci.h> 37#include <linux/pci.h>
37#include <linux/completion.h> 38#include <linux/completion.h>
38#include <linux/radix-tree.h> 39#include <linux/radix-tree.h>
@@ -207,6 +208,7 @@ enum mlx4_event {
207 MLX4_EVENT_TYPE_CMD = 0x0a, 208 MLX4_EVENT_TYPE_CMD = 0x0a,
208 MLX4_EVENT_TYPE_VEP_UPDATE = 0x19, 209 MLX4_EVENT_TYPE_VEP_UPDATE = 0x19,
209 MLX4_EVENT_TYPE_COMM_CHANNEL = 0x18, 210 MLX4_EVENT_TYPE_COMM_CHANNEL = 0x18,
211 MLX4_EVENT_TYPE_OP_REQUIRED = 0x1a,
210 MLX4_EVENT_TYPE_FATAL_WARNING = 0x1b, 212 MLX4_EVENT_TYPE_FATAL_WARNING = 0x1b,
211 MLX4_EVENT_TYPE_FLR_EVENT = 0x1c, 213 MLX4_EVENT_TYPE_FLR_EVENT = 0x1c,
212 MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT = 0x1d, 214 MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT = 0x1d,
@@ -619,7 +621,7 @@ struct mlx4_eth_av {
619 u8 dgid[16]; 621 u8 dgid[16];
620 u32 reserved4[2]; 622 u32 reserved4[2];
621 __be16 vlan; 623 __be16 vlan;
622 u8 mac[6]; 624 u8 mac[ETH_ALEN];
623}; 625};
624 626
625union mlx4_ext_av { 627union mlx4_ext_av {
@@ -913,10 +915,10 @@ enum mlx4_net_trans_promisc_mode {
913}; 915};
914 916
915struct mlx4_spec_eth { 917struct mlx4_spec_eth {
916 u8 dst_mac[6]; 918 u8 dst_mac[ETH_ALEN];
917 u8 dst_mac_msk[6]; 919 u8 dst_mac_msk[ETH_ALEN];
918 u8 src_mac[6]; 920 u8 src_mac[ETH_ALEN];
919 u8 src_mac_msk[6]; 921 u8 src_mac_msk[ETH_ALEN];
920 u8 ether_type_enable; 922 u8 ether_type_enable;
921 __be16 ether_type; 923 __be16 ether_type;
922 __be16 vlan_id_msk; 924 __be16 vlan_id_msk;
@@ -1052,11 +1054,6 @@ struct _rule_hw {
1052 }; 1054 };
1053}; 1055};
1054 1056
1055/* translating DMFS verbs sniffer rule to the FW API would need two reg IDs */
1056struct mlx4_flow_handle {
1057 u64 reg_id[2];
1058};
1059
1060int mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port, u32 qpn, 1057int mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port, u32 qpn,
1061 enum mlx4_net_trans_promisc_mode mode); 1058 enum mlx4_net_trans_promisc_mode mode);
1062int mlx4_flow_steer_promisc_remove(struct mlx4_dev *dev, u8 port, 1059int mlx4_flow_steer_promisc_remove(struct mlx4_dev *dev, u8 port,