summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_output.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2021-08-02 11:52:15 +0300
committerDavid S. Miller <davem@davemloft.net>2021-08-03 11:21:39 +0100
commitf1260ff15a71b8fc122b2c9abd8a7abffb6e0168 (patch)
tree5296e2d92972ed29361756ad41d5c44d4b50f247 /net/ipv6/ip6_output.c
parentfa976624ae7b6226d080ad21adb306ccb640a5ed (diff)
downloadlwn-f1260ff15a71b8fc122b2c9abd8a7abffb6e0168.tar.gz
lwn-f1260ff15a71b8fc122b2c9abd8a7abffb6e0168.zip
skbuff: introduce skb_expand_head()
Like skb_realloc_headroom(), new helper increases headroom of specified skb. Unlike skb_realloc_headroom(), it does not allocate a new skb if possible; copies skb->sk on new skb when as needed and frees original skb in case of failures. This helps to simplify ip[6]_finish_output2() and a few other similar cases. Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
0 files changed, 0 insertions, 0 deletions