|
@@ -1158,21 +1158,7 @@ static inline void __skb_trim(struct sk_buff *skb, unsigned int len)
|
|
|
skb_set_tail_pointer(skb, len);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * skb_trim - remove end from a buffer
|
|
|
- * @skb: buffer to alter
|
|
|
- * @len: new length
|
|
|
- *
|
|
|
- * Cut the length of a buffer down by removing data from the tail. If
|
|
|
- * the buffer is already under the length specified it is not modified.
|
|
|
- * The skb must be linear.
|
|
|
- */
|
|
|
-static inline void skb_trim(struct sk_buff *skb, unsigned int len)
|
|
|
-{
|
|
|
- if (skb->len > len)
|
|
|
- __skb_trim(skb, len);
|
|
|
-}
|
|
|
-
|
|
|
+extern void skb_trim(struct sk_buff *skb, unsigned int len);
|
|
|
|
|
|
static inline int __pskb_trim(struct sk_buff *skb, unsigned int len)
|
|
|
{
|