Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp49458ybm; Wed, 27 May 2020 18:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFD1rREXPZxyKrEmly7mHO+NYzfiwKJd1O82QMKNaGkU457jWF7VKr1F8WSvQd20F32tgQ X-Received: by 2002:a17:906:7629:: with SMTP id c9mr955648ejn.264.1590631009988; Wed, 27 May 2020 18:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590631009; cv=none; d=google.com; s=arc-20160816; b=x7LbWLj53k92pdfVrv5L7XEqYtqsfRGR4QYwBW7zWiEkHsu/5EdcR1ORHrNVD//1C7 pSD7SLQOzI5bF1SfByFp7yt0QLQB7y01l6Pe8S2Ue5YSma+9TrfhTbUtxBSOfBXGK0Y9 fwfex4EPlprP0Dv3OAcvhxSjR/1LK8/na/IDhVHwqco9fBvAs7zS2elyDv0jpmrIp93C tSgkWmuv/fbDoZaKQ5GofTuSljxkfhUAi60F2yvi1wSzMicVrLktAkUv+h3LU/LVoEW1 TIMqUjuIpp6zb0yU0aZHYrgpbwFMIvpxg8khFSMISkmLlT/6Z3WXV+UEEI30EhBwpINa /qLg== 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=AhQpyz3g9VLHfWVntG6LybDQeWah5iLMnoHIQ8BBYho=; b=W9aRIJDztKA5S5jGbz9gCWr8PY5N/VM6712iHmL3dZLiozN94ewy4IfmwPPcqhd1if 2aKJwAF+sXy85GCOeh/7eBqqHFliQf4NJqlkPRvzWSlaC1mP5IUp52fjh+MjIuMFMdtV q9ouw1yHjB6s8pDa1lZv15OUxiih/BVVH0uZZeGPWmzU9Q/xASQIh9KNMH8BKW12dypv eh4oVKZOxvX+Dxjjjo4+AQRWYmg9sHjHB3woTpepoNzY6mz94gslQjYhmvDd9PO6hxq1 TWA3FYwPGibzj66ICBWOLYo/asLhq3arCYfeQ3/gQjstUqUXgdflPwRDIlchrmEPoH3/ X/6g== 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 s7si3156619ejo.438.2020.05.27.18.56.26; Wed, 27 May 2020 18:56:49 -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 S1726831AbgE1Byp (ORCPT + 99 others); Wed, 27 May 2020 21:54:45 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:51380 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbgE1Byo (ORCPT ); Wed, 27 May 2020 21:54:44 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Wed, 27 May 2020 18:54:41 -0700 Received: from ubuntu.eng.vmware.com (unknown [10.20.113.240]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 45CDB402C2; Wed, 27 May 2020 18:54:44 -0700 (PDT) From: Ronak Doshi To: CC: Ronak Doshi , "VMware, Inc." , "David S. Miller" , Jakub Kicinski , open list Subject: [PATCH net-next 0/4] vmxnet3: upgrade to version 4 Date: Wed, 27 May 2020 18:54:22 -0700 Message-ID: <20200528015426.8285-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-002.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. 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 | 267 +++++++++++++++++++++++++++++++++- drivers/net/vmxnet3/vmxnet3_int.h | 25 +++- 6 files changed, 452 insertions(+), 42 deletions(-) -- 2.11.0