From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 019F63F54AD for ; Thu, 7 May 2026 15:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778166876; cv=none; b=h92J6C9G2ZbxdyLfGeJKfawGgD+RajTdKOCp/GYHX7iqvf9PGbHMwzSgjXpXz8hu54eZCPe5wSWkcC7MfHeDvy0tNgm2aHL/icELKo5+8jtzGqHEUbFhgNXl7+c0BRGYZFzI8v22RUzXEyjUUDcizd4KK07HVeGMYPZ3uhNRsCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778166876; c=relaxed/simple; bh=GHlsdUXYw3KpEdOKltzLJfsfCFEm6ZB6eRem9WLVwyI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hgYVeQNKgPyzuFVYWSHVuhN3BxY8ShNRxCT4EcQDUXJiK03iegr+kYiyksXCYn6cFDQEjFgUe5eYye+RMPTZStdlMEHHK2z+7+e28vbDMRlRi0qiGWZiXRHZGmwlL8gI0qn80ERFhjdTgeBkyo6qz3UDIm3RhCOnoGf7pyr/0QA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q/8K4M52; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q/8K4M52" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 355DDC2BCB8; Thu, 7 May 2026 15:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778166875; bh=GHlsdUXYw3KpEdOKltzLJfsfCFEm6ZB6eRem9WLVwyI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q/8K4M52TkFcu66z5d5dddREseinyqAdqbiWKoBUE3z+k+vSiu42iAZrP6ocsmj1Q WYkxaWX1wWlRQ5FR/QqsmM2xcV3BkWkKJXLVSOoNBXt0S44V6ZO2fboqBGV1lKhH2I z+OU+2nnyNxTTdJ3e9UBqHAgnrvuQOl4oYXsruC9COtUwXnuN0jEVlE+ENTx/LvWv5 148mUJFYWom4HKXH9puMgjAdbGo4DkB6Itf17hH4TWuaivPhdD1G7eVyt24VNn+LZC ejNqR0pU+ZsE1f+SVcr4Akw4FKiE6G4PMZJNTwpSSIdPaUgekEPAM1Qszvm6V7DZYx 2gjehRVVnA1dw== Message-ID: <7e283b95-a96b-4e20-b062-6d43a8164395@kernel.org> Date: Thu, 7 May 2026 09:14:33 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/3] net: constify sk_skb_reason_drop() sock parameter Content-Language: en-US To: Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Neal Cardwell Cc: Simon Horman , Ido Schimmel , Kuniyuki Iwashima , netdev@vger.kernel.org, eric.dumazet@gmail.com References: <20260507084305.2506115-1-edumazet@google.com> <20260507084305.2506115-2-edumazet@google.com> From: David Ahern In-Reply-To: <20260507084305.2506115-2-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/7/26 2:43 AM, Eric Dumazet wrote: > sk_skb_reason_drop() does not change sock parameter, make it > const so that we can call it from TCP stack without a cast > on a (const) listener socket. > > Signed-off-by: Eric Dumazet > --- > include/linux/skbuff.h | 3 ++- > include/trace/events/skb.h | 4 ++-- > net/core/skbuff.c | 5 +++-- > 3 files changed, 7 insertions(+), 5 deletions(-) > > Reviewed-by: David Ahern