Deleted Added
full compact
device.h (272683) device.h (273135)
1/*
2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 1022 unchanged lines hidden (view full) ---

1031enum mlx4_net_trans_rule_id {
1032 MLX4_NET_TRANS_RULE_ID_ETH = 0,
1033 MLX4_NET_TRANS_RULE_ID_IB,
1034 MLX4_NET_TRANS_RULE_ID_IPV6,
1035 MLX4_NET_TRANS_RULE_ID_IPV4,
1036 MLX4_NET_TRANS_RULE_ID_TCP,
1037 MLX4_NET_TRANS_RULE_ID_UDP,
1038 MLX4_NET_TRANS_RULE_NUM, /* should be last */
1/*
2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 1022 unchanged lines hidden (view full) ---

1031enum mlx4_net_trans_rule_id {
1032 MLX4_NET_TRANS_RULE_ID_ETH = 0,
1033 MLX4_NET_TRANS_RULE_ID_IB,
1034 MLX4_NET_TRANS_RULE_ID_IPV6,
1035 MLX4_NET_TRANS_RULE_ID_IPV4,
1036 MLX4_NET_TRANS_RULE_ID_TCP,
1037 MLX4_NET_TRANS_RULE_ID_UDP,
1038 MLX4_NET_TRANS_RULE_NUM, /* should be last */
1039 MLX4_NET_TRANS_RULE_DUMMY = -1, /* force enum to be signed */
1039};
1040
1041extern const u16 __sw_id_hw[];
1042
1043static inline int map_hw_to_sw_id(u16 header_id)
1044{
1045
1046 int i;

--- 6 unchanged lines hidden (view full) ---

1053
1054enum mlx4_net_trans_promisc_mode {
1055 MLX4_FS_REGULAR = 1,
1056 MLX4_FS_ALL_DEFAULT,
1057 MLX4_FS_MC_DEFAULT,
1058 MLX4_FS_UC_SNIFFER,
1059 MLX4_FS_MC_SNIFFER,
1060 MLX4_FS_MODE_NUM, /* should be last */
1040};
1041
1042extern const u16 __sw_id_hw[];
1043
1044static inline int map_hw_to_sw_id(u16 header_id)
1045{
1046
1047 int i;

--- 6 unchanged lines hidden (view full) ---

1054
1055enum mlx4_net_trans_promisc_mode {
1056 MLX4_FS_REGULAR = 1,
1057 MLX4_FS_ALL_DEFAULT,
1058 MLX4_FS_MC_DEFAULT,
1059 MLX4_FS_UC_SNIFFER,
1060 MLX4_FS_MC_SNIFFER,
1061 MLX4_FS_MODE_NUM, /* should be last */
1062 MLX4_FS_MODE_DUMMY = -1, /* force enum to be signed */
1061};
1062
1063struct mlx4_spec_eth {
1064 u8 dst_mac[6];
1065 u8 dst_mac_msk[6];
1066 u8 src_mac[6];
1067 u8 src_mac_msk[6];
1068 u8 ether_type_enable;

--- 216 unchanged lines hidden ---
1063};
1064
1065struct mlx4_spec_eth {
1066 u8 dst_mac[6];
1067 u8 dst_mac_msk[6];
1068 u8 src_mac[6];
1069 u8 src_mac_msk[6];
1070 u8 ether_type_enable;

--- 216 unchanged lines hidden ---