]> err.no Git - linux-2.6/blobdiff - drivers/block/aoe/aoe.h
Merge branch 'for-linus' of git://git.infradead.org/ubi-2.6
[linux-2.6] / drivers / block / aoe / aoe.h
index 2308e83e5f33aff25297a2ef7ad3363a56a645ef..1d84668179432b3a385723f31648722214d61f09 100644 (file)
@@ -48,6 +48,15 @@ struct aoe_hdr {
        __be32 tag;
 };
 
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+
+static inline struct aoe_hdr *aoe_hdr(const struct sk_buff *skb)
+{
+       return (struct aoe_hdr *)skb_mac_header(skb);
+}
+#endif
+
 struct aoe_atahdr {
        unsigned char aflags;
        unsigned char errfeat;