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=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 17F7CC433DB for ; Fri, 8 Jan 2021 21:49:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF51623A9D for ; Fri, 8 Jan 2021 21:49:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726429AbhAHVs5 (ORCPT ); Fri, 8 Jan 2021 16:48:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbhAHVs5 (ORCPT ); Fri, 8 Jan 2021 16:48:57 -0500 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE90FC061574 for ; Fri, 8 Jan 2021 13:48:16 -0800 (PST) Received: by mail-qk1-x72e.google.com with SMTP id w79so9864936qkb.5 for ; Fri, 08 Jan 2021 13:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZdyOJU/afRjOU/cKKectEALaNNEvp0ji0Tq2uxsOc7I=; b=Vdz6K0gwK52+95eibkxGmwQk3k+qUaI54C6uNsEJsRk+9wEJ2eAmFkaHedmAVcrhpr p4ag6tn56ccKUmUQXIH/xnyfRmVYXzhngQGkKB9lJQD7Y+s0YpMrWHEPRRGCKfvlb3mb ekFU6sRU/fDQ2npjTsirvSLrfJ2tBFr1tRDiA6crlUlSFaGJHaGBE7t2IHNBiHkbYR1E 07bxGTYjx3n7a3GmoCs3Dp9w7G6sUhKXnpiZ0FEaoUM3EiWL9RwC1ilvqq0qV/93xHHo i1ntvtNY24ajoPcsUfjEafOevXVHOlC4bipiZgDWSQM9jZUPBkUPIbuE6uSpOdODjTxz cYjw== 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:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZdyOJU/afRjOU/cKKectEALaNNEvp0ji0Tq2uxsOc7I=; b=V+BmpoNoEtIPZSNQwNKlTeJl4ESyrg7XtwjpXqlImiwZpu76yZilQrwBhXwDeSlvCm j1mp5C3QPnbPWwqFCOmQQRrlFHwVSFU89E7YUdDcyfjCCCq/0MV2wPWtoIyirXtbl4uy 2y0X33lYGslmlotcu1ECrd35GiV7LYIizD3z/2TqrJRrvYI8OyvxthfV0UF2UK8PfVWy HVofGUd0yLogwUN7vy49WVle2qUmupDuezgCtd5rDAdPwAYRoWPjRt/SYHDM/U5vDvXV T0RkR/bghNssrJbL1JEo0a7J+0DFeZ2pnWPtuAQ4JjgBT2zVetX1gretwLg1Ak14rfEQ bo6g== X-Gm-Message-State: AOAM533jmHadc7rQBAiagPB1vsbKt+xvCN6qZh6wv2tCQHELAQxFbllw /R8fkNNHBvvTNuHkVu1KVlU= X-Google-Smtp-Source: ABdhPJzloCznyEb62AMWAsnX4+7hyBDemmPHi+Cfkc6Er/qVYLzvY4dWP83qK3UzIPpqkSTI1JzMKQ== X-Received: by 2002:a37:584:: with SMTP id 126mr5947068qkf.332.1610142495927; Fri, 08 Jan 2021 13:48:15 -0800 (PST) Received: from horizon.localdomain ([177.220.174.157]) by smtp.gmail.com with ESMTPSA id j142sm5616534qke.117.2021.01.08.13.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 13:48:15 -0800 (PST) Received: by horizon.localdomain (Postfix, from userid 1000) id 5A936C0095; Fri, 8 Jan 2021 18:48:12 -0300 (-03) Date: Fri, 8 Jan 2021 18:48:12 -0300 From: Marcelo Ricardo Leitner To: Saeed Mahameed Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Roi Dayan , Paul Blakey , Saeed Mahameed Subject: Re: [net-next 08/15] net/mlx5e: CT: Preparation for offloading +trk+new ct rules Message-ID: <20210108214812.GB3678@horizon.localdomain> References: <20210108053054.660499-1-saeed@kernel.org> <20210108053054.660499-9-saeed@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210108053054.660499-9-saeed@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, On Thu, Jan 07, 2021 at 09:30:47PM -0800, Saeed Mahameed wrote: > From: Roi Dayan > > Connection tracking associates the connection state per packet. The > first packet of a connection is assigned with the +trk+new state. The > connection enters the established state once a packet is seen on the > other direction. > > Currently we offload only the established flows. However, UDP traffic > using source port entropy (e.g. vxlan, RoCE) will never enter the > established state. Such protocols do not require stateful processing, > and therefore could be offloaded. If it doesn't require stateful processing, please enlight me on why conntrack is being used in the first place. What's the use case here? > > The change in the model is that a miss on the CT table will be forwarded > to a new +trk+new ct table and a miss there will be forwarded to the slow > path table. AFAICU this new +trk+new ct table is a wildcard match on sport with specific dports. Also AFAICU, such entries will not be visible to the userspace then. Is this right? Marcelo