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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 91B2FC433E9 for ; Fri, 5 Mar 2021 23:08:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F43A650B6 for ; Fri, 5 Mar 2021 23:08:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbhCEXHe (ORCPT ); Fri, 5 Mar 2021 18:07:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:49230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbhCEXHE (ORCPT ); Fri, 5 Mar 2021 18:07:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9D0C66509B; Fri, 5 Mar 2021 23:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614985623; bh=qd9tsVXUfBIWEXb4jZGqmGwVVcreJ+LXBXy/V9itMNk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EQOs6IlN9yeg2lqrWD6SEupKvk7HgPhwVnP6E7FYWK3Z/qqlsCnKBxTnFpDY/q493 BENkCNpt3DPnvxTz/PIW5gGGkJhGz3yGGFIEw7Ea/SwstcgmsKfv/ubfxKM0Fed+cI yZRFcWBY/Swo5HUSaHv9BG2Ui5pG5OuPx0sw+0NcvtgIsKJMI+HLfYHQyO9yOTKLsU 1dud6w3cxsNUhMwNwcvOu8y/uCcEwe/f1uIyTgRorpZGOCDAOs2uILrdQOAuX6Jyg/ d4hmnGyAor5zjoqlRzC4ZqX61o96rRnzQXy+0NLWjay0VLMkyPvQFObcjL8hSeRwh/ 3NjAyDU+8TXYw== Date: Fri, 5 Mar 2021 15:07:02 -0800 From: Jakub Kicinski To: Sunil Kovvuri Cc: Linux Netdev List , "David S. Miller" , George Cherian , Subbaraya Sundeep , Sunil Goutham , Andrew Lunn , Vladimir Oltean Subject: Re: Query on new ethtool RSS hashing options Message-ID: <20210305150702.1c652fe2@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 5 Mar 2021 16:15:51 +0530 Sunil Kovvuri wrote: > Hi, > > We have a requirement where in we want RSS hashing to be done on packet fields > which are not currently supported by the ethtool. > > Current options: > ehtool -n rx-flow-hash > tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r > > Specifically our requirement is to calculate hash with DSA tag (which > is inserted by switch) plus the TCP/UDP 4-tuple as input. Can you share the format of the DSA tag? Is there a driver for it upstream? Do we need to represent it in union ethtool_flow_union? > Is it okay to add such options to the ethtool ? > or will it be better to add a generic option to take pkt data offset > and number of bytes ? > > Something like > ethtool -n rx-flow-hash tcp4 sdfn off num > > > Any comments, please.