projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98920ba
)
net: ptp: mark filter as __initdata
author
Mathias Krause
<
[email protected]
>
Sat, 10 May 2014 20:23:28 +0000
(22:23 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 13 May 2014 17:17:24 +0000
(13:17 -0400)
sk_unattached_filter_create() will copy the filter's instructions so we
don't need to have the master copy hanging around after initialization.
Signed-off-by: Mathias Krause <
[email protected]
>
Acked-by: Alexei Starovoitov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/ptp_classifier.c
patch
|
blob
|
history
diff --git
a/net/core/ptp_classifier.c
b/net/core/ptp_classifier.c
index eaba0f68f8608618870a7009f27352523bee108f..37d86157b76ee3e572653c4455cb26b03fa50a8a 100644
(file)
--- a/
net/core/ptp_classifier.c
+++ b/
net/core/ptp_classifier.c
@@
-88,7
+88,7
@@
EXPORT_SYMBOL_GPL(ptp_classify_raw);
void __init ptp_classifier_init(void)
{
- static struct sock_filter ptp_filter[] = {
+ static struct sock_filter ptp_filter[]
__initdata
= {
{ 0x28, 0, 0, 0x0000000c },
{ 0x15, 0, 12, 0x00000800 },
{ 0x30, 0, 0, 0x00000017 },