]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: Introduce skb_to_sgvec_nomark to map skb without mark new end
authorFan Du <fan.du@windriver.com>
Sat, 18 Jan 2014 01:54:23 +0000 (09:54 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 12 Feb 2014 06:02:09 +0000 (07:02 +0100)
commite9e8e8fe735f4e27dde93b511a3c9ca0d8be0b3c
tree637ab9835a01d6e4027dc16fbcda3089f4ff8a92
parentd9f3c8cf3a641184bfbc4fdef89ac6420a307c21
skbuff: Introduce skb_to_sgvec_nomark to map skb without mark new end

As compared with skb_to_sgvec, skb_to_sgvec_nomark only map skb to given sglist
without mark the sg which contain last skb data as the end. So the caller can
mannipulate sg list as will when padding new data after the first call without
calling sg_unmark_end to expend sg list.

Signed-off-by: Fan Du <fan.du@windriver.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/linux/skbuff.h
net/core/skbuff.c