Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp207429pxj; Fri, 14 May 2021 01:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfjhNOsv2b1w5j5NJHfjXxzjpTtANMCr1SYIfRDpZr8a+SFUsoiNtIUWmAhGtoDvHcecXs X-Received: by 2002:aa7:c506:: with SMTP id o6mr3751403edq.235.1620980521971; Fri, 14 May 2021 01:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620980521; cv=none; d=google.com; s=arc-20160816; b=OMWNAycKx0Ih8yyyXEFkd9Vu68DN16/dctaQMII8GN3NCt1bc7HMC8W0EG5tdetCJ3 v9oOBHAbDWJRX8oiuNUtDO7hZiti2D54lVJbg2at2NM5krTThpUxjDP2sY/oWEJBu+Jp +nPr2lXPaDJ2Lne5LWzChOSYtaNLI2detsHdfRSXS01LIjohilI+ZzkYKTLGJlzJIbT7 GJe7LjJuLWoh7UaXbRuc0Zn74YHJw2L5mMn9/GiLC9seacHLYGeFIv7SOJHItRGKc8pg FxpX9lg7MY5BaQI7Rs1RnVFjMUUZDjo7ps0x+mmwk5d3qeFnFZ2OpyIrKGr2vp03Z9za Ncxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5SJBpI8xr+qMRBkIHhCmRmUBPGxcsbJp1rEQpocKtJY=; b=XPJmTQtQUEw82xPW5CKj2Gz1WCRJa84GqsvbDyv82GPrsaLcXnMsoh0OlQJc8vXd30 d5Lherl6CifyancpxdEFLU2WVOKSOxBdsXLY9ZqqRXBxBiR2JPS1qES9UPrA10uY4931 klF/apeJpyLgLEmQeOFJaSu3DJo0dXfDM5laoHGc4G93jFwTP3XqxRIujBQPqE8wi8jk 02wKAtRuK7mEbMdQsnAzCI/zLElG1V1BLx/IZ7pprc0+C7/BgRxw40AG4mfMFPz2/4nV Hhy9iiwGlAniuUZjZUmez2362n00nwC4i7QURdDOkjvdTOMS2b0TY72lvpgLKZjdxNtz PfLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.jp header.s=amazon201209 header.b=fcmdxZjf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si5386866ejr.61.2021.05.14.01.21.38; Fri, 14 May 2021 01:22:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.co.jp header.s=amazon201209 header.b=fcmdxZjf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbhEMXY0 (ORCPT + 99 others); Thu, 13 May 2021 19:24:26 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:10341 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhEMXYX (ORCPT ); Thu, 13 May 2021 19:24:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.jp; i=@amazon.co.jp; q=dns/txt; s=amazon201209; t=1620948194; x=1652484194; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5SJBpI8xr+qMRBkIHhCmRmUBPGxcsbJp1rEQpocKtJY=; b=fcmdxZjfrXz8IdpKayKpGW/PtQLITvpGegd+A/svQKbPAhcK/aw6I4TV +RplO83QQi4fcEwZoWq1EW9ZF7zcH1v+rKgKNRKAdmc4FjN/liI0wb9sA ZVCv+lkcGGI5ZPJ1nyLRlV10FeAaKO7M2QneYhMdxvymBXMp66O+7JoYz c=; X-IronPort-AV: E=Sophos;i="5.82,296,1613433600"; d="scan'208";a="113546482" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP; 13 May 2021 23:23:13 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com (Postfix) with ESMTPS id B225EA2291; Thu, 13 May 2021 23:23:09 +0000 (UTC) Received: from EX13D04ANB001.ant.amazon.com (10.43.156.100) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 13 May 2021 23:23:09 +0000 Received: from 88665a182662.ant.amazon.com (10.43.160.137) by EX13D04ANB001.ant.amazon.com (10.43.156.100) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 13 May 2021 23:23:04 +0000 From: Kuniyuki Iwashima To: CC: , , , , , , , , , , , , Subject: Re: [PATCH v5 bpf-next 00/11] Socket migration for SO_REUSEPORT. Date: Fri, 14 May 2021 08:23:00 +0900 Message-ID: <20210513232300.30772-1-kuniyu@amazon.co.jp> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.43.160.137] X-ClientProxiedBy: EX13D06UWC002.ant.amazon.com (10.43.162.205) To EX13D04ANB001.ant.amazon.com (10.43.156.100) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrii Nakryiko Date: Thu, 13 May 2021 14:27:13 -0700 > On Sun, May 9, 2021 at 8:45 PM Kuniyuki Iwashima wrote: > > > > The SO_REUSEPORT option allows sockets to listen on the same port and to > > accept connections evenly. However, there is a defect in the current > > implementation [1]. When a SYN packet is received, the connection is tied > > to a listening socket. Accordingly, when the listener is closed, in-flight > > requests during the three-way handshake and child sockets in the accept > > queue are dropped even if other listeners on the same port could accept > > such connections. [...] > > One test is failing in CI ([0]), please take a look. > > [0] https://travis-ci.com/github/kernel-patches/bpf/builds/225784969 Thank you for checking. The test needs to drop SYN+ACK and currently it is done by iptables or ip6tables. But it seems that I should not use them. Should this be done by XDP? ---8<--- iptables v1.8.5 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. ip6tables v1.8.5 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?) Perhaps ip6tables or your kernel needs to be upgraded. ---8<---