Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
4667ba15
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
4667ba15
编写于
2月 18, 2009
作者:
P
Patrick McHardy
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of /repos/git/net-2.6
上级
5955c7a2
92a0acce
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
20 deletion
+12
-20
drivers/net/forcedeth.c
drivers/net/forcedeth.c
+12
-1
include/linux/skbuff.h
include/linux/skbuff.h
+0
-9
include/net/sock.h
include/net/sock.h
+0
-1
net/core/skbuff.c
net/core/skbuff.c
+0
-8
net/core/sock.c
net/core/sock.c
+0
-1
未找到文件。
drivers/net/forcedeth.c
浏览文件 @
4667ba15
...
...
@@ -6011,9 +6011,20 @@ static void nv_shutdown(struct pci_dev *pdev)
if
(
netif_running
(
dev
))
nv_close
(
dev
);
nv_restore_mac_addr
(
pdev
);
/*
* Restore the MAC so a kernel started by kexec won't get confused.
* If we really go for poweroff, we must not restore the MAC,
* otherwise the MAC for WOL will be reversed at least on some boards.
*/
if
(
system_state
!=
SYSTEM_POWER_OFF
)
{
nv_restore_mac_addr
(
pdev
);
}
pci_disable_device
(
pdev
);
/*
* Apparently it is not possible to reinitialise from D3 hot,
* only put the device into D3 if we really go for poweroff.
*/
if
(
system_state
==
SYSTEM_POWER_OFF
)
{
if
(
pci_enable_wake
(
pdev
,
PCI_D3cold
,
np
->
wolenabled
))
pci_enable_wake
(
pdev
,
PCI_D3hot
,
np
->
wolenabled
);
...
...
include/linux/skbuff.h
浏览文件 @
4667ba15
...
...
@@ -416,15 +416,6 @@ extern void skb_over_panic(struct sk_buff *skb, int len,
void
*
here
);
extern
void
skb_under_panic
(
struct
sk_buff
*
skb
,
int
len
,
void
*
here
);
extern
void
skb_truesize_bug
(
struct
sk_buff
*
skb
);
static
inline
void
skb_truesize_check
(
struct
sk_buff
*
skb
)
{
int
len
=
sizeof
(
struct
sk_buff
)
+
skb
->
len
;
if
(
unlikely
((
int
)
skb
->
truesize
<
len
))
skb_truesize_bug
(
skb
);
}
extern
int
skb_append_datato_frags
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
int
getfrag
(
void
*
from
,
char
*
to
,
int
offset
,
...
...
include/net/sock.h
浏览文件 @
4667ba15
...
...
@@ -860,7 +860,6 @@ static inline void sk_mem_uncharge(struct sock *sk, int size)
static
inline
void
sk_wmem_free_skb
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
{
skb_truesize_check
(
skb
);
sock_set_flag
(
sk
,
SOCK_QUEUE_SHRUNK
);
sk
->
sk_wmem_queued
-=
skb
->
truesize
;
sk_mem_uncharge
(
sk
,
skb
->
truesize
);
...
...
net/core/skbuff.c
浏览文件 @
4667ba15
...
...
@@ -143,14 +143,6 @@ void skb_under_panic(struct sk_buff *skb, int sz, void *here)
BUG
();
}
void
skb_truesize_bug
(
struct
sk_buff
*
skb
)
{
WARN
(
net_ratelimit
(),
KERN_ERR
"SKB BUG: Invalid truesize (%u) "
"len=%u, sizeof(sk_buff)=%Zd
\n
"
,
skb
->
truesize
,
skb
->
len
,
sizeof
(
struct
sk_buff
));
}
EXPORT_SYMBOL
(
skb_truesize_bug
);
/* Allocate a new skbuff. We do this ourselves so we can fill in a few
* 'private' fields and also do memory statistics to find all the
* [BEEP] leaks.
...
...
net/core/sock.c
浏览文件 @
4667ba15
...
...
@@ -1137,7 +1137,6 @@ void sock_rfree(struct sk_buff *skb)
{
struct
sock
*
sk
=
skb
->
sk
;
skb_truesize_check
(
skb
);
atomic_sub
(
skb
->
truesize
,
&
sk
->
sk_rmem_alloc
);
sk_mem_uncharge
(
skb
->
sk
,
skb
->
truesize
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录