Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp649992ybm; Thu, 28 May 2020 11:38:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIIXacaeIhYm2wImnzF4lFF7tOu2sXsJK+RvyVKkR8VDVMwL9kTcAhnllH/pSxP5BmYme8 X-Received: by 2002:a17:906:e112:: with SMTP id gj18mr4322605ejb.352.1590691136451; Thu, 28 May 2020 11:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590691136; cv=none; d=google.com; s=arc-20160816; b=qSiWsvw6ftrC30Zt6n0oHapFGOkO7xXSgpdVgXFaDFYvlGJhloQmKFrx4613wacCSC kL+GZN28Ui7N9Rn8SBG+yAzdLjgz+5iNt8iqavYXmKcENKSUWTHO+9ZGB/u9xLEqjRBJ FU/if850Wa+qYJJXSP8uW1LcNbOVCwk3UmWr3Ou+QlFmOucHTN0j2HytzUYpcD9UD0MD hChMr3MqHGDgLHfar3B5n0svLS/118dzKhmAFW7ohLVB7XSv02SOJckC0rA0hUwxHT8H xBiEmol7sQgkEdIw+9KyzAz/+NWOpHddyvg+zuQd1F48Q2u5BNFodaTSr1ctJEuo8g9P 4L4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=OJIv/IndClTuE9KQVK+PRL0f3Srk/Sj9bh1FimFXRUQ=; b=vezC5QnDsGkTDW2gTk6OQs5nYE4sK07WMMGTBn4hMDOt0odhJCqjDfTvgcWUIJZvZw o1+n3gFW3O8Np+gbaxa0g0Og9lgjAjZ1TJ07v5HqESBgSm32nHBF8gzpnU/LNvCbUBvJ JiXWpg5EEO75wSrHNkxCDTlwIhmFRSL81yang6/ZEnvLh1+kK5A+S/6oj8lfkvXBseTl uYVbg9gt3Ozazf7kf9A/Df05sQ9u/whZ/nzaj9Jkk6NIaVlOc6Y0ZSsc5XHnxtpEpM3D 1L+oE9eChuWStHMoOoM5jklnCF+zNnhbMYOggqxtqJazxpfHXKdNFaZ7g7guMPr1+BUo vpnQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si4248612ejx.250.2020.05.28.11.38.33; Thu, 28 May 2020 11:38:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405942AbgE1Sg0 (ORCPT + 99 others); Thu, 28 May 2020 14:36:26 -0400 Received: from ex13-edg-ou-001.vmware.com ([208.91.0.189]:26976 "EHLO EX13-EDG-OU-001.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405890AbgE1SgU (ORCPT ); Thu, 28 May 2020 14:36:20 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Thu, 28 May 2020 11:36:15 -0700 Received: from ubuntu.eng.vmware.com (unknown [10.20.113.240]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id A5F84B2240; Thu, 28 May 2020 14:36:19 -0400 (EDT) From: Ronak Doshi To: CC: Ronak Doshi , "VMware, Inc." , "David S. Miller" , Jakub Kicinski , open list Subject: [PATCH v2 net-next 0/4] vmxnet3: upgrade to version 4 Date: Thu, 28 May 2020 11:36:11 -0700 Message-ID: <20200528183615.27212-1-doshir@vmware.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: None (EX13-EDG-OU-001.vmware.com: doshir@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org vmxnet3 emulation has recently added several new features which includes offload support for tunnel packets, support for new commands the driver can issue to emulation, change in descriptor fields, etc. This patch series extends the vmxnet3 driver to leverage these new features. Compatibility is maintained using existing vmxnet3 versioning mechanism as follows: - new features added to vmxnet3 emulation are associated with new vmxnet3 version viz. vmxnet3 version 4. - emulation advertises all the versions it supports to the driver. - during initialization, vmxnet3 driver picks the highest version number supported by both the emulation and the driver and configures emulation to run at that version. In particular, following changes are introduced: Patch 1: This patch introduces utility macros for vmxnet3 version 4 comparison and updates Copyright information. Patch 2: This patch implements get_rss_hash_opts and set_rss_hash_opts methods to allow querying and configuring different Rx flow hash configurations which can be used to support UDP/ESP RSS. Patch 3: This patch introduces segmentation and checksum offload support for encapsulated packets. This avoids segmenting and calculating checksum for each segment and hence gives performance boost. Patch 4: With all vmxnet3 version 4 changes incorporated in the vmxnet3 driver, with this patch, the driver can configure emulation to run at vmxnet3 version 4. Changes in v2: - Fixed compilation issue due to missing closed brace - added fallthrough comment Ronak Doshi (4): vmxnet3: prepare for version 4 changes vmxnet3: add support to get/set rx flow hash vmxnet3: add geneve and vxlan tunnel offload support vmxnet3: update to version 4 drivers/net/vmxnet3/Makefile | 2 +- drivers/net/vmxnet3/upt1_defs.h | 5 +- drivers/net/vmxnet3/vmxnet3_defs.h | 31 +++- drivers/net/vmxnet3/vmxnet3_drv.c | 164 ++++++++++++++++++--- drivers/net/vmxnet3/vmxnet3_ethtool.c | 268 +++++++++++++++++++++++++++++++++- drivers/net/vmxnet3/vmxnet3_int.h | 25 +++- 6 files changed, 453 insertions(+), 42 deletions(-) -- 2.11.0