From: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Denis Lunev <den@virtuozzo.com>,
Konstantin Khorenko <khorenko@virtuozzo.com>,
"jan.dakinevich@gmail.com" <jan.dakinevich@gmail.com>,
Jan Dakinevich <jan.dakinevich@virtuozzo.com>,
"David S. Miller" <davem@davemloft.net>,
"Alexey Kuznetsov (C)" <kuznet@ms2.inr.ac.ru>,
Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Jozsef Kadlecsik <kadlec@netfilter.org>,
Florian Westphal <fw@strlen.de>,
Johannes Berg <johannes.berg@intel.com>,
David Ahern <dsahern@gmail.com>,
Christian Brauner <christian@brauner.io>,
"Jason A. Donenfeld" <Jason@zx2c4.com>,
Jakub Kicinski <jakub.kicinski@netronome.com>,
Stephen Hemminger <stephen@networkplumber.org>,
Willem de Bruijn <willemb@google.com>,
Cong Wang <xiyou.wangcong@gmail.com>,
Simon Horman <simon.horman@netronome.com>,
John Hurley <john.hurley@netronome.com>,
Paolo Abeni <pabeni@redhat.com>,
Jesper Dangaard Brouer <brouer@redhat.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Eric Dumazet <edumazet@google.com>,
Li RongQing <lirongqing@baidu.com>,
Thomas Gleixner <tglx@linutronix.de>,
Taehee Yoo <ap420073@gmail.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Dmitry Safonov <dima@arista.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"netfilter-devel@vger.kernel.org"
<netfilter-devel@vger.kernel.org>,
"coreteam@netfilter.org" <coreteam@netfilter.org>
Subject: [PATCH 1/3] skbuff: use kvfree() to deallocate head
Date: Thu, 22 Aug 2019 10:48:20 +0000 [thread overview]
Message-ID: <1566470851-4694-2-git-send-email-jan.dakinevich@virtuozzo.com> (raw)
In-Reply-To: <1566470851-4694-1-git-send-email-jan.dakinevich@virtuozzo.com>
If skb buffer was allocated using vmalloc() it will make simple its
further deallocation.
Signed-off-by: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
---
net/core/skbuff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 0338820..55eac01 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -588,7 +588,7 @@ static void skb_free_head(struct sk_buff *skb)
if (skb->head_frag)
skb_free_frag(head);
else
- kfree(head);
+ kvfree(head);
}
static void skb_release_data(struct sk_buff *skb)
--
2.1.4
next prev parent reply other threads:[~2019-08-22 10:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-22 10:48 [PATCH 0/3] rework netlink skb allocation Jan Dakinevich
2019-08-22 10:48 ` Jan Dakinevich [this message]
2019-08-22 10:48 ` [PATCH 2/3] netlink: always use vmapped memory for skb data Jan Dakinevich
2019-08-22 10:48 ` [PATCH 3/3] netlink: use generic skb_set_owner_r() Jan Dakinevich
2019-08-22 19:04 ` [PATCH 0/3] rework netlink skb allocation David Miller
-- strict thread matches above, loose matches on Subject: below --
2019-08-22 9:50 Jan Dakinevich
2019-08-22 9:50 ` [PATCH 1/3] skbuff: use kvfree() to deallocate head Jan Dakinevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1566470851-4694-2-git-send-email-jan.dakinevich@virtuozzo.com \
--to=jan.dakinevich@virtuozzo.com \
--cc=Jason@zx2c4.com \
--cc=ap420073@gmail.com \
--cc=bigeasy@linutronix.de \
--cc=brouer@redhat.com \
--cc=christian@brauner.io \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=den@virtuozzo.com \
--cc=dima@arista.com \
--cc=dsahern@gmail.com \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=herbert@gondor.apana.org.au \
--cc=jakub.kicinski@netronome.com \
--cc=jan.dakinevich@gmail.com \
--cc=johannes.berg@intel.com \
--cc=john.hurley@netronome.com \
--cc=kadlec@netfilter.org \
--cc=khorenko@virtuozzo.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=lirongqing@baidu.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=simon.horman@netronome.com \
--cc=stephen@networkplumber.org \
--cc=tglx@linutronix.de \
--cc=willemb@google.com \
--cc=xiyou.wangcong@gmail.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).