Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp351709rdd; Tue, 9 Jan 2024 06:17:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1jVWsS1IxwLgHjtw9Sui4Xlmgm78dnvME+lPv0Ob67UCybEGtvU74qvdEdxfvHJgsQ2q6 X-Received: by 2002:a50:9e61:0:b0:553:69e5:906a with SMTP id z88-20020a509e61000000b0055369e5906amr3145445ede.6.1704809822798; Tue, 09 Jan 2024 06:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704809822; cv=none; d=google.com; s=arc-20160816; b=Q8jPMjGeBcIuKqAt2ZpwmXkzmYfbszEmlPd885Xu+Yt5YQ1tj4wEUV5nKytt8u2cI9 2cFV6e2rNy0hkSZwsYydaFFT2RMH1Rm99RQy8D73XmMRuaKFnXsB9kgDTwnKnlQqJFpu JMGaIIsbieDqUBuEPI/oCKB0XMj7pnZ7iIOImHWJWHLxinvifEupE9GFIIgJ390rLYtZ rKBc2OXmefP+0dKEG3XG6xOAsoKq0DGXscCoxN3hg/AyPEs8kP/IHDJJ31JnTSc/6JXH uNs599JfIa2rOvfgYdHdTJeWElWcroAEvflcx9VikO4Y9IHwDOnv5B7ZtmCGKqTzXmc1 /mAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:content-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :references:in-reply-to:from:organization:dkim-signature; bh=pc67pwl7wENc1gC3qwSzTrlvrs0jHKvpx7F4yFEiJj0=; fh=ZtXT4EhCVz8l2Yug/IC9dCH+r5a0SWpJM+worp9SNdU=; b=n1/lGK1a6dbwONPXNfFP8y2aI6o8HYheNUY0Z5Zeq5dD3IzAngnM/NDKmgVVepx0KX D1C/HKFRa8+MdMSZSe09RTjwSM9rTo60rUNlazFNCBoBPLK2tfJEAVDtTumsnoAC02wo FuRVZ+47uFPdMXa6ACZgGjr0lUMs/Rc8NiHyQBb1rjUuo7/inAuMSNSE+kNEAqAnmzWK Gbv5AtlSccXEZK+xq+ec9ybwSRQipeekJqD/KECgqM3/RCcT1t+MVYF7QKfOJPT74GV3 vbKWNVkUcnSA2amaR05HyKdZ3EM4w4UC9HXh1V6An6HY4Lldf/nQIXHt2Dz11Rl6tqGF U6zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="JZWgI/5Q"; spf=pass (google.com: domain of linux-kernel+bounces-20969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 d2-20020a50f682000000b00555403d450fsi780783edn.29.2024.01.09.06.17.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 06:17:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20969-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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="JZWgI/5Q"; spf=pass (google.com: domain of linux-kernel+bounces-20969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 81E221F24DB9 for ; Tue, 9 Jan 2024 14:17:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 942BB39FD3; Tue, 9 Jan 2024 14:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JZWgI/5Q" 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 8704B38FB0 for ; Tue, 9 Jan 2024 14:16:25 +0000 (UTC) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704809784; 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=pc67pwl7wENc1gC3qwSzTrlvrs0jHKvpx7F4yFEiJj0=; b=JZWgI/5Q0Znzp1iD4XdYFGkvhfDpliDKFkqqSZQcfYgGNZpelOo2Cw5s1pWmDqeqTdPLs7 jSbxAWh6i6J8zFaKa93+Sx1o4DQZz38X3ynFjfPMLbuSurvMZVktvastIRmla1xm9aG5FQ ZsQSWlroI1NHUeshkSkzRKwmkHIORh0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-349-Chjqz7tbOTeT6Fr81qJYog-1; Tue, 09 Jan 2024 09:16:20 -0500 X-MC-Unique: Chjqz7tbOTeT6Fr81qJYog-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8413010259BB; Tue, 9 Jan 2024 14:16:19 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5EDA6492BE6; Tue, 9 Jan 2024 14:16:18 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <1570781.1704797483@warthog.procyon.org.uk> To: Marc Dionne Cc: dhowells@redhat.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] rxrpc: Fix use of Don't Fragment flag 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="us-ascii" Content-ID: <1577953.1704809777.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Jan 2024 14:16:17 +0000 Message-ID: <1577954.1704809777@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 Marc Dionne wrote: > > +{ > > + if (set) > > + ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDIS= C_DONT); > > + else > > + ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDIS= C_DO); > > +} > = > Shouldn't those be reversed - don't fragment should be IP_PMTUDISC_DO? Meh. Yes. > Also, and this is probably already an issue with current code, I don't > think this is effective if the socket is V6, which it will be in most > cases. Hmmm... I guess I should tweak IPV6_MTU_DISCOVER also. David