Skip to contentSkip to conversation

net: correct comments of skb_shift

PATCH Applied Feng King 2 participants 2 messages Nov 21, 2011 – Nov 22, 2011

Subsystems (2)
lore
Share & tools
lore

Feng King

author
#0 lore raw

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

---
 net/core/skbuff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/core/skbuff.c +1 -1
index 387703f..ed6e992 100644
@@ -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