From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: [bpf PATCH 0/3] bpf, sockmap ESTABLISHED state only Date: Mon, 17 Sep 2018 10:31:44 -0700 Message-ID: <20180917172946.21218.66049.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: edumazet@google.com, ast@kernel.org, daniel@iogearbox.net Return-path: Received: from [184.63.162.180] ([184.63.162.180]:45180 "EHLO john-Precision-Tower-5810" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726865AbeIQXAL (ORCPT ); Mon, 17 Sep 2018 19:00:11 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Eric noted that using the close callback is not sufficient to catch all transitions from ESTABLISHED state to a LISTEN state. So this series does two things. First, only allow adding socks in ESTABLISH state and second use unhash callback to catch tcp_disconnect() transitions. Thanks, John --- John Fastabend (3): bpf: sockmap only allow ESTABLISHED sock state bpf: sockmap, fix transition through disconnect without close bpf: test_maps, only support ESTABLISHED socks kernel/bpf/sockmap.c | 92 ++++++++++++++++++++++++------- tools/testing/selftests/bpf/test_maps.c | 10 ++- 2 files changed, 79 insertions(+), 23 deletions(-)