Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1935063lql; Wed, 13 Mar 2024 12:18:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4fIE/fc2HAC0DOA7ddDKV5FJkGWuvC2xauOMUtLlKppek2gMxjpNPc1BvHqe01aY0sqadZrdaMaBnjG6XmxExI3Q9hw+5Ey1KToBS9A== X-Google-Smtp-Source: AGHT+IE6Se6LkNSpWGMjd6vhg68Fw1innwdmWDg6TLb28cyM6U3Fy6VJaNgDQvfoZFFekQPKlzWL X-Received: by 2002:a05:6102:c8a:b0:473:412e:ee5e with SMTP id f10-20020a0561020c8a00b00473412eee5emr1016020vst.7.1710357498930; Wed, 13 Mar 2024 12:18:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710357498; cv=pass; d=google.com; s=arc-20160816; b=NyqDOKgY1E6qxPc7sXByG8y5IBg6sa/cqtMxcl/XXKWz8dluvtUSYOS1RcvmR6a/fl +gUoOIUNutM1a0xak8ks+XC5HxCtBkDGGXhT4ZzQeLrazqd7kXeYTGT1BzYB0N1Ob/RG pArqtOacK/n+33H2yBYpuhMC+kzTOBgmHtBZJwxoMtjOBK47s+bPkgq3QanxdTUOVeiM VHnmOPceLDcWZcnqKvRg0acbLeEpzCg9seJFDVnz+gJOIEBLikbwjLgSnKeMseex7kJZ GnW06E+G5zCqRxjS1EXe15DI2A0HHWipU5mb1csvvdCOgOEpNL6I+SPPr1iMcgcy1RCb pCMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jtKSuJKdtcLBTd7f2vhOFkshAKDaa9ZF2n14qrkdYbU=; fh=h71n4EbChLDXPUiCUxPUICJapt0WFTY0FaBpmUOOX/E=; b=soAnFvSgm2n2Nk+eorKJNZYiobF3eKE0LDtnY/nmjj6zcXAV9u2quRTyOdF0iOR3kJ rQ++32R7/kbqEB4sa19rPywTm+OkKD1VtNZUeX7CF/2cw9Nv7U/s0WX98yxZhzKkP5Rw fbKycvwLLL8Ut3lT3TrL/i8SSJGx5tnm0yjCjplCQlSE8ZmOz+CoQHPPyTK4cU01ClMw 91gu6h92g4/lNW4nY79tUvkUhs34TxT2PuojMWqirxYZeQKP0jgvkOMSiqzhnKrD+n6e b0t4x5c2XsmXCTO2TJfr1GhRrSJ7gtqn5YoVn2TrOcEqnfsM1gI1kGAQncvW67rglHru 0FWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=H5IddwHx; arc=pass (i=1 spf=pass spfdomain=cloudflare.com dkim=pass dkdomain=cloudflare.com dmarc=pass fromdomain=cloudflare.com); spf=pass (google.com: domain of linux-kernel+bounces-102371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id on6-20020a056214448600b0068fd7a853b3si10404660qvb.501.2024.03.13.12.18.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:18:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=H5IddwHx; arc=pass (i=1 spf=pass spfdomain=cloudflare.com dkim=pass dkdomain=cloudflare.com dmarc=pass fromdomain=cloudflare.com); spf=pass (google.com: domain of linux-kernel+bounces-102371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 974331C28D83 for ; Wed, 13 Mar 2024 19:12:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53FA8626A7; Wed, 13 Mar 2024 18:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="H5IddwHx" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 939706215D for ; Wed, 13 Mar 2024 18:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710355091; cv=none; b=bD9H1v6PuNGpd03dL0W/1u4jdntcr3+5qZFp9Q6QssRGM+HievFBRFo5e0OZ5VqewYwhT/GQ+nRnhJLR4TJxrPMaY1YH2r3y4hCaWX0rgyckt4AyGBfNusxMhgr6fWf36D0zl2QoiRlwYpEwaIW1hMZbSmxpdZKKUGCvd31eDkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710355091; c=relaxed/simple; bh=a4XzuwxgLVEIQQVkSkFv3KrXqBF34rv5jYAcRXbpdEg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=ejlD6Xo+ZHBLnVJBtN0gLgE2mpU9/O3HHGRRNxFhtBj4nYBup0tqBx4xBzOOT5yBlF24MtRrtp1WLHdJUxNoLFatGH8I+8slgD7RGDC5V8n8J1u9TgL6i6iicYia/aIaciHM2t1FkanS1tVXbe4Sqn5QxSe+uAAWy9MFF54F45Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=H5IddwHx; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-33e8f906f3dso69431f8f.3 for ; Wed, 13 Mar 2024 11:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1710355088; x=1710959888; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jtKSuJKdtcLBTd7f2vhOFkshAKDaa9ZF2n14qrkdYbU=; b=H5IddwHxN2O4OVFXMwRLWjAmcoZdmhS/rI69CMC9fxOsdM5dqZmIsQ+2TARBZKyC9m fGyPY4rIn0n4ZAumrJODDV4CE8X0zeCSZ3D7q+3sNLoDGIusggDbOxEdvgmnDHnsch5o nvg7rOXdi1HE1dIT/lITTSPI9qUhCa6i1540jaQjck7nfe2MNj1Aawbn6aPt4A59AdgR pOkULSmY55F7+lsM80JZbecr/3DPHlj1uclu8Lz/rKZH0OVb75sPBb60FRY6QgvhXQki zDH+U48mzx7TqBSLQJJFbf7iaE92EZuV+A9OrxmgD30KvF4f6+9r6eCVN858/amSxbFN Y1Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710355088; x=1710959888; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jtKSuJKdtcLBTd7f2vhOFkshAKDaa9ZF2n14qrkdYbU=; b=tZOVt+PGB/c0X+0neTTVMwdzktZg7FSb0aQDnxXjhRCY7TfwC2RooXJSS4YXc+p5KW N2FXLLQOXS7t9ClxZgaTF+BlGoR1zRVUPsQv/Mv91AC+mvSzZwNCCYYelAkU0nDtm//w THSz96sn4O9tYswI1BiFo4nWpkP6vn6tvGJsGSION0kr/xU6K2BLV2J1CB2/Xafx6hFV 314w97Q5YVFZU4jFITEBMkdmpQ7i/hshJnl6z1PX5SM3AF+m3iM75VY4UBytpRo2cxrv T0BWBza6DDYH1VXI4yvz+nS6SghGgs7yl+D37lexSo661UAYIJtPC1sbxiyERMxMtthM Leqg== X-Forwarded-Encrypted: i=1; AJvYcCU+PHYmlPHttmsPagNlU0pr0L9TnJvZdek1VRhSXZgk72duDU4CXm4xC5CAES8ycBJUQxuqfK9IOaMwSl7u4wq+a3u6z1YwYyqjDby1 X-Gm-Message-State: AOJu0Yzo5kJg/+0nOj5hneCz2urdzg7KT3WDizcppFe5R3TkuxD+Sbuw Qveh9X1oMG1zF3vIID49I4tzsPqfgRRdg+19rFU94wVU5MJcTTi7LPYy/tVSYVI= X-Received: by 2002:a05:6000:43:b0:33e:78ca:e039 with SMTP id k3-20020a056000004300b0033e78cae039mr2183049wrx.59.1710355087772; Wed, 13 Mar 2024 11:38:07 -0700 (PDT) Received: from localhost.localdomain ([104.28.192.85]) by smtp.gmail.com with ESMTPSA id az19-20020adfe193000000b0033e9d9f891csm7089876wrb.58.2024.03.13.11.38.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 13 Mar 2024 11:38:07 -0700 (PDT) From: Ignat Korchagin To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-team@cloudflare.com, Ignat Korchagin Subject: [PATCH net v3 0/2] net: veth: ability to toggle GRO and XDP independently Date: Wed, 13 Mar 2024 19:37:57 +0100 Message-Id: <20240313183759.87923-1-ignat@cloudflare.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is rather confusing that GRO is automatically enabled, when an XDP program is attached to a veth interface. Moreover, it is not possible to disable GRO on a veth, if an XDP program is attached (which might be desirable in some use cases). Make GRO and XDP independent for a veth interface. udpgro_fwd Changes in v3: * adjust udpgro_fwd selftest to explicitly enable GRO on veth interfaces, where it expects GRO to happen Changes in v2: * add Fixes reference to commit description * fix commit message spelling Ignat Korchagin (2): net: veth: do not manipulate GRO when using XDP selftests: net: veth: test the ability to independently manipulate GRO and XDP drivers/net/veth.c | 18 ----------------- tools/testing/selftests/net/udpgro_fwd.sh | 4 ++++ tools/testing/selftests/net/veth.sh | 24 ++++++++++++++++++++--- 3 files changed, 25 insertions(+), 21 deletions(-) -- 2.39.2