From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 ADCD53081A4 for ; Tue, 6 Jan 2026 11:32:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767699164; cv=none; b=Aq16L9tBnASyu3XOL9JjWcZUo+7mZeWckIrTzt7Tkb9TFeMietUKaygggFYHFeV/NzdK+IeSFbs+HabSw6EheeKpZt1HK/NzaDNKO70Sy3KfL5O9j9vjUz+NnwbWlaitYYouUfKeDVwol6C1Wys5cA+Wu/K/V+SMp42lVb7Rg6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767699164; c=relaxed/simple; bh=ROnipINx8zOAdAYzFa4zNtkeHxHNss/1pAqZSsUCb38=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject:Cc: References:In-Reply-To; b=a6ogvVcSvEDBUqHzIWYBcvYcsdAFi8wSsvgeH4TiPgSiKrC3Qudtnmbw9htIcaOlYBdewPIBIi6Y8T4YCdM36U2TmZn65B3NGee+y/gtO46MHUWYhGKskNfmQmCEbrbEMCb7KuW8KyNV9IqtTtPb02Dvjpj6o3oTW7QD+FBvDlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DylaO6ER; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DylaO6ER" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-7f89d0b37f0so1240823b3a.0 for ; Tue, 06 Jan 2026 03:32:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767699162; x=1768303962; darn=vger.kernel.org; h=in-reply-to:references:cc:subject:from:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b+3KjH60Dm9rvQ852XVz2fhdFkdzy05hIdDbcSAi/v8=; b=DylaO6ERohEj/Ey/HIj9TPfA+MMg6dDny92Y/618DJDjSjCcIdTt1dSIcaceN29CUa B8vlunwG73d4YbCLEmnrZdPSeUA4ArwlUQoyfeMeO694bVBlyQFAezI37qYhWU3JYzMc iQTI6HLoACapmHQIQogp1MvMKLJUpOLxFlhg4WqOpnNsiL688jT712C2hYaz9fxg+9KY dCLaR5g33fZjYabfIHpcoUa/N/AdetzQQZL7hRpKkt/w6afryRMZFaJuw+UjW+s78YJh UuWzZqUoCzRTKWNUbjtpIXAUJYinu8kLuy5Oupe+gVc9hujLk87DP0LKp4M+3dJtt57k DwPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767699162; x=1768303962; h=in-reply-to:references:cc:subject:from:to:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=b+3KjH60Dm9rvQ852XVz2fhdFkdzy05hIdDbcSAi/v8=; b=Vs8FtXsq419t9Y/Bv8q9CUd/H66jOWoyeE+TFc0e+AE+YvngbYUAnV5AVEwE6jLcVD DVB4yT478be6fMezcqYtonQbqF1pU129nmD1gAVLO/lb7LJ3E2zazf1AzIeAx2KJRcaU zEDRZLg7JajaQa0zMQgjA0zehxIbFO284RlXjQLISd80nC5CPVPTcli/XMPN8l0yUoJV n0SS2Tdof2W0l97wpjbjhJXp25Q6mJ6uyco8+EUHCBvcLbodxAKzWW3IWm/At6y0XrtF 8rYgk9OXkAlnxG4q8msvZUcmP4ri0GhTZ7hhozo1uAfhnEHIoz3B7P6fCC5pq7ClYqA0 NkzQ== X-Forwarded-Encrypted: i=1; AJvYcCUu7ysULSlJ34XBe4xuNM+O9QuQ9WFlzfPW/D6/fSZZwoTEO4zZyQMySBVkhtB1EnwqsAqbfZQcmpmLXiM=@vger.kernel.org X-Gm-Message-State: AOJu0YwwIjaO8sgtOaT6d+eK+Yi4L4Yei8ZYCnitmP8ER2CLghu7ko/f BZikG8y2O9ZeAy59pPTW6AZpPT7oxWFNWIFPk18QMwOXAzFTZ1Jkn84Z X-Gm-Gg: AY/fxX6sPCg5LXKQxx1hEdg9CN/tYwr5sRz6tTakhczwmGa/3bETflJtHQxb2ZCqjVI z4SeOZRFoK83rtAnlcPOn7IHqMWzUuvO12+HpWkrxMxwYde/3KsHjPeMcd/4KIi+UIY1a7fG4G4 8n0l3vFQYDRN+w5qncuRetH01Whku1i4vtI+UEOZ2R142d3M2VyW2uhblEz4nb+BJ/SPX+AJRED mf+vPRjcyPPZ4HfCXHGio6WxSrnEfzYJwZT3NJX3AiO45XM/pyNAU4frB6O43mPkDlN6d95diYa FgClVWgRqgPdmI6ZKYrhWCFA4ggT2gDsB8mHqa46lGYQo6pxO54XlBzHd0TM2qqr/9HImxJDQVg UvaGVknoBh03YF85+pLr1ps9rlWQMeXZHAUNhVfBGaRjJkAIw/j+5P/NtgngTgV2U/7PrlAmoHS 9D1TpKIvvq7Vufois= X-Google-Smtp-Source: AGHT+IHx+0kZCP/PYQGYanijnE9StrBuMNGk7/pymjAj7yNoOv+s4Hn79S0p3064GaUlLq3azFoM+Q== X-Received: by 2002:a05:6a20:6a03:b0:34f:66ca:60aa with SMTP id adf61e73a8af0-38982a56f71mr2272659637.6.1767699161780; Tue, 06 Jan 2026 03:32:41 -0800 (PST) Received: from localhost ([61.82.116.93]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c4cb5352268sm2180162a12.0.2026.01.06.03.32.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jan 2026 03:32:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 06 Jan 2026 20:32:37 +0900 Message-Id: To: "Jakub Kicinski" , "Yeounsu Moon" From: "Yeounsu Moon" Subject: Re: [PATCH net v2] net: dlink: mask rx_coalesce/rx_timeout before writing RxDMAIntCtrl Cc: "Andrew Lunn" , "David S. Miller" , "Eric Dumazet" , "Paolo Abeni" , , X-Mailer: aerc 0.21.0 References: <20260103092904.44462-2-yyyynoom@gmail.com> <20260105165854.104e6c1d@kernel.org> In-Reply-To: <20260105165854.104e6c1d@kernel.org> On Tue Jan 6, 2026 at 9:58 AM KST, Jakub Kicinski wrote: > Realistically IDK if this is worth it. > > Paolo suggested in discussion on v1 that error checking could introduce > a regression. If we take that concern seriously we can't change the > (buggy) behavior at all. > > That said the overflow is on frames, for values > 64k and the ring is > 256 so IDK how high values could possibly work here in the first place. > > Given this driver is using module params to configure coalescing I'd > just leave this mess be. If you add ethtool configuration for > coalescing make sure to correctly bound-check it. Thanks for the feedback. Understood. I'll drop this patch rather changing the current behavior. If I add ethtool coalesce support for this driver, I'll make sure to valid and properly bound-check the values before writing the register. Yeounsu Moon