Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp108959ybx; Tue, 29 Oct 2019 15:11:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxu++eG2Urf8Bzoy87DudUxPvg98F/AvG7Y8YI1OFcjgm3hMwkbDnlIV/SIKTtWo0y8ypZy X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr28603817edu.34.1572387078146; Tue, 29 Oct 2019 15:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572387078; cv=none; d=google.com; s=arc-20160816; b=en22Vt9fKxFsEAZCyhz3HmPbhrzqSj36fhhZY+/tPFd9/b1qunyrYud4Zg4nqEgJqc /xPhsHfWHmqmNJyjb1+89xKyWZniYLjh74PA4aALMqaHxYdbGl8cAGJBez/hPWvek7Ff NC4BDiZONQKA/5EEryq/jExIJhiEJbFosDxgeyeUC7tgK9Zj/tZ5k8Hc6Hl5Hl3TaLpI 3XUXxW0CTwg53gePZ+UO/ErAPIovA7QNMcMhtTk+qyJ9j9maT7jl4dbGmQZiXMkUidJn FSxRgcG7eawL7Bm8WEHu1X3ieJXrGIq9HxQQesf+/7ExcQWl47w8jX/wg3nlmMO/Wijw mPkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=DpN5YTXrp9hp71uxbnpmiOwzB6GTFkwG/3T4Kj5BrEM=; b=gKFfBh8ySim2PfWfwUhrEcv4MC/0XAaDcB+QCEXnuMpx8zvxV2YzBikmCCDP9Fx7b4 6/1nXP+0peLhxprT46JhIVi1rJ52ZK2D/06lQBSi41Tb9PuINILamUGAMxRcj4GeRXYn sTJ73CRdpnjxNYzoDE9H2RpKuxyKuN1A1AxLm18XfdZVM7z042ceiokzek69kRGSJkI5 RAzQqBPK6mmf7RUHfBnhV0Ig3fnhFPK/La4MvsziZq3r/OfI5Nf42IdUdDiGKjuyxB9c yqWe6vxivRFW3UijxTjLxtAWLcHjV6Av+mrKyU/orFQZrdvCCL0AAX1Ti+Qj+Z1TpIEW 2S7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=qgkV77A9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b31si55650edb.113.2019.10.29.15.10.54; Tue, 29 Oct 2019 15:11:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=qgkV77A9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726423AbfJ2V7Q (ORCPT + 99 others); Tue, 29 Oct 2019 17:59:16 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:40951 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfJ2V7P (ORCPT ); Tue, 29 Oct 2019 17:59:15 -0400 Received: by mail-pl1-f194.google.com with SMTP id p5so3179102plr.7 for ; Tue, 29 Oct 2019 14:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DpN5YTXrp9hp71uxbnpmiOwzB6GTFkwG/3T4Kj5BrEM=; b=qgkV77A9tGs/sOv5qzKPxPbYxXbujKalYxznr/KJcAe6aHZXkpz2sB7b0GwaCBdIk5 3AwShV2aLjyJtqCJZqgIrvfLUdOfsdTOAyEBfQVvUPGmwf7VXSg3zyiZ+pVn2P1rBoOm 6nvgQ1Bcrgd79MPUNP7FKGx5ZYxjvd7ZEWwpK6R7K2HHKzpWhgCf2T11tuSaV8QLDB7o Xt2ksQZgxh1ThsQ6ZZmzq8HgpVWKu0jwtyGXC9xc+Sngf75prU0+zt7cuJgjTOpdXglL Ku52vyE+ow5Vwet0EDpMTyWeX7GSlMnL8UK9bxhJR2CvrlVSy0cbXnvz+bKysuAUrCUH dL7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DpN5YTXrp9hp71uxbnpmiOwzB6GTFkwG/3T4Kj5BrEM=; b=fg8xyNcYOQhScpz84sWEqatXwjs1D37Mbg1WvrFvpil+nw2pMQmln9aIhYDVL04Sbr zxbsmTjkXVWt8UlPXjDmeDZLKZQj4rTcP86kFhbR1+Q+szA5n6REu8iU0ADJjmQBtW+o DBrsjIIvQ8IoXmrtGUX26+NMagnFSnK9Pj/RkEOW9MahQBFbIs+Iqf3IZPe+cNVzSi9A 84/Uk6U2LwRjCnuqQRVw4sL5IR57lTZwvFGQUTlaRXWRsO+VFb9GHVc0ax9Pw22zluII AhdEJwAFz8vom8uyye2sEANGFh7ROHZnEpxSfoVb68HNB2/QpLyDUZYSjdoBE9TBajP4 IRbw== X-Gm-Message-State: APjAAAXemH/ieP+32zl2T8wtMMftft5ssnkKN91gqo2H/NHeKM5QBtHt MnCAqY/7iFRw8Eq4P7yYwKt47w== X-Received: by 2002:a17:902:988d:: with SMTP id s13mr915958plp.335.1572386354831; Tue, 29 Oct 2019 14:59:14 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j10sm85753pfn.128.2019.10.29.14.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 14:59:14 -0700 (PDT) Date: Tue, 29 Oct 2019 14:59:05 -0700 From: Stephen Hemminger To: Haiyang Zhang Cc: Jakub Kicinski , "sashal@kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , KY Srinivasan , Stephen Hemminger , "olaf@aepfle.de" , vkuznets , "davem@davemloft.net" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next, 3/4] hv_netvsc: Add XDP support Message-ID: <20191029145905.414f86c3@hermes.lan> In-Reply-To: References: <1572296801-4789-1-git-send-email-haiyangz@microsoft.com> <1572296801-4789-4-git-send-email-haiyangz@microsoft.com> <20191028143322.45d81da4@cakuba.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019 19:17:25 +0000 Haiyang Zhang wrote: > > -----Original Message----- > > From: Jakub Kicinski > > Sent: Monday, October 28, 2019 5:33 PM > > To: Haiyang Zhang > > Cc: sashal@kernel.org; linux-hyperv@vger.kernel.org; > > netdev@vger.kernel.org; KY Srinivasan ; Stephen > > Hemminger ; olaf@aepfle.de; vkuznets > > ; davem@davemloft.net; linux- > > kernel@vger.kernel.org > > Subject: Re: [PATCH net-next, 3/4] hv_netvsc: Add XDP support > > > > On Mon, 28 Oct 2019 21:07:04 +0000, Haiyang Zhang wrote: > > > This patch adds support of XDP in native mode for hv_netvsc driver, and > > > transparently sets the XDP program on the associated VF NIC as well. > > > > > > XDP program cannot run with LRO (RSC) enabled, so you need to disable > > LRO > > > before running XDP: > > > ethtool -K eth0 lro off > > > > > > XDP actions not yet supported: > > > XDP_TX, XDP_REDIRECT > > > > I don't think we want to merge support without at least XDP_TX these > > days.. > Thanks for your detailed comments -- > I'm working on the XDP_TX... > > > > > And without the ability to prepend headers this may be the least > > complete initial XDP implementation we've seen :( > The RNDIS packet buffer received by netvsc doesn't have a head room, but I'm > considering copy the packets to the page buffer, with a head room space > reserved for XDP. There is a small amount of headroom available by reusing the RNDIS header and packet space. Looks like 40 bytes or so.