Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f36ae342
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f36ae342
编写于
1月 30, 2012
作者:
R
Roland Dreier
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'cma', 'ipath', 'misc', 'mlx4', 'nes' and 'qib' into for-next
上级
9ced69ca
ef535287
e47e321a
a6f7feae
c5488c57
b6bfefb0
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
30 addition
and
26 deletion
+30
-26
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_cmd.c
+1
-0
drivers/infiniband/core/verbs.c
drivers/infiniband/core/verbs.c
+1
-1
drivers/infiniband/hw/ipath/ipath_fs.c
drivers/infiniband/hw/ipath/ipath_fs.c
+1
-1
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx4/mad.c
+2
-5
drivers/infiniband/hw/nes/nes.c
drivers/infiniband/hw/nes/nes.c
+1
-1
drivers/infiniband/hw/nes/nes.h
drivers/infiniband/hw/nes/nes.h
+1
-1
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_cm.c
+7
-3
drivers/infiniband/hw/nes/nes_cm.h
drivers/infiniband/hw/nes/nes_cm.h
+1
-1
drivers/infiniband/hw/nes/nes_context.h
drivers/infiniband/hw/nes/nes_context.h
+1
-1
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_hw.c
+1
-1
drivers/infiniband/hw/nes/nes_hw.h
drivers/infiniband/hw/nes/nes_hw.h
+1
-1
drivers/infiniband/hw/nes/nes_mgt.c
drivers/infiniband/hw/nes/nes_mgt.c
+1
-1
drivers/infiniband/hw/nes/nes_mgt.h
drivers/infiniband/hw/nes/nes_mgt.h
+1
-1
drivers/infiniband/hw/nes/nes_nic.c
drivers/infiniband/hw/nes/nes_nic.c
+1
-1
drivers/infiniband/hw/nes/nes_user.h
drivers/infiniband/hw/nes/nes_user.h
+1
-1
drivers/infiniband/hw/nes/nes_utils.c
drivers/infiniband/hw/nes/nes_utils.c
+1
-1
drivers/infiniband/hw/nes/nes_verbs.c
drivers/infiniband/hw/nes/nes_verbs.c
+4
-2
drivers/infiniband/hw/nes/nes_verbs.h
drivers/infiniband/hw/nes/nes_verbs.h
+1
-1
drivers/infiniband/hw/qib/qib_iba6120.c
drivers/infiniband/hw/qib/qib_iba6120.c
+1
-1
drivers/infiniband/hw/qib/qib_pcie.c
drivers/infiniband/hw/qib/qib_pcie.c
+1
-1
未找到文件。
drivers/infiniband/core/uverbs_cmd.c
浏览文件 @
f36ae342
...
...
@@ -1485,6 +1485,7 @@ ssize_t ib_uverbs_create_qp(struct ib_uverbs_file *file,
qp
->
event_handler
=
attr
.
event_handler
;
qp
->
qp_context
=
attr
.
qp_context
;
qp
->
qp_type
=
attr
.
qp_type
;
atomic_set
(
&
qp
->
usecnt
,
0
);
atomic_inc
(
&
pd
->
usecnt
);
atomic_inc
(
&
attr
.
send_cq
->
usecnt
);
if
(
attr
.
recv_cq
)
...
...
drivers/infiniband/core/verbs.c
浏览文件 @
f36ae342
...
...
@@ -421,6 +421,7 @@ struct ib_qp *ib_create_qp(struct ib_pd *pd,
qp
->
uobject
=
NULL
;
qp
->
qp_type
=
qp_init_attr
->
qp_type
;
atomic_set
(
&
qp
->
usecnt
,
0
);
if
(
qp_init_attr
->
qp_type
==
IB_QPT_XRC_TGT
)
{
qp
->
event_handler
=
__ib_shared_qp_event_handler
;
qp
->
qp_context
=
qp
;
...
...
@@ -430,7 +431,6 @@ struct ib_qp *ib_create_qp(struct ib_pd *pd,
qp
->
xrcd
=
qp_init_attr
->
xrcd
;
atomic_inc
(
&
qp_init_attr
->
xrcd
->
usecnt
);
INIT_LIST_HEAD
(
&
qp
->
open_list
);
atomic_set
(
&
qp
->
usecnt
,
0
);
real_qp
=
qp
;
qp
=
__ib_open_qp
(
real_qp
,
qp_init_attr
->
event_handler
,
...
...
drivers/infiniband/hw/ipath/ipath_fs.c
浏览文件 @
f36ae342
...
...
@@ -89,7 +89,7 @@ static int create_file(const char *name, umode_t mode,
error
=
ipathfs_mknod
(
parent
->
d_inode
,
*
dentry
,
mode
,
fops
,
data
);
else
error
=
PTR_ERR
(
dentry
);
error
=
PTR_ERR
(
*
dentry
);
mutex_unlock
(
&
parent
->
d_inode
->
i_mutex
);
return
error
;
...
...
drivers/infiniband/hw/mlx4/mad.c
浏览文件 @
f36ae342
...
...
@@ -257,12 +257,9 @@ static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
return
IB_MAD_RESULT_SUCCESS
;
/*
* Don't process SMInfo queries or vendor-specific
* MADs -- the SMA can't handle them.
* Don't process SMInfo queries -- the SMA can't handle them.
*/
if
(
in_mad
->
mad_hdr
.
attr_id
==
IB_SMP_ATTR_SM_INFO
||
((
in_mad
->
mad_hdr
.
attr_id
&
IB_SMP_ATTR_VENDOR_MASK
)
==
IB_SMP_ATTR_VENDOR_MASK
))
if
(
in_mad
->
mad_hdr
.
attr_id
==
IB_SMP_ATTR_SM_INFO
)
return
IB_MAD_RESULT_SUCCESS
;
}
else
if
(
in_mad
->
mad_hdr
.
mgmt_class
==
IB_MGMT_CLASS_PERF_MGMT
||
in_mad
->
mad_hdr
.
mgmt_class
==
MLX4_IB_VENDOR_CLASS1
||
...
...
drivers/infiniband/hw/nes/nes.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
...
...
drivers/infiniband/hw/nes/nes.h
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
...
...
drivers/infiniband/hw/nes/nes_cm.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
@@ -233,6 +233,7 @@ static int send_mpa_reject(struct nes_cm_node *cm_node)
u8
*
start_ptr
=
&
start_addr
;
u8
**
start_buff
=
&
start_ptr
;
u16
buff_len
=
0
;
struct
ietf_mpa_v1
*
mpa_frame
;
skb
=
dev_alloc_skb
(
MAX_CM_BUFFER
);
if
(
!
skb
)
{
...
...
@@ -242,6 +243,8 @@ static int send_mpa_reject(struct nes_cm_node *cm_node)
/* send an MPA reject frame */
cm_build_mpa_frame
(
cm_node
,
start_buff
,
&
buff_len
,
NULL
,
MPA_KEY_REPLY
);
mpa_frame
=
(
struct
ietf_mpa_v1
*
)
*
start_buff
;
mpa_frame
->
flags
|=
IETF_MPA_FLAGS_REJECT
;
form_cm_frame
(
skb
,
cm_node
,
NULL
,
0
,
*
start_buff
,
buff_len
,
SET_ACK
|
SET_FIN
);
cm_node
->
state
=
NES_CM_STATE_FIN_WAIT1
;
...
...
@@ -1360,8 +1363,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
if
(
!
memcmp
(
nesadapter
->
arp_table
[
arpindex
].
mac_addr
,
neigh
->
ha
,
ETH_ALEN
))
{
/* Mac address same as in nes_arp_table */
ip_rt_put
(
rt
);
return
rc
;
goto
out
;
}
nes_manage_arp_cache
(
nesvnic
->
netdev
,
...
...
@@ -1377,6 +1379,8 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
neigh_event_send
(
neigh
,
NULL
);
}
}
out:
rcu_read_unlock
();
ip_rt_put
(
rt
);
return
rc
;
...
...
drivers/infiniband/hw/nes/nes_cm.h
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_context.h
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_hw.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_hw.h
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_mgt.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel-NE, Inc. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel-NE, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_mgt.h
浏览文件 @
f36ae342
/*
* Copyright (c) 20
10
Intel-NE, Inc. All rights reserved.
* Copyright (c) 20
06 - 2011
Intel-NE, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_nic.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_user.h
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
* Copyright (c) 2005 Topspin Communications. All rights reserved.
* Copyright (c) 2005 Cisco Systems. All rights reserved.
* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
...
...
drivers/infiniband/hw/nes/nes_utils.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
drivers/infiniband/hw/nes/nes_verbs.c
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
...
...
@@ -3427,6 +3427,8 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
set_wqe_32bit_value
(
wqe
->
wqe_words
,
NES_IWARP_SQ_FMR_WQE_LENGTH_LOW_IDX
,
ib_wr
->
wr
.
fast_reg
.
length
);
set_wqe_32bit_value
(
wqe
->
wqe_words
,
NES_IWARP_SQ_FMR_WQE_LENGTH_HIGH_IDX
,
0
);
set_wqe_32bit_value
(
wqe
->
wqe_words
,
NES_IWARP_SQ_FMR_WQE_MR_STAG_IDX
,
ib_wr
->
wr
.
fast_reg
.
rkey
);
...
...
@@ -3724,7 +3726,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
entry
->
opcode
=
IB_WC_SEND
;
break
;
case
NES_IWARP_SQ_OP_LOCINV
:
entry
->
opcode
=
IB_W
R
_LOCAL_INV
;
entry
->
opcode
=
IB_W
C
_LOCAL_INV
;
break
;
case
NES_IWARP_SQ_OP_FAST_REG
:
entry
->
opcode
=
IB_WC_FAST_REG_MR
;
...
...
drivers/infiniband/hw/nes/nes_verbs.h
浏览文件 @
f36ae342
/*
* Copyright (c) 2006 - 20
09
Intel Corporation. All rights reserved.
* Copyright (c) 2006 - 20
11
Intel Corporation. All rights reserved.
* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
...
...
drivers/infiniband/hw/qib/qib_iba6120.c
浏览文件 @
f36ae342
...
...
@@ -2105,7 +2105,7 @@ static void alloc_dummy_hdrq(struct qib_devdata *dd)
dd
->
cspec
->
dummy_hdrq
=
dma_alloc_coherent
(
&
dd
->
pcidev
->
dev
,
dd
->
rcd
[
0
]
->
rcvhdrq_size
,
&
dd
->
cspec
->
dummy_hdrq_phys
,
GFP_
KERNEL
|
__GFP_COMP
);
GFP_
ATOMIC
|
__GFP_COMP
);
if
(
!
dd
->
cspec
->
dummy_hdrq
)
{
qib_devinfo
(
dd
->
pcidev
,
"Couldn't allocate dummy hdrq
\n
"
);
/* fallback to just 0'ing */
...
...
drivers/infiniband/hw/qib/qib_pcie.c
浏览文件 @
f36ae342
...
...
@@ -560,7 +560,7 @@ static int qib_tune_pcie_coalesce(struct qib_devdata *dd)
* BIOS may not set PCIe bus-utilization parameters for best performance.
* Check and optionally adjust them to maximize our throughput.
*/
static
int
qib_pcie_caps
=
0x51
;
static
int
qib_pcie_caps
;
module_param_named
(
pcie_caps
,
qib_pcie_caps
,
int
,
S_IRUGO
);
MODULE_PARM_DESC
(
pcie_caps
,
"Max PCIe tuning: Payload (0..3), ReadReq (4..7)"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录