Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3945806pjo; Tue, 3 Mar 2020 09:53:41 -0800 (PST) X-Google-Smtp-Source: ADFU+vvOqj4TjR28ilXl0yhqadGx6F8G9quNf+PUUrmyPAWKSJNQlnbZwWDnkRz3du7qMbJM3ZUc X-Received: by 2002:a9d:7a59:: with SMTP id z25mr4523754otm.315.1583258020768; Tue, 03 Mar 2020 09:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583258020; cv=none; d=google.com; s=arc-20160816; b=rg+Gd6Sw4yqdx70x95QJFyTUsg51fs/9PoQpcSAdUxpq8WjTzqafTWvOmddCp84qyR tgh26IaERVHBhaofq/mi0IlUE6iBFWDjahkZcop+VYq7kyTzmiKOfnOgcDn/QbWtgg1X 1kPYZYrGWkbhGef3G0TTH/ZXn4VlrQXrg+EpC2K9hyQHCg2YFGA9FQYy591axTF+5o8k srJTtrpzYxiGFUZ6/hs80qgV4GRx5LBY5eZc+Q2J6Kdhd93I68na8axNPvqKOiWrzgft 4hS5DFoYq0iUKrV0q+iM2MwDaCyOws5TYwGqq8+TaWolT69tCErv9NVSCKzc8Ob8gXjn 5xNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :subject:references:in-reply-to:message-id:cc:to:from:date :dkim-signature; bh=MzE0w5ZgUnQDQhue+zqO2Bzi6fljQ8hIr+fH2PP/wGc=; b=g5rh0jOMlJiyKqSOX5/SJWLqzbcwaaM3ya4sWWhh7RDLG9+ZUOuNpxUwvAn9jhHtGg ehRG4zTa3oK+YlXmyAgjIpCS+5wTY9f1kIQtvTN3dV5ojK58BjzvHDGXXvy0ZQo1iWB1 RPRc5UtVWIQo74E8xeXutwEJ8QxqHFXaB4RiF4NY24hyskt698ejb+Uz4RpuY8fhBcUp DW9FpqDUoL7S/Tp3+c7ghWHL6k+mAECsO/IcC/pguJr/n8b3ImvqrkQPn7Wj/GDRAvFy NqOI+dTn1lrM27LKuMP6vDPUjk1+0mtEqKpLhHgb6idsXDatqK8day6TqmdTdnuP6+US v7Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jILafzsq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si7850067otc.130.2020.03.03.09.53.29; Tue, 03 Mar 2020 09:53:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jILafzsq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732216AbgCCRwo (ORCPT + 99 others); Tue, 3 Mar 2020 12:52:44 -0500 Received: from mail-pf1-f176.google.com ([209.85.210.176]:44886 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730142AbgCCRwn (ORCPT ); Tue, 3 Mar 2020 12:52:43 -0500 Received: by mail-pf1-f176.google.com with SMTP id y26so441250pfn.11; Tue, 03 Mar 2020 09:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-transfer-encoding; bh=MzE0w5ZgUnQDQhue+zqO2Bzi6fljQ8hIr+fH2PP/wGc=; b=jILafzsqC/V0g5dtcuf/Xa3kbLY2FofgS0c1DikXbePcEH+wKUNX3/GqSm2OzpmW/3 yh2QzkFaYFMU7OEBQYl7X19vRhCln4h5DPpG9cTTfCz+1ZEhwieERjOhrVe7GXlxXqrd wvUOGnnG8QknzsNp7nrwbr8Pvjf1G+AVEb4MnM8N0XGObTL9JpQZok1IrSofAu8P/gVI U7TPp/D2OUa1X0z0GDNLgEsWb6N7JIW2m7bLWHGiQdMxc20fsiQEC6sd/3/i4kflzwyC jdpH3JlhilGWNepAUWzpU7u2pl5N6aaflSBULT2bebA2rpvlA3WacmUnTm3Jt8tA2bco vSww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-transfer-encoding; bh=MzE0w5ZgUnQDQhue+zqO2Bzi6fljQ8hIr+fH2PP/wGc=; b=HYazkNgY2h+spM5diuvG6qPQimeLIu8VMkruzeWzaMrJSbt2rESVbPdGfClh3Py2rf ZqDCzk2zhXBrEdIRAjTir7iYJoEFyiXXUrcbV5Xuk9S2/tTCLg73e/nIynrvv59698K9 MErUb4tLf2d9B89fUCFMg3aLbybTm9IAdY1+eA8nmn1aDDBNRc887ywDiJN9za0x5VOO Lp06BiCRkTFrGvg5PUE9DxtCRAMeAEU/CUjShdx2vwZLfa40gv1ulQzyGcK970tomlEN T0Sdbtfqb5+FIdFWpykDmLLGyDgoq6Hxionhon8mvZSKs0AgPl0LJrtpkOh/tTSWCgSm BF/w== X-Gm-Message-State: ANhLgQ3aJEa4792BjYeM1WHZxYCm3AYTlxJMTSeoeTbbIeunSqZvPR9v 8iED9egaFL7bi+nqmF7omqQ= X-Received: by 2002:aa7:8b17:: with SMTP id f23mr5288473pfd.197.1583257962058; Tue, 03 Mar 2020 09:52:42 -0800 (PST) Received: from localhost ([184.63.162.180]) by smtp.gmail.com with ESMTPSA id m20sm3315891pff.172.2020.03.03.09.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 09:52:41 -0800 (PST) Date: Tue, 03 Mar 2020 09:52:34 -0800 From: John Fastabend To: Lorenz Bauer , john.fastabend@gmail.com, Alexei Starovoitov , Daniel Borkmann , Jakub Sitnicki , Lorenz Bauer , Eric Dumazet , "David S. Miller" , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI Cc: kernel-team@cloudflare.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <5e5e996236c01_60e72b06ba14c5bccf@john-XPS-13-9370.notmuch> In-Reply-To: <20200228115344.17742-4-lmb@cloudflare.com> References: <20200228115344.17742-1-lmb@cloudflare.com> <20200228115344.17742-4-lmb@cloudflare.com> Subject: RE: [PATCH bpf-next v2 3/9] bpf: sockmap: move generic sockmap hooks from BPF TCP Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lorenz Bauer wrote: > The close, unhash and clone handlers from TCP sockmap are actually generic, > and can be reused by UDP sockmap. Move the helpers into the sockmap code > base and expose them. This requires tcp_bpf_(re)init and tcp_bpf_clone to > be conditional on BPF_STREAM_PARSER. > > Signed-off-by: Lorenz Bauer > --- > include/linux/bpf.h | 4 ++- > include/linux/skmsg.h | 28 ---------------- > include/net/tcp.h | 15 +++++---- > net/core/sock_map.c | 77 +++++++++++++++++++++++++++++++++++++++++-- > net/ipv4/tcp_bpf.c | 59 ++++----------------------------- > 5 files changed, 92 insertions(+), 91 deletions(-) No changes just moving code around it seems. Acked-by: John Fastabend