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=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT 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 71CD0C0044D for ; Mon, 16 Mar 2020 10:24:49 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3C05E205ED for ; Mon, 16 Mar 2020 10:24:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=daynix-com.20150623.gappssmtp.com header.i=@daynix-com.20150623.gappssmtp.com header.b="P5YlIRNa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3C05E205ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=daynix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDmvP-0002UI-Ti for qemu-devel@archiver.kernel.org; Mon, 16 Mar 2020 06:24:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38019) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDmgp-00060l-RP for qemu-devel@nongnu.org; Mon, 16 Mar 2020 06:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDmgo-0003RE-M5 for qemu-devel@nongnu.org; Mon, 16 Mar 2020 06:09:43 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:46681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDmgn-00031P-UB for qemu-devel@nongnu.org; Mon, 16 Mar 2020 06:09:42 -0400 Received: by mail-wr1-x444.google.com with SMTP id w16so3960190wrv.13 for ; Mon, 16 Mar 2020 03:09:41 -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; bh=8dqIf7x4xvvX+26xdYNWGyCJJwyBAGUEznQ6buBcw6A=; b=P5YlIRNaXZXXUWABWiLqMPjHrDDFw3B/JNgcZuStci3s/VcFfCEr4WwJn7v2DfHU28 +uFkahDviksvyAe2jmdQA8ClT7OAHHHXgREJRc49YdRyhsdzOwMGp89xfhaw4Co6puyj MLHyRPHVVsQd3fwz2IRgwnVdtjCw8MPSlCYdehYY0/FkSikYW2mXrLBpXJYqCd/Ux9fc TiB9ocnYJPIUYzIb/qm8RmtPTDI7+EsWcZoUCMjIFg6FmesOx3DQL9zPExmdc8OQ1oCS kQTnSZPSRwmv7l1qMmlt/pi1PiODR/ihasklTTOJvkyNPmu4ovtANFU3zG8ToOL0RQJG lmzw== 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; bh=8dqIf7x4xvvX+26xdYNWGyCJJwyBAGUEznQ6buBcw6A=; b=uIifRT/RjEke3sVo6mQh3cjPOwFC8tsVtT5BZm8OtI7DHdJ/Ak+mPY2TwS7ruEHFpl 31R+Cu/G3k4yusagaRHoHBzskGylLgHMhisWUFLzSWqboo+B5I4GbpKBH+CCtJsz6mIO vq9SEaoSBvlSsXskMa5+6etST9arnkT3o4xrz6YLediqyCP9+fR+/hCWIYHUIpvYcRxy jeeOq2MQ5Yz8BRuubsu6cj6auPWWmhbTjgd6v9vCEHlzuP+HTOr0hT6DWPIBBIn63j31 gPr+M8mdbv87c+qCAoUJyLEsKP4kJyzBE2ZbEkFetgzupWt8baxaf5U3IY8o/kV3pFuP PceQ== X-Gm-Message-State: ANhLgQ3enQhW5ULa94ujKVppwdpJkPsdazVx0vyCRDniVmdsPhniaZdS cs0oatq3dV8Tz59V29GjfBx1/+Vbx8cizw== X-Google-Smtp-Source: ADFU+vvwTnoV7VAAmoEoXdKVRk1j7rQMG+fFSNXsnj8pe6Vw3jW3nhzIRIjbtx+Ijx0I88gJFN2QLQ== X-Received: by 2002:a5d:68c1:: with SMTP id p1mr22167486wrw.198.1584353380201; Mon, 16 Mar 2020 03:09:40 -0700 (PDT) Received: from f2.redhat.com (bzq-79-183-43-120.red.bezeqint.net. [79.183.43.120]) by smtp.gmail.com with ESMTPSA id l7sm22083171wrw.33.2020.03.16.03.09.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Mar 2020 03:09:39 -0700 (PDT) From: Yuri Benditovich To: qemu-devel@nongnu.org, mst@redhat.com, jasowang@redhat.com Subject: [PATCH v4 0/6] reference implementation of RSS and hash report Date: Mon, 16 Mar 2020 12:09:27 +0200 Message-Id: <20200316100933.11499-1-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yan@daynix.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Support for VIRTIO_NET_F_RSS and VIRTIO_NET_F_HASH_REPORT features in QEMU for reference purpose. Implements Toeplitz hash calculation for incoming packets according to configuration provided by driver. Uses calculated hash for decision on receive virtqueue and/or reports the hash in the virtio header Changes from v3 Use pointer for indirections table instead of array Cosmetic changes per v3 review Changes from v2: Implemented migration support Added implementation of hash report Changed reporting of error during processing of command (per review of v2) Cosmetic changes per v2 review Yuri Benditovich (6): virtio-net: introduce RSS and hash report features virtio-net: implement RSS configuration command virtio-net: implement RX RSS processing tap: allow extended virtio header with hash info virtio-net: reference implementation of hash report virtio-net: add migration support for RSS and hash report hw/net/trace-events | 3 + hw/net/virtio-net.c | 437 +++++++++++++++++++++++++++++++-- include/hw/virtio/virtio-net.h | 16 ++ net/tap.c | 11 +- 4 files changed, 439 insertions(+), 28 deletions(-) -- 2.17.1