Deleted Added
full compact
main.c (291694) main.c (299179)
1/*
2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
4 * Copyright (c) 2005, 2006, 2007, 2008, 2014 Mellanox Technologies. All rights reserved.
5 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved.
6 *
7 * This software is available to you under a choice of one of two
8 * licenses. You may choose to be licensed under the terms of the GNU

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

154static int high_rate_steer;
155module_param(high_rate_steer, int, 0444);
156MODULE_PARM_DESC(high_rate_steer, "Enable steering mode for higher packet rate"
157 " (default off)");
158
159static int fast_drop;
160module_param_named(fast_drop, fast_drop, int, 0444);
161MODULE_PARM_DESC(fast_drop,
1/*
2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
4 * Copyright (c) 2005, 2006, 2007, 2008, 2014 Mellanox Technologies. All rights reserved.
5 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved.
6 *
7 * This software is available to you under a choice of one of two
8 * licenses. You may choose to be licensed under the terms of the GNU

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

154static int high_rate_steer;
155module_param(high_rate_steer, int, 0444);
156MODULE_PARM_DESC(high_rate_steer, "Enable steering mode for higher packet rate"
157 " (default off)");
158
159static int fast_drop;
160module_param_named(fast_drop, fast_drop, int, 0444);
161MODULE_PARM_DESC(fast_drop,
162 "Enable fast packet drop when no recieve WQEs are posted");
162 "Enable fast packet drop when no receive WQEs are posted");
163
164int mlx4_enable_64b_cqe_eqe = 1;
165module_param_named(enable_64b_cqe_eqe, mlx4_enable_64b_cqe_eqe, int, 0644);
166MODULE_PARM_DESC(enable_64b_cqe_eqe,
167 "Enable 64 byte CQEs/EQEs when the the FW supports this if non-zero (default: 1)");
168
169#define HCA_GLOBAL_CAP_MASK 0
170

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

2447 return err;
2448 }
2449 return __mlx4_counter_alloc(dev, 0, port, idx);
2450}
2451EXPORT_SYMBOL_GPL(mlx4_counter_alloc);
2452
2453void __mlx4_counter_free(struct mlx4_dev *dev, int slave, int port, u32 idx)
2454{
163
164int mlx4_enable_64b_cqe_eqe = 1;
165module_param_named(enable_64b_cqe_eqe, mlx4_enable_64b_cqe_eqe, int, 0644);
166MODULE_PARM_DESC(enable_64b_cqe_eqe,
167 "Enable 64 byte CQEs/EQEs when the the FW supports this if non-zero (default: 1)");
168
169#define HCA_GLOBAL_CAP_MASK 0
170

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

2447 return err;
2448 }
2449 return __mlx4_counter_alloc(dev, 0, port, idx);
2450}
2451EXPORT_SYMBOL_GPL(mlx4_counter_alloc);
2452
2453void __mlx4_counter_free(struct mlx4_dev *dev, int slave, int port, u32 idx)
2454{
2455 /* check if native or slave and deletes acordingly */
2455 /* check if native or slave and deletes accordingly */
2456 struct mlx4_priv *priv = mlx4_priv(dev);
2457 struct counter_index *pf, *tmp_pf;
2458 struct counter_index *vf, *tmp_vf;
2459 int first;
2460
2461
2462 if (idx == MLX4_SINK_COUNTER_INDEX) {
2463 mlx4_dbg(dev, "%s: try to delete default counter index %d for port %d\n"

--- 1418 unchanged lines hidden ---
2456 struct mlx4_priv *priv = mlx4_priv(dev);
2457 struct counter_index *pf, *tmp_pf;
2458 struct counter_index *vf, *tmp_vf;
2459 int first;
2460
2461
2462 if (idx == MLX4_SINK_COUNTER_INDEX) {
2463 mlx4_dbg(dev, "%s: try to delete default counter index %d for port %d\n"

--- 1418 unchanged lines hidden ---