Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
5494c22b
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5494c22b
编写于
4月 19, 2006
作者:
R
Roland Dreier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
IB/ipath: Fix whitespace
Signed-off-by:
N
Roland Dreier
<
rolandd@cisco.com
>
上级
ac2ae4c9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
57 addition
and
57 deletion
+57
-57
drivers/infiniband/hw/ipath/ipath_intr.c
drivers/infiniband/hw/ipath/ipath_intr.c
+2
-2
drivers/infiniband/hw/ipath/ipath_verbs.c
drivers/infiniband/hw/ipath/ipath_verbs.c
+55
-55
未找到文件。
drivers/infiniband/hw/ipath/ipath_intr.c
浏览文件 @
5494c22b
...
...
@@ -172,8 +172,8 @@ static void handle_e_ibstatuschanged(struct ipath_devdata *dd,
"was %s
\n
"
,
dd
->
ipath_unit
,
ib_linkstate
(
lstate
),
ib_linkstate
((
unsigned
)
dd
->
ipath_lastibcstat
&
IPATH_IBSTATE_MASK
));
dd
->
ipath_lastibcstat
&
IPATH_IBSTATE_MASK
));
}
else
{
lstate
=
dd
->
ipath_lastibcstat
&
IPATH_IBSTATE_MASK
;
...
...
drivers/infiniband/hw/ipath/ipath_verbs.c
浏览文件 @
5494c22b
...
...
@@ -1125,26 +1125,26 @@ static void __exit ipath_verbs_cleanup(void)
static
ssize_t
show_rev
(
struct
class_device
*
cdev
,
char
*
buf
)
{
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
vendor
,
boardrev
,
majrev
,
minrev
;
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
vendor
,
boardrev
,
majrev
,
minrev
;
ipath_layer_query_device
(
dev
->
dd
,
&
vendor
,
&
boardrev
,
&
majrev
,
&
minrev
);
return
sprintf
(
buf
,
"%d.%d
\n
"
,
majrev
,
minrev
);
ipath_layer_query_device
(
dev
->
dd
,
&
vendor
,
&
boardrev
,
&
majrev
,
&
minrev
);
return
sprintf
(
buf
,
"%d.%d
\n
"
,
majrev
,
minrev
);
}
static
ssize_t
show_hca
(
struct
class_device
*
cdev
,
char
*
buf
)
{
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
ret
;
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
ret
;
ret
=
ipath_layer_get_boardname
(
dev
->
dd
,
buf
,
128
);
if
(
ret
<
0
)
goto
bail
;
strcat
(
buf
,
"
\n
"
);
ret
=
strlen
(
buf
);
ret
=
ipath_layer_get_boardname
(
dev
->
dd
,
buf
,
128
);
if
(
ret
<
0
)
goto
bail
;
strcat
(
buf
,
"
\n
"
);
ret
=
strlen
(
buf
);
bail:
return
ret
;
...
...
@@ -1152,40 +1152,40 @@ static ssize_t show_hca(struct class_device *cdev, char *buf)
static
ssize_t
show_stats
(
struct
class_device
*
cdev
,
char
*
buf
)
{
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
i
;
int
len
;
len
=
sprintf
(
buf
,
"RC resends %d
\n
"
"RC QACKs %d
\n
"
"RC ACKs %d
\n
"
"RC SEQ NAKs %d
\n
"
"RC RDMA seq %d
\n
"
"RC RNR NAKs %d
\n
"
"RC OTH NAKs %d
\n
"
"RC timeouts %d
\n
"
"RC RDMA dup %d
\n
"
"piobuf wait %d
\n
"
"no piobuf %d
\n
"
"PKT drops %d
\n
"
"WQE errs %d
\n
"
,
dev
->
n_rc_resends
,
dev
->
n_rc_qacks
,
dev
->
n_rc_acks
,
dev
->
n_seq_naks
,
dev
->
n_rdma_seq
,
dev
->
n_rnr_naks
,
dev
->
n_other_naks
,
dev
->
n_timeouts
,
dev
->
n_rdma_dup_busy
,
dev
->
n_piowait
,
dev
->
n_no_piobuf
,
dev
->
n_pkt_drops
,
dev
->
n_wqe_errs
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
dev
->
opstats
);
i
++
)
{
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
i
;
int
len
;
len
=
sprintf
(
buf
,
"RC resends %d
\n
"
"RC QACKs %d
\n
"
"RC ACKs %d
\n
"
"RC SEQ NAKs %d
\n
"
"RC RDMA seq %d
\n
"
"RC RNR NAKs %d
\n
"
"RC OTH NAKs %d
\n
"
"RC timeouts %d
\n
"
"RC RDMA dup %d
\n
"
"piobuf wait %d
\n
"
"no piobuf %d
\n
"
"PKT drops %d
\n
"
"WQE errs %d
\n
"
,
dev
->
n_rc_resends
,
dev
->
n_rc_qacks
,
dev
->
n_rc_acks
,
dev
->
n_seq_naks
,
dev
->
n_rdma_seq
,
dev
->
n_rnr_naks
,
dev
->
n_other_naks
,
dev
->
n_timeouts
,
dev
->
n_rdma_dup_busy
,
dev
->
n_piowait
,
dev
->
n_no_piobuf
,
dev
->
n_pkt_drops
,
dev
->
n_wqe_errs
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
dev
->
opstats
);
i
++
)
{
const
struct
ipath_opcode_stats
*
si
=
&
dev
->
opstats
[
i
];
if
(
!
si
->
n_packets
&&
!
si
->
n_bytes
)
continue
;
len
+=
sprintf
(
buf
+
len
,
"%02x %llu/%llu
\n
"
,
i
,
if
(
!
si
->
n_packets
&&
!
si
->
n_bytes
)
continue
;
len
+=
sprintf
(
buf
+
len
,
"%02x %llu/%llu
\n
"
,
i
,
(
unsigned
long
long
)
si
->
n_packets
,
(
unsigned
long
long
)
si
->
n_bytes
);
}
return
len
;
(
unsigned
long
long
)
si
->
n_bytes
);
}
return
len
;
}
static
CLASS_DEVICE_ATTR
(
hw_rev
,
S_IRUGO
,
show_rev
,
NULL
);
...
...
@@ -1194,25 +1194,25 @@ static CLASS_DEVICE_ATTR(board_id, S_IRUGO, show_hca, NULL);
static
CLASS_DEVICE_ATTR
(
stats
,
S_IRUGO
,
show_stats
,
NULL
);
static
struct
class_device_attribute
*
ipath_class_attributes
[]
=
{
&
class_device_attr_hw_rev
,
&
class_device_attr_hca_type
,
&
class_device_attr_board_id
,
&
class_device_attr_stats
&
class_device_attr_hw_rev
,
&
class_device_attr_hca_type
,
&
class_device_attr_board_id
,
&
class_device_attr_stats
};
static
int
ipath_verbs_register_sysfs
(
struct
ib_device
*
dev
)
{
int
i
;
int
i
;
int
ret
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
ipath_class_attributes
);
++
i
)
if
(
class_device_create_file
(
&
dev
->
class_dev
,
ipath_class_attributes
[
i
]))
{
ret
=
1
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
ipath_class_attributes
);
++
i
)
if
(
class_device_create_file
(
&
dev
->
class_dev
,
ipath_class_attributes
[
i
]))
{
ret
=
1
;
goto
bail
;
}
ret
=
0
;
ret
=
0
;
bail:
return
ret
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录