net: correct comments of skb_shift
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- net/core/skbuff.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/core/skbuff.c +1 -1
@@ -2211,7 +2211,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.
Signature · 1 line
1.7.1
From: Feng King <[email protected]>
Date: Mon, 21 Nov 2011 19:47:11 +0800
Quoted 4 lines
when
skb_shift, we want to shift paged data from skb to tgt frag area. Original comments revert the shift orderSigned-off-by Feng King <[email protected]>
Applied, thank you.