From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 4CA0B1AD9C7 for ; Wed, 14 Aug 2024 10:19:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723630786; cv=none; b=GduTVarTVn05saHUhLgyorsC5zW4BPRk5KOWoRZkEOtX+avH20W3e5TAL8xc7fmJM8GSrdgXEjxH713gleyWpI8wO7xDRVM7/ecoFtnfhs5IBcsKcwHWAFc1gORYehWZBsF+Dz4zvkP+AabfPZc8DwpJnZPLCuwd4IjpE+gvDE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723630786; c=relaxed/simple; bh=FZz7rN1iHlj31dNr3oGwlQhhvu2v+gYIwV29BtDPZZs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=DW4PAD6+FjnpAKNRlTjabyRTRmXsbZ2URTDAjw3zY+N8GjHE4ow8iLE3hD/DGMJ6OPOTgudlusbXQ8pVjzUTELQdfjr9BuaTTjJXfNxzSyN/qtUrGesWgQi0PIiV+fohWk3Z0JppEVUj9CbnKJ8IX5uI5iB43pmBH7WkKj14H2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cD6jR9ZJ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cD6jR9ZJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1723630784; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ujjRrY9jmmA5hNr8cZIFcVaa3uq5D7CrEXBCcjjRwbY=; b=cD6jR9ZJTju5AGr8dlYOIGO8A3TytJOAhgTxBxkc6NGoeduhzoytp5bZwJmpIGeL/sOY2L OA1irGSmK6mYr84jO3i0DLtVXezQ30JIW3GOTiVY19Q8dXpzcdypPeaNg0a8NNPUHXa2L2 xcGtHXR/hZWwEM581jZ/mnJIJNJehL4= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-439-s_0Qjf-mMSS2oyJGWV7_qA-1; Wed, 14 Aug 2024 06:19:42 -0400 X-MC-Unique: s_0Qjf-mMSS2oyJGWV7_qA-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-42807a05413so46625005e9.2 for ; Wed, 14 Aug 2024 03:19:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723630782; x=1724235582; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ujjRrY9jmmA5hNr8cZIFcVaa3uq5D7CrEXBCcjjRwbY=; b=oessbHQBQCnjgWMmweSWUlVP63dDOEtaG9WZc5MF9dAokYzun4Ordkb8laQsL/rcsk xcDFykG2fyYVVDhiofYQFY0/h0dHZu2agJW4QMsDKIK+To1wVLgLcyeEFCo+cAYBT2F3 UZtervjd4TIfjxJMZGd/p4qtabhuk+cGhu3xlGzB74g83pOwDkd1hgOOebQLoQqm3wTV GnvW47p+KMGXkHxZUqv7kkKFydprtIWK4i9eB/Xl6+Y6oxI/iRzcRtBr57ZIDEPQq791 RFRe4Ll/5JNy8qreEUWBCOFaWSQk33hNk/iOImVOpBq0nkQAH/MQkfbuaZlWfq8Ujdad 51wg== X-Forwarded-Encrypted: i=1; AJvYcCVPVV5b0fNllLQLb0Ricsea9pgDdmO94XQRO2e7d0aRH62QrQjKsdbIIRfKH3/D1dHqQWqQP6qBfrnFZMCvQANv7di0vuDqdN6ycq5Z1YMD X-Gm-Message-State: AOJu0Yw55hdEshIIBWBndzxSF/hhck6IVL1duS+e/TlfF2R+yDpt8KmR hnb4gtfyzkYxv4o9NoaIBqyScNuIyrvVvOc/ionhb62lv2o8tT3fTvcNihHmwUn242wAg2Sjeld iu7216LtoQ53zQsDHzfwop0JZ5yUMxh4i4Yvah20iy4FejaVbQID6ClQzaM9fhXFc+w== X-Received: by 2002:adf:e644:0:b0:368:6b28:5911 with SMTP id ffacd0b85a97d-37177760a1bmr1546850f8f.2.1723630781708; Wed, 14 Aug 2024 03:19:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFC502yJUKbD+xbFsQIpm66zQN+FX64YOh1xGOvttuPua4rFxKJdQmq1Q8KvP6ui+G9bsDLMg== X-Received: by 2002:adf:e644:0:b0:368:6b28:5911 with SMTP id ffacd0b85a97d-37177760a1bmr1546827f8f.2.1723630781208; Wed, 14 Aug 2024 03:19:41 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c938280sm12483923f8f.36.2024.08.14.03.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 03:19:40 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id D04C714ADF7D; Wed, 14 Aug 2024 12:19:39 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Hangbin Liu , netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Ignat Korchagin , linux-kselftest@vger.kernel.org, bpf@vger.kernel.org, Hangbin Liu , Yi Chen Subject: Re: [PATCH net 2/2] selftests: udpgro: no need to load xdp for gro In-Reply-To: <20240814075758.163065-3-liuhangbin@gmail.com> References: <20240814075758.163065-1-liuhangbin@gmail.com> <20240814075758.163065-3-liuhangbin@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 14 Aug 2024 12:19:39 +0200 Message-ID: <87v803csp0.fsf@toke.dk> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hangbin Liu writes: > After commit d7db7775ea2e ("net: veth: do not manipulate GRO when using > XDP"), there is no need to load XDP program to enable GRO. On the other > hand, the current test is failed due to loading the XDP program. e.g. > > # selftests: net: udpgro.sh > # ipv4 > # no GRO ok > # no GRO chk cmsg ok > # GRO ./udpgso_bench_rx: recv: bad = packet len, got 1472, expected 14720 > # > # failed > > [...] > > # bad GRO lookup ok > # multiple GRO socks ./udpgso_bench_rx: recv: bad = packet len, got 1452, expected 14520 > # > # ./udpgso_bench_rx: recv: bad packet len, got 1452, expected 14520 > # > # failed > ok 1 selftests: net: udpgro.sh > > After fix, all the test passed. > > # ./udpgro.sh > ipv4 > no GRO ok > [...] > multiple GRO socks ok > > Fixes: d7db7775ea2e ("net: veth: do not manipulate GRO when using XDP") > Reported-by: Yi Chen > Closes: https://issues.redhat.com/browse/RHEL-53858 > Signed-off-by: Hangbin Liu Reviewed-by: Toke H=C3=B8iland-J=C3=B8rgensen