[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMEtUux1VUxqB=0EEhSA1su6AnwxGNqoHyad+4LR6Ne7BS-yPw@mail.gmail.com>
Date: Mon, 2 Mar 2015 09:10:41 -0800
From: Alexei Starovoitov <ast@...mgrid.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: "David S. Miller" <davem@...emloft.net>,
Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] filter: refactor common filter attach code into __sk_attach_prog
On Mon, Mar 2, 2015 at 3:25 AM, Daniel Borkmann <daniel@...earbox.net> wrote:
> Both sk_attach_filter() and sk_attach_bpf() are setting up sk_filter,
> charging skmem and attaching it to the socket after we got the eBPF
> prog up and ready. Lets refactor that into a common helper.
>
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
> ---
tricky :) went few times of the code, since it felt that
there is memory leak, but finally got it, I think it all good.
Acked-by: Alexei Starovoitov <ast@...mgrid.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