diff options
Diffstat (limited to 'net/core/ptp_classifier.c')
-rw-r--r-- | net/core/ptp_classifier.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/core/ptp_classifier.c b/net/core/ptp_classifier.c index 703cf76aa7c2..7109c168b5e0 100644 --- a/net/core/ptp_classifier.c +++ b/net/core/ptp_classifier.c | |||
@@ -185,9 +185,10 @@ void __init ptp_classifier_init(void) | |||
185 | { 0x16, 0, 0, 0x00000000 }, | 185 | { 0x16, 0, 0, 0x00000000 }, |
186 | { 0x06, 0, 0, 0x00000000 }, | 186 | { 0x06, 0, 0, 0x00000000 }, |
187 | }; | 187 | }; |
188 | struct sock_fprog_kern ptp_prog = { | 188 | struct sock_fprog_kern ptp_prog; |
189 | .len = ARRAY_SIZE(ptp_filter), .filter = ptp_filter, | 189 | |
190 | }; | 190 | ptp_prog.len = ARRAY_SIZE(ptp_filter); |
191 | ptp_prog.filter = ptp_filter; | ||
191 | 192 | ||
192 | BUG_ON(bpf_prog_create(&ptp_insns, &ptp_prog)); | 193 | BUG_ON(bpf_prog_create(&ptp_insns, &ptp_prog)); |
193 | } | 194 | } |