summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorFeng King <kinwin2008@gmail.com>2011-11-21 02:47:11 +0100
committerDavid S. Miller <davem@davemloft.net>2011-11-22 22:18:43 +0100
commit20e994a05b33b186a22a3b9e922df4cce644daac (patch)
tree74f3d7bc5e1aa92a7c98d6a232dc3107bda8fe8e /net/core/skbuff.c
parentnet-netlink: fix diag to export IPv4 tos for dual-stack IPv6 sockets (diff)
downloadlinux-20e994a05b33b186a22a3b9e922df4cce644daac.tar.xz
linux-20e994a05b33b186a22a3b9e922df4cce644daac.zip
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/core/skbuff.c')
-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.