summaryrefslogtreecommitdiff
path: root/net/core/tso.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/tso.c')
-rw-r--r--net/core/tso.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/net/core/tso.c b/net/core/tso.c
index 4148f6d48953..6df997b9076e 100644
--- a/net/core/tso.c
+++ b/net/core/tso.c
@@ -3,15 +3,7 @@
#include <linux/if_vlan.h>
#include <net/ip.h>
#include <net/tso.h>
-#include <asm/unaligned.h>
-
-/* Calculate expected number of TX descriptors */
-int tso_count_descs(const struct sk_buff *skb)
-{
- /* The Marvell Way */
- return skb_shinfo(skb)->gso_segs * 2 + skb_shinfo(skb)->nr_frags;
-}
-EXPORT_SYMBOL(tso_count_descs);
+#include <linux/unaligned.h>
void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
int size, bool is_last)