[PATCH] s390: qeth bug fixes
[linux-3.10.git] / drivers / s390 / net / qeth.h
index a341041a6cf77358955232fae17fa61ef09b4107..501b87e6875a049625535be91d61063616eebd95 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "qeth_mpc.h"
 
-#define VERSION_QETH_H                 "$Revision: 1.135 $"
+#define VERSION_QETH_H                 "$Revision: 1.136 $"
 
 #ifdef CONFIG_QETH_IPV6
 #define QETH_VERSION_IPV6      ":IPv6"
@@ -866,6 +866,17 @@ qeth_push_skb(struct qeth_card *card, struct sk_buff **skb, int size)
         return hdr;
 }
 
+static inline int
+qeth_get_skb_data_len(struct sk_buff *skb)
+{
+       int len = skb->len;
+       int i;
+
+       for (i = 0; i < skb_shinfo(skb)->nr_frags; ++i)
+               len -= skb_shinfo(skb)->frags[i].size;
+       return len;
+}
+
 inline static int
 qeth_get_hlen(__u8 link_type)
 {