summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-06-05 20:14:10 +0800
committerDavid S. Miller <davem@davemloft.net>2013-06-10 22:22:23 -0700
commit30f3a40f9a2a2869a560a9cb9ef488d10c803e14 (patch)
treecdaf18b7bf9c7f38eaaaa95f45a073d693223e18 /include
parent0a4db187a999c4a715bf56b8ab6c4705b524e4bb (diff)
net: remove last caller of skb_tail_offset() and itself
Similar to the following commits: commit 00f97da17a0c8d656d0c9 (netpoll: fix position of network header) commit 525cebedb32a87fa48584 (pktgen: Fix position of ip and udp header) using skb_tail_offset() seems not correct since the offset is based on head pointer. With the last caller removed, skb_tail_offset() can be killed finally. Cc: Thomas Graf <tgraf@suug.ch> Cc: Daniel Borkmann <dborkmann@redhat.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 400d82ae2b03..a7393adea0b5 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1396,10 +1396,6 @@ static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset)
skb->tail += offset;
}
-static inline unsigned long skb_tail_offset(const struct sk_buff *skb)
-{
- return skb->tail;
-}
#else /* NET_SKBUFF_DATA_USES_OFFSET */
static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb)
{
@@ -1416,10 +1412,6 @@ static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset)
skb->tail = skb->data + offset;
}
-static inline unsigned long skb_tail_offset(const struct sk_buff *skb)
-{
- return skb->tail - skb->head;
-}
#endif /* NET_SKBUFF_DATA_USES_OFFSET */
/*