summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorFeng King <kinwin2008@gmail.com>2011-11-21 01:47:11 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-22 16:18:43 -0500
commit20e994a05b33b186a22a3b9e922df4cce644daac (patch)
tree74f3d7bc5e1aa92a7c98d6a232dc3107bda8fe8e /net
parent717b6d83664646963c71d014c71babaa802333b9 (diff)
downloadlinux-20e994a05b33b186a22a3b9e922df4cce644daac.tar.bz2
net: correct comments of skb_shift
when skb_shift, we want to shift paged data from skb to tgt frag area. Original comments revert the shift order Signed-off-by: Feng King <kinwin2008@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/skbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 18a3cebb753d..3c30ee4a5710 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -2230,7 +2230,7 @@ static int skb_prepare_for_shift(struct sk_buff *skb)
* @shiftlen: shift up to this many bytes
*
* Attempts to shift up to shiftlen worth of bytes, which may be less than
- * the length of the skb, from tgt to skb. Returns number bytes shifted.
+ * the length of the skb, from skb to tgt. Returns number bytes shifted.
* It's up to caller to free skb if everything was shifted.
*
* If @tgt runs out of frags, the whole operation is aborted.