Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp869426pxb; Wed, 6 Oct 2021 17:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7yrAOUExPq/vLMWbfp+13T4dxbFcfjQzyzn+cpkA17nu1TvdMYwMb2NqvVhpmvR4i5M72 X-Received: by 2002:a50:9d4f:: with SMTP id j15mr2068097edk.68.1633567396062; Wed, 06 Oct 2021 17:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633567396; cv=none; d=google.com; s=arc-20160816; b=U+Ag3dMyBVMp9AJu4oGhEciJPW/5b448ma3FZDwddZ6OlCQBcAN0rQVR9Ao5PuAMsd etC/98kHT/9QAw96Ru6XAEOe+Xu7FRYXWBemqdcFuc5Ge0tm8Wo1fra8LaADzNph+VVn D/ZsicjWiWSrMGs0uDhxaiMKgh6dTkasrU7b9FZMH4D+WK+5R4GXN6nrdJfuAn3yOcJW CYW3eraJ9khU3USjdfEXTyM11z5ySu3wzkli4KXmuQn3Ykhz0mJPnJOFCIkI3Zx4Y91t 3GTSBo5u3ORBqPfT9wti/S84LjD3EZOrxxmDh11QBjjOOUAvS/QJmUUlmFS5+6bSIyUJ 9quA== 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:subject:cc:to:from:date :dkim-signature; bh=ewdMioTAUkbi4ZAQh7Du/S13HIZ+Y3sNVcJuewkhmHI=; b=O/LUkRX6qU3EjL1h+Fy2YoKchvz99X9xDV7voDUCOpjoNypPPhtdAx47Ol2Ubz2QMG 1Nd6BZm1WgBP6+V2fCB3xJr9QBOr1p92tnNhwaA5/8wMTdKHrlO/weW5IqMn9REhm47B iyZigfOXkuEj6V/7H6SGQgW23YtvYAmZLkpHIkj4f9BFPdsHvs/gPyeSebTV3HAZO+w/ 8jI3IAzb9cUs7UshSHPqet5uC04w5IM+JEWwnOc8TvMDMQ/xS4iT1LsVxRD54QEEdDkz 6OSqBHYKOLvvoqe973ZsuY4IbVbIHT5ykC6/HPwW5+tCzT2EBaEX7DOpY77j6wa7Mb3O Bs1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="s8Bqs5/n"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce20si4694322edb.423.2021.10.06.17.42.52; Wed, 06 Oct 2021 17:43:16 -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=@kernel.org header.s=k20201202 header.b="s8Bqs5/n"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232397AbhJGAkg (ORCPT + 99 others); Wed, 6 Oct 2021 20:40:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:59856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230322AbhJGAkf (ORCPT ); Wed, 6 Oct 2021 20:40:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5B2461177; Thu, 7 Oct 2021 00:38:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633567123; bh=N3SATjHZrhsDavQKVCAb0RqlxJGbsZDYgLhpBlyC2vY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s8Bqs5/n82dHLmNzRNwTfG6aXJ/9vVsBjk7h0DJjjz83yC/nUe0Cqpl8cXt96nCxn dOJYxS+zF4bzyqtV3KNVpMq++hnv8nh88fsfaBbJzY3Bik+XhElCyafdOSnL0tsVvt 5GpxQsqu5nkijUruPqXeqnUVDM1OQ7cFXOrpJVu+5X9sj3Rzs5kx6H0J0j9aMpX1SG /2se3AcWUhfEB1Jrh20gZuMqe2NYHi8FLPicID1QYtnCVou7Q8Y5Wkg2nMjysNdJT+ 9zeeVqGEU534TXv5jG2arZUsRN2U4TKuumNutkuVoRzCc1bZO2f7s2sH9SLuewBG8m gjsUmMx5vZSmQ== Date: Wed, 6 Oct 2021 17:38:41 -0700 From: Jakub Kicinski To: Volodymyr Mytnyk Cc: netdev@vger.kernel.org, Volodymyr Mytnyk , "David S. Miller" , Chris Mi , Roi Dayan , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] flow_offload: add l4 port range match Message-ID: <20211006173841.63dde6f6@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1633525615-6341-1-git-send-email-volodymyr.mytnyk@plvision.eu> References: <1633525615-6341-1-git-send-email-volodymyr.mytnyk@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Oct 2021 16:06:54 +0300 Volodymyr Mytnyk wrote: > From: Volodymyr Mytnyk > > Current flow offload API doen't allow to offload l4 port range > match dissector (FLOW_DISSECTOR_KEY_PORTS_RANGE) in the driver, > as is no relevant data struct that will hold this information > and pass it to the driver. > > Thus, to make offload of l4 port range possible by other drivers > add dedicated dissector port range struct to get min and max > value provided by user. > > - add flow_dissector_key_ports_range to store > l4 port range match. > - add flow_match_ports_range key/mask > > tc cmd example: > tc qd add dev PORT clsact > tc filter add dev PORT protocol ip ingress \ > flower skip_sw ip_proto udp src_port 2-37 action drop > > Signed-off-by: Volodymyr Mytnyk A driver implementation needs to be posted in the same series. Otherwise it's an API with no in-tree user. Let's consider this posting an RFC.