aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2008-08-30 06:16:35 -0400
committerVegard Nossum <vegard.nossum@gmail.com>2009-06-15 09:49:25 -0400
commitfe55f6d5c0cfec4a710ef6ff63f162b99d5f7842 (patch)
tree4c4f0960d7355647e67f62e30e10c9215c123b65 /include/linux/skbuff.h
parentfc7d0c9f2122e8bf58deaf1252b0e750df5b0e91 (diff)
net: use kmemcheck bitfields API for skbuff
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 5fd389162f01..ed6537fc5b48 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -15,6 +15,7 @@
15#define _LINUX_SKBUFF_H 15#define _LINUX_SKBUFF_H
16 16
17#include <linux/kernel.h> 17#include <linux/kernel.h>
18#include <linux/kmemcheck.h>
18#include <linux/compiler.h> 19#include <linux/compiler.h>
19#include <linux/time.h> 20#include <linux/time.h>
20#include <linux/cache.h> 21#include <linux/cache.h>
@@ -346,6 +347,7 @@ struct sk_buff {
346 }; 347 };
347 }; 348 };
348 __u32 priority; 349 __u32 priority;
350 kmemcheck_bitfield_begin(flags1);
349 __u8 local_df:1, 351 __u8 local_df:1,
350 cloned:1, 352 cloned:1,
351 ip_summed:2, 353 ip_summed:2,
@@ -356,6 +358,7 @@ struct sk_buff {
356 ipvs_property:1, 358 ipvs_property:1,
357 peeked:1, 359 peeked:1,
358 nf_trace:1; 360 nf_trace:1;
361 kmemcheck_bitfield_end(flags1);
359 __be16 protocol; 362 __be16 protocol;
360 363
361 void (*destructor)(struct sk_buff *skb); 364 void (*destructor)(struct sk_buff *skb);
@@ -375,6 +378,8 @@ struct sk_buff {
375 __u16 tc_verd; /* traffic control verdict */ 378 __u16 tc_verd; /* traffic control verdict */
376#endif 379#endif
377#endif 380#endif
381
382 kmemcheck_bitfield_begin(flags2);
378#ifdef CONFIG_IPV6_NDISC_NODETYPE 383#ifdef CONFIG_IPV6_NDISC_NODETYPE
379 __u8 ndisc_nodetype:2; 384 __u8 ndisc_nodetype:2;
380#endif 385#endif
@@ -382,6 +387,8 @@ struct sk_buff {
382 __u8 do_not_encrypt:1; 387 __u8 do_not_encrypt:1;
383 __u8 requeue:1; 388 __u8 requeue:1;
384#endif 389#endif
390 kmemcheck_bitfield_end(flags2);
391
385 /* 0/13/14 bit hole */ 392 /* 0/13/14 bit hole */
386 393
387#ifdef CONFIG_NET_DMA 394#ifdef CONFIG_NET_DMA