qp.c (96dc3fc5f1d66b20cdf839d571c7b907e08d5d00) | qp.c (795b609c8b59f8f20fa9d72bf8b4ae3b8aa5582c) |
---|---|
1/* 2 * Copyright (c) 2013-2015, Mellanox Technologies. 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: --- 1069 unchanged lines hidden (view full) --- 1078 in = kvzalloc(inlen, GFP_KERNEL); 1079 if (!in) { 1080 err = -ENOMEM; 1081 goto err_umem; 1082 } 1083 1084 sqc = MLX5_ADDR_OF(create_sq_in, in, ctx); 1085 MLX5_SET(sqc, sqc, flush_in_error_en, 1); | 1/* 2 * Copyright (c) 2013-2015, Mellanox Technologies. 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: --- 1069 unchanged lines hidden (view full) --- 1078 in = kvzalloc(inlen, GFP_KERNEL); 1079 if (!in) { 1080 err = -ENOMEM; 1081 goto err_umem; 1082 } 1083 1084 sqc = MLX5_ADDR_OF(create_sq_in, in, ctx); 1085 MLX5_SET(sqc, sqc, flush_in_error_en, 1); |
1086 if (MLX5_CAP_ETH(dev->mdev, multi_pkt_send_wqe)) 1087 MLX5_SET(sqc, sqc, allow_multi_pkt_send_wqe, 1); |
|
1086 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); 1087 MLX5_SET(sqc, sqc, user_index, MLX5_GET(qpc, qpc, user_index)); 1088 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); 1089 MLX5_SET(sqc, sqc, tis_lst_sz, 1); 1090 MLX5_SET(sqc, sqc, tis_num_0, sq->tisn); 1091 if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) && 1092 MLX5_CAP_ETH(dev->mdev, swp)) 1093 MLX5_SET(sqc, sqc, allow_swp, 1); --- 3977 unchanged lines hidden --- | 1088 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); 1089 MLX5_SET(sqc, sqc, user_index, MLX5_GET(qpc, qpc, user_index)); 1090 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); 1091 MLX5_SET(sqc, sqc, tis_lst_sz, 1); 1092 MLX5_SET(sqc, sqc, tis_num_0, sq->tisn); 1093 if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) && 1094 MLX5_CAP_ETH(dev->mdev, swp)) 1095 MLX5_SET(sqc, sqc, allow_swp, 1); --- 3977 unchanged lines hidden --- |