Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2868321lqo; Tue, 14 May 2024 11:36:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdBbZiyA7GcTaNP2NLzIR+SOcRSIKXVpfV1LgJsmCeXBSzbcTK+ZtBpENUJtuyyVcjYDsG0ATLUgkcPZbEi02BG0qQlAxNXf2xMoCuiw== X-Google-Smtp-Source: AGHT+IHUdRk1j18sjXkdPkJgbUVZ2vgevaIsN2Lxd8tG3o3a59+aLMmyaqSwyYXEwWPDHhmB81JO X-Received: by 2002:a17:906:cb9b:b0:a55:adec:7139 with SMTP id a640c23a62f3a-a5a2d641857mr1018176666b.60.1715711796702; Tue, 14 May 2024 11:36:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715711796; cv=pass; d=google.com; s=arc-20160816; b=QNXtamxJ0HQYBUeeijNtG6y3Yj4hoQ0bczIQN8QPrZwgb7lQiDtnFbYwl4v1QiHTax v5UewydmZqrJmfnKz/E87dweEv486QXjWRzg2b5rp5tPU4f10oO60rfuYyjw2W97kSfl /ezi6FfDttVFI55NG0mICfFXPo798teE35beBkPybmRex45RXoufM1SKTzAjafkI2JQx uJLowC4rG9V6G429q6mFOp7kgy28awC4aVTBXV7P/GUP9r6y8ZB+ayGM7QwyJBSEm4Cp ceqoVUFO5W/uLlThRGJsDqVeVaEfip5QyJ2KzMbernJPJ/V4K1gY80Ggxy1OycrKkIwm f71A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=u6J7XUwrluGlUOsegZN7X61RGr7Q6BGxjc+d/NvJ3YQ=; fh=yPyBVueOlV0xh9WIpneyBjPV+wI+YQTxV6XUuh1OKK4=; b=xrJUkwjSoiWICiDvJjT4JQ1i7iKrLytwRm8Cpn9FNqYBuXn4ePuJ6uZZc8iDxUAKtl zsdvs8J37NLN7+N3wasVHWDis6C3ZzamSKdpEdHdM+xpF4dJpFzqzTPCjPVtBv0VunXz HkyO0eo1qEwqxPt6fJyeq9lOSTUr1OJk91zu4D40FT+397Pl1aQHbHoLlSAIV12anmle AX9bpo4dXN3NCu573AKijOGAyR6Ks67rnV70QJuinCqnAwdwJUXcj0VXco/OLO/rMLXp ohmmbFC5Em4s4XEaxxi/45nvooEu+ycJLRyPBFLTWNSvNbkOfZWzOUW3zPSWTX99m3li 9ovA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=vmware.com); spf=pass (google.com: domain of linux-kernel+bounces-179061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17946308si615613266b.187.2024.05.14.11.36.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 11:36:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=vmware.com); spf=pass (google.com: domain of linux-kernel+bounces-179061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 561B91F22CF9 for ; Tue, 14 May 2024 18:36:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D420E180A8B; Tue, 14 May 2024 18:36:25 +0000 (UTC) Received: from EX-PRD-EDGE01.vmware.com (EX-PRD-EDGE01.vmware.com [208.91.3.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C330B144D3E; Tue, 14 May 2024 18:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=208.91.3.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715711785; cv=none; b=F3YYd+SP3Yoj2lJSfQiuUAZ/WRcP/8qYB9m4DKufWeqfTUYSNEo6cEM3wUx8rBgEmMUaIzY6EvtCoLHLVlALLjBjGTJ5hmREoQLVwsCjFozlp+/7dBUE0y6FNAEJArm2uySErs8dmKvPa6yp3kgXhXpoplQ0fIhFFrDWHWMRRqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715711785; c=relaxed/simple; bh=xKIXN/WRDoAypSo2tWcS/nbPETH5owwn8UfBEliKgM8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=tw//9/KhivkmjXYH2qPL/+tJyzp6vzMDadVklcK1hm+JQ8Te3NZEdXtoaHGqvGFaEUJmLeuRSumqGL7YmATGVwMqj9KQQFhrEfzsWOvALUOnN3we2MpavzJMopoVfmRRM6c/dwe6J38u96vGNjZ0aYJDzjiXaZ4/vo9vLgJY0tk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com; spf=pass smtp.mailfrom=vmware.com; arc=none smtp.client-ip=208.91.3.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vmware.com Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX-PRD-EDGE01.vmware.com (10.188.245.6) with Microsoft SMTP Server id 15.1.2375.34; Tue, 14 May 2024 11:20:56 -0700 Received: from htb-1n-eng-dhcp122.eng.vmware.com (unknown [10.172.6.252]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id BB2B7202C0; Tue, 14 May 2024 11:21:04 -0700 (PDT) Received: by htb-1n-eng-dhcp122.eng.vmware.com (Postfix, from userid 0) id B592FAECCE; Tue, 14 May 2024 11:21:04 -0700 (PDT) From: Ronak Doshi To: CC: Ronak Doshi , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , open list Subject: [PATCH net-next 0/4] vmxnet3: upgrade to version 9 Date: Tue, 14 May 2024 11:20:45 -0700 Message-ID: <20240514182050.20931-1-ronak.doshi@broadcom.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: SoftFail (EX-PRD-EDGE01.vmware.com: domain of transitioning ronak.doshi@broadcom.com discourages use of 10.113.161.73 as permitted sender) vmxnet3 emulation has recently added timestamping feature which allows the hypervisor (ESXi) to calculate latency from guest virtual NIC driver to all the way up to the physical NIC. This patch series extends vmxnet3 driver to leverage these new feature. 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 9. - 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 9 comparison and updates Copyright information. Patch 2: This patch adds support to timestamp the packets so as to allow latency measurement in the ESXi. Patch 3: This patch adds support to disable certain offloads on the device based on the request specified by the user in the VM configuration. Patch 4: With all vmxnet3 version 9 changes incorporated in the vmxnet3 driver, with this patch, the driver can configure emulation to run at vmxnet3 version 9. Ronak Doshi (4): vmxnet3: prepare for version 9 changes vmxnet3: add latency measurement support in vmxnet3 vmxnet3: add command to allow disabling of offloads vmxnet3: update to version 9 drivers/net/vmxnet3/Makefile | 2 +- drivers/net/vmxnet3/vmxnet3_defs.h | 61 +++++++++- drivers/net/vmxnet3/vmxnet3_drv.c | 219 +++++++++++++++++++++++++++------- drivers/net/vmxnet3/vmxnet3_ethtool.c | 10 +- drivers/net/vmxnet3/vmxnet3_int.h | 33 ++++- 5 files changed, 276 insertions(+), 49 deletions(-) -- 2.11.0