提交 20e994a0 编写于 作者: F Feng King 提交者: David S. Miller

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: NFeng King <kinwin2008@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 717b6d83
...@@ -2230,7 +2230,7 @@ static int skb_prepare_for_shift(struct sk_buff *skb) ...@@ -2230,7 +2230,7 @@ static int skb_prepare_for_shift(struct sk_buff *skb)
* @shiftlen: shift up to this many bytes * @shiftlen: shift up to this many bytes
* *
* Attempts to shift up to shiftlen worth of bytes, which may be less than * 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. * It's up to caller to free skb if everything was shifted.
* *
* If @tgt runs out of frags, the whole operation is aborted. * If @tgt runs out of frags, the whole operation is aborted.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册