From patchwork Wed Aug 18 17:54:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Melnichenko X-Patchwork-Id: 12444911 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=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 D2932C4338F for ; Wed, 18 Aug 2021 17:55:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B44A4610FE for ; Wed, 18 Aug 2021 17:55:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbhHRRzp (ORCPT ); Wed, 18 Aug 2021 13:55:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhHRRzl (ORCPT ); Wed, 18 Aug 2021 13:55:41 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EE8BC061764 for ; Wed, 18 Aug 2021 10:55:04 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id p38so6468651lfa.0 for ; Wed, 18 Aug 2021 10:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2fnlNwiofJwFvUxJlW0rUAKllXf+VVuXYYhoztRaKrc=; b=WddZj7EJgefVxb9XuzeiiByxrQaIU1ZCn078ocCIbUNKeYAKTZMl9cUO+YdbgHEnoz 06LQkdHHFctMrAG52vWwHps/gFewpi3V+2amfn7E0CrLCwJypvwZ07F7xk/9c7pKOIc9 wVVERJlWS6c5K+hmeZfgZZ+99oVmw0VJD5obvog078WwAKDqNgbz6/HGzdPl84b96hN2 Ej00VMayudP/1poXgwckqFLbp3QQgTATYXZRK4798uvoYMKz/vNoeFZ/A47KMbGR1AEG 599cWUJtiuOUWUcbVXE/scN59fy69DEDU4KrIkpJKBhZnb2cDZFopYCYd5WTZHNVvvR7 wz2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2fnlNwiofJwFvUxJlW0rUAKllXf+VVuXYYhoztRaKrc=; b=kV6D+ikSPYR1wXMB8UxFp2NQaSkJJT3JvOetTVhBKiv0hw8tzTXAjniw7b4mAt3N7V 352YVpKYMLSqJcrSZKDRkXwQxLJ0W+KzSRSC+1zJvpw+O51SZJaOrQuUOAquQrTjxZ66 lk3E5Lbb6AJvG8EbEV+ubMJzfECBtygtJzqY6lz1swt0DVRyrYMScWq22YSYjD09xP48 uKGFavciva+FfSvSJ4tNOeAg+lOu8BiJBU4n9zg4Y84aDUEBzr43yzgAglqVZPZfJD64 /LYO3l2PjgU4F3jgwAz5jmRmL0feRgdmYIXKzmaqoY3lr+lyweCXlAeiAkg7MeA3eAKl +sYw== X-Gm-Message-State: AOAM532T5aaLYCOTOJ665jcciT7sSvmFPO5RYMk82R+8sYBxDXMpqb3l QHxILMIagWq4vG6yU15QHSTPOg== X-Google-Smtp-Source: ABdhPJzi4vtgTooKvWILaZjtHgpR8vbROhR7aWUGuVSAwZ/NyTVd1HWcvqoEvUBvVwziQ8vKIed/sw== X-Received: by 2002:a05:6512:3048:: with SMTP id b8mr7342984lfb.420.1629309302699; Wed, 18 Aug 2021 10:55:02 -0700 (PDT) Received: from navi.cosmonova.net.ua ([95.67.24.131]) by smtp.gmail.com with ESMTPSA id c5sm55820lji.67.2021.08.18.10.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 10:55:02 -0700 (PDT) From: Andrew Melnychenko To: mst@redhat.com, jasowang@redhat.com, davem@davemloft.net, kuba@kernel.org Cc: virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/3] drivers/net/virtio_net: Added RSS support. Date: Wed, 18 Aug 2021 20:54:37 +0300 Message-Id: <20210818175440.128691-1-andrew@daynix.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-State: RFC This series of RFC patches for comments and additional proposals. Virtio-net supports "hardware" RSS with toeplitz key. Also, it allows receiving calculated hash in vheader that may be used with RPS. Added ethtools callbacks to manipulate RSS. Technically hash calculation may be set only for SRC+DST and SRC+DST+PORTSRC+PORTDST hashflows. The completely disabling hash calculation for TCP or UDP would disable hash calculation for IP. RSS/RXHASH is disabled by default. Andrew Melnychenko (3): drivers/net/virtio_net: Fixed vheader to use v1. drivers/net/virtio_net: Added basic RSS support. drivers/net/virtio_net: Added RSS hash report. drivers/net/virtio_net.c | 402 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 385 insertions(+), 17 deletions(-)