From patchwork Thu Feb 29 21:22:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ziwei Xiao X-Patchwork-Id: 13577667 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB8DF16FF47 for ; Thu, 29 Feb 2024 21:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709241813; cv=none; b=gnDVKylSjlQyyMRsfPcuHVZuiSGuAfOB/Z4MnF2XbzVsPkv8yCiusmsnAizUt/b+4LHMqsvjkJZoA1ApqscDYUhYcXy5K/aFBdPLaue/kQ0oA8JLDSPM7ETFdNiNCvATvpCNiAIflE0y6GASohRMrXIrsddjsMHshHCxWE8nTig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709241813; c=relaxed/simple; bh=VjPiDMf6IhNaW+cu762GVEnCAc1qZeJ+AXh7xICr/eo=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=UPywW64MDNEeD1AJZhxYM2kc90xWWhnjaQU130vgFZXGHcJC4S0hKzOWKqvxgdRFhcu6oTZxfO1CsHUn2os9D/R2uDfuuY+IIg81d7JT9GEPMUh7JRMTVmLNMSnvddqLBbZzAiwmn+/SeLJiW1QvV2qzaDgjtYPDSGleVU6SGHQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ziweixiao.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=OhvjvEUv; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ziweixiao.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OhvjvEUv" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcd94cc48a1so2302243276.3 for ; Thu, 29 Feb 2024 13:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709241810; x=1709846610; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=fLhWwQ23CyyTvDsLOK851AhQhodJoK3lOakZm//Wnio=; b=OhvjvEUv5RXKCUisVhYiqDWeUklAeaS3hGRg4KGnR2UMBDVg1Vjq/ZK0dkEnNLGsin rT9+I6LUjj8o/9fYKgT0s4kmJQ8KN6YxlI7zO/Zo+rq4ELFdQCUGwX/QDDMYs4gurwcI sZkWN5ns7xDV0q+JPZOYPLTro3EPHMVcWj0BhKAuZyf37uKOUN2rVoWG0J0NG5u+d68t KCvGCAsW9t+aR2FlYAqZqtKu/q8ci/rZs9rgMMtLfrMUxDEKmr0VfodE8Y27yWObtgE2 fGuiG78jL3Lh9O0lBVMsp9D5STMXF3ySNIzOSSwnBVz+UexlLkqUdqm0HGwdK9ebflMD Ticg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709241810; x=1709846610; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fLhWwQ23CyyTvDsLOK851AhQhodJoK3lOakZm//Wnio=; b=gbiAt+JmocJMqFqISTmALysGVtABABaW2WoweiVj+4dFLdRUKJw+RzOe2VEkOTipSv UqFf/siPWQw0ILV2s29K+xx40Lig6efzcdH/eE8qffDNjy3PE0iW8Xo0JH9DXQaw6biy vhUPCOkY/SULUNLn7TG4W3wUO2Glo16aGXSpnwnpmv37UieDm1MMJcJ7KM552udJnvNe Fx13TGl5vNhEhznHM205BbZY600YIjLLwh85w7Pb5vO3Uz44dLISqO3DX+Eq7jQgkz8D 9Tjbf3tA91DddSEZrd0+qAX2ViWW820I2zXbuf/jzNQrFlZQ5ViWr8cJEa9SSIAmg4Ac 7I/Q== X-Gm-Message-State: AOJu0YwORcj2TMwSOVye8pgh80qlyFkoLhZ4fEbbx34OYRE70tvOSyTs 0HJsILtL3WA7kHIDDcy/2MknX9lsVECqIJ+Wz6e0OjrA9TZNOw7pFp2GPXX04FsdKsIhqZ/vYK3 4ChB981VXb3ECCV8h0MNKFPMLClgaTLIJ+h1AwGFcGvtVHHZO/mbHfVFB5aVXppjIIpcaqt7Z66 qcq05VUMGf6U3EBVAsrTDjdFkSkQ1nsT2E3QuyjuLJMdgsLoav X-Google-Smtp-Source: AGHT+IFS1dty/+rJQWw2sc3jcb3WwNJDLmAlgdfa2XsO6QwyCtrMLH5+4rkAyXpzjKCLMyIlAwCimbEcA1cqqH8= X-Received: from ziweixiao.sea.corp.google.com ([2620:15c:11c:202:43b5:fdf3:8395:a655]) (user=ziweixiao job=sendgmr) by 2002:a25:abc2:0:b0:dc7:48ce:d17f with SMTP id v60-20020a25abc2000000b00dc748ced17fmr800935ybi.10.1709241810564; Thu, 29 Feb 2024 13:23:30 -0800 (PST) Date: Thu, 29 Feb 2024 13:22:33 -0800 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog Message-ID: <20240229212236.3152897-1-ziweixiao@google.com> Subject: [PATCH net-next 0/3] gve: Add header split support From: Ziwei Xiao To: netdev@vger.kernel.org Cc: jeroendb@google.com, pkaligineedi@google.com, shailend@google.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, rushilg@google.com, jfraker@google.com, jrkim@google.com, hramamurthy@google.com, ziweixiao@google.com, horms@kernel.org, linux-kernel@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Currently, the ethtool's ringparam has added a new field tcp-data-split for enabling and disabling header split. These three patches will utilize that ethtool flag to support header split in GVE driver. Jeroen de Borst (3): gve: Add header split device option gve: Add header split data path gve: Add header split ethtool stats drivers/net/ethernet/google/gve/gve.h | 27 +++++++- drivers/net/ethernet/google/gve/gve_adminq.c | 50 ++++++++++++-- drivers/net/ethernet/google/gve/gve_adminq.h | 20 +++++- drivers/net/ethernet/google/gve/gve_ethtool.c | 62 +++++++++++++---- drivers/net/ethernet/google/gve/gve_main.c | 65 ++++++++++++++++-- drivers/net/ethernet/google/gve/gve_rx_dqo.c | 68 ++++++++++++++++++- drivers/net/ethernet/google/gve/gve_utils.c | 17 +++-- drivers/net/ethernet/google/gve/gve_utils.h | 3 + 8 files changed, 277 insertions(+), 35 deletions(-) Tested-by: Mina Almasry