[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54FF38B6.3080906@redhat.com>
Date: Tue, 10 Mar 2015 11:32:22 -0700
From: Alexander Duyck <alexander.h.duyck@...hat.com>
To: Oliver Hartkopp <socketcan@...tkopp.net>, netdev@...r.kernel.org
CC: eric.dumazet@...il.com
Subject: Re: [PATCH] net: add comment for sock_efree() usage
On 03/10/2015 11:03 AM, Oliver Hartkopp wrote:
> Signed-off-by: Oliver Hartkopp <socketcan@...tkopp.net>
> ---
> net/core/sock.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/net/core/sock.c b/net/core/sock.c
> index 93c8b20..78e89eb 100644
> --- a/net/core/sock.c
> +++ b/net/core/sock.c
> @@ -1655,6 +1655,10 @@ void sock_rfree(struct sk_buff *skb)
> }
> EXPORT_SYMBOL(sock_rfree);
>
> +/*
> + * Buffer destructor for skbs that are not used directly in read or write
> + * path, e.g. for error handler skbs. Automatically called from kfree_skb.
> + */
> void sock_efree(struct sk_buff *skb)
> {
> sock_put(skb->sk);
Acked-by: Alexander Duyck <alexander.h.duyck@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists