From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6631DC31E45 for ; Thu, 13 Jun 2019 22:00:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3061721473 for ; Thu, 13 Jun 2019 22:00:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=fb.com header.i=@fb.com header.b="CubUbTke" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728779AbfFMWAE (ORCPT ); Thu, 13 Jun 2019 18:00:04 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:42586 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbfFMWAE (ORCPT ); Thu, 13 Jun 2019 18:00:04 -0400 Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5DLxhrq001260 for ; Thu, 13 Jun 2019 15:00:03 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=4vsY6TQPl5TxdjrX4Jdbxs16LppSEYTgnMaUv3CPrQc=; b=CubUbTkeAmQC8k+yW7Iq5WDptUADXWAjS4VZZ8w5DJqZfl93UqhDS3dljjicRwx8j1QK OxIrqPTwmeKUp9sokR9Gan/iqwEWMD5U8tV3ne7vahLylEaNLI5faHTyNhX5ayY4RlTq 6Rm5DD7eX1brTsxEfYGeNgXyMb94mRduDvs= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2t3ru7hdtg-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 13 Jun 2019 15:00:02 -0700 Received: from mx-out.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 13 Jun 2019 15:00:00 -0700 Received: by devbig005.ftw2.facebook.com (Postfix, from userid 6611) id 00E4029432CF; Thu, 13 Jun 2019 14:59:59 -0700 (PDT) Smtp-Origin-Hostprefix: devbig From: Martin KaFai Lau Smtp-Origin-Hostname: devbig005.ftw2.facebook.com To: , CC: Alexei Starovoitov , Daniel Borkmann , David Miller , , Stanislav Fomichev Smtp-Origin-Cluster: ftw2c04 Subject: [PATCH v3 bpf-next 0/3] bpf: net: Detach BPF prog from reuseport sk Date: Thu, 13 Jun 2019 14:59:59 -0700 Message-ID: <20190613215959.3095374-1-kafai@fb.com> X-Mailer: git-send-email 2.17.1 X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-13_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 priorityscore=1501 malwarescore=0 suspectscore=8 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=507 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906130165 X-FB-Internal: deliver Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org v3: - Use rcu_swap_protected (Stanislav Fomichev) - Use 0x0047 for SO_DETACH_REUSEPORT_BPF for sparc (kbuild test robot ) v2: - Copy asm-generic/socket.h to tools/ in the new patch 2 (Stanislav Fomichev) This patch adds SO_DETACH_REUSEPORT_BPF to detach BPF prog from reuseport sk. Martin KaFai Lau (3): bpf: net: Add SO_DETACH_REUSEPORT_BPF bpf: Sync asm-generic/socket.h to tools/ bpf: Add test for SO_REUSEPORT_DETACH_BPF arch/alpha/include/uapi/asm/socket.h | 2 + arch/mips/include/uapi/asm/socket.h | 2 + arch/parisc/include/uapi/asm/socket.h | 2 + arch/sparc/include/uapi/asm/socket.h | 2 + include/net/sock_reuseport.h | 2 + include/uapi/asm-generic/socket.h | 2 + net/core/sock.c | 4 ++ net/core/sock_reuseport.c | 24 +++++++++ .../include}/uapi/asm-generic/socket.h | 2 + .../selftests/bpf/test_select_reuseport.c | 54 +++++++++++++++++++ 10 files changed, 96 insertions(+) copy {include => tools/include}/uapi/asm-generic/socket.h (98%) -- 2.17.1