Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4286748ybf; Wed, 4 Mar 2020 00:46:37 -0800 (PST) X-Google-Smtp-Source: ADFU+vtGtI2wd0lyFgYrGkZawaDg0B/yZ2zE6FuVBDzQmkWyZ0gPWH9ZSHdJuxCBdgcsJDCkdZn+ X-Received: by 2002:aca:be56:: with SMTP id o83mr1027830oif.25.1583311597532; Wed, 04 Mar 2020 00:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583311597; cv=none; d=google.com; s=arc-20160816; b=C9kipFKIWJdiTsjq4/snvVxriUgxG3NbxUmbhN/UZ3Yhv88ZvzgOtMVvlRvhDnXWIh 4dVk2VYuzdHDxcLZxmil+jfNbH3DgU0SltH08wytXx5ZsuQpV0deomINepP8xRr6DIiw Gz8b3GsUJDkmc4S8Srpbuj0jhan8e1RVgvMAMjid2F7UhUVGvUH02EbwcYHCaC0e9Zli LaDmmmm/JVczdmBTzUkzz8njG6aZzKMH2MNqGSsdyDMSNj4MfTVk2hQYaX0B+ihJ9xFQ 4a1WbrE+VYAB04GIBz55FDBhXvyIOhhDQUjuRr7gOYuIwMa6JQHoQ5DDuWNBZXxx53lc 8KhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ma8ZuzcCeVEH6377/YAf0HxDb+sbrr8YMMlgCfFH6Lk=; b=B1scD/AcaRggw0i5H9jGpo6xlc2uwBoKDIGoIqjmgYlcLI+jaNPx0hcJeDxWdLqR+X 2VFXYyNuue7EaMzHI/8zokxdCxf1LxCWwYXwv4hLcyg2Z2whdv07jtCNmRBe+H52ZUYp FYdzWovS0WnoODM5cuNAwlt8KsZzRXMu6xoK3uc2r6EtQhkyZ9hXhDqHeV5rGC9BG6ta iR4u8QdMO+7Ax0XiqOWRQEiWikP/0fWo8smgx7U2wfs0/tlNIqmMWgvnyyDgR0cY0kA+ tzxJ2tB1dTmkOJsL/0uIQOs0+Brz70ITykql0ePAE1xpdACHcP0EAztisqxDmwKDpzuq dxlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=FrMlwWsM; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si684498oib.193.2020.03.04.00.46.26; Wed, 04 Mar 2020 00:46:37 -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=@cloudflare.com header.s=google header.b=FrMlwWsM; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387658AbgCDIpN (ORCPT + 99 others); Wed, 4 Mar 2020 03:45:13 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33690 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbgCDIpM (ORCPT ); Wed, 4 Mar 2020 03:45:12 -0500 Received: by mail-ot1-f65.google.com with SMTP id a20so1260302otl.0 for ; Wed, 04 Mar 2020 00:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ma8ZuzcCeVEH6377/YAf0HxDb+sbrr8YMMlgCfFH6Lk=; b=FrMlwWsM6VLOsyh8IR/l2AzoOl3oFGBHNGhVWnWt1/tr3WhRWPJ0BMj3yX6YGBMea/ TQXGkaFBa4jar3k26oX5MaEcapBB2a9JrNsHVM3OA9DUIQ5UDooYIFTp46eOZKBkaMDc 08Zcri9aN5WHeb0oDzOIOw4JngUyWipsbPvd0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ma8ZuzcCeVEH6377/YAf0HxDb+sbrr8YMMlgCfFH6Lk=; b=o2HxduhwweDgqnJ6zJWz19GQrUIW5p5rmFdAlsgjbF8tPOTxCO51riKdNT3KO+yiqL 7RgLMpI9kb9ceJ8HFzYTMHAO7IY3CAqD8jE9k7DVId9VU+GXD0Yqr23qyHm6Ias2dx6M 1OKZcWDgVQc7Kzgspl8ye29cxbmDpePHrIfn9HQ6safS7BoNsxMHVPTqCgTENR3vTWDg pfdZEzQhtR62Uqbrhz0Vepj03qz9M+GrdXQHhNrHCyKHGo+JIEEgvOcBd46nCXNUFw3x 84wD7k3KWHqh3ukWuwhGVp/mxD6ET7AJNOV15GwQ/CnKBV5slOe2NEypqpgIsveLy7ef azrg== X-Gm-Message-State: ANhLgQ3JFlxEWkAaRDAbXFujWB/bKub5IJO9SAbxk/FUutriQbS4BMYN lXBFJDPR688wof50YYxaJMwKK5AGuwxbMTP8ukH6hKOTdivyYA== X-Received: by 2002:a9d:10d:: with SMTP id 13mr1579216otu.334.1583311509322; Wed, 04 Mar 2020 00:45:09 -0800 (PST) MIME-Version: 1.0 References: <20200228115344.17742-1-lmb@cloudflare.com> <20200228115344.17742-4-lmb@cloudflare.com> <20200303175051.zcxmo3c257pfpj7f@kafai-mbp> In-Reply-To: <20200303175051.zcxmo3c257pfpj7f@kafai-mbp> From: Lorenz Bauer Date: Wed, 4 Mar 2020 09:44:57 +0100 Message-ID: Subject: Re: [PATCH bpf-next v2 3/9] bpf: sockmap: move generic sockmap hooks from BPF TCP To: Martin KaFai Lau Cc: John Fastabend , Alexei Starovoitov , Daniel Borkmann , Jakub Sitnicki , Eric Dumazet , "David S. Miller" , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI , kernel-team , Networking , bpf , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Mar 2020 at 18:51, Martin KaFai Lau wrote: > > On Fri, Feb 28, 2020 at 11:53:38AM +0000, 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 > Is clone reused in UDP? No, my bad. I'll update the commit message. -- Lorenz Bauer | Systems Engineer 6th Floor, County Hall/The Riverside Building, SE1 7PB, UK www.cloudflare.com