* [PATCH net-next] sctp: Remove commented out code @ 2025-02-11 10:20 Thorsten Blum 2025-02-11 10:49 ` Mateusz Polchlopek 2025-02-13 16:50 ` patchwork-bot+netdevbpf 0 siblings, 2 replies; 9+ messages in thread From: Thorsten Blum @ 2025-02-11 10:20 UTC (permalink / raw) To: Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman Cc: Thorsten Blum, linux-sctp, netdev, linux-kernel Remove commented out code. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> --- include/linux/sctp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 836a7e200f39..812011d8b67e 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -222,7 +222,6 @@ struct sctp_datahdr { __be16 stream; __be16 ssn; __u32 ppid; - /* __u8 payload[]; */ }; struct sctp_data_chunk { -- 2.48.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-11 10:20 [PATCH net-next] sctp: Remove commented out code Thorsten Blum @ 2025-02-11 10:49 ` Mateusz Polchlopek 2025-02-11 11:17 ` Thorsten Blum 2025-02-13 16:50 ` patchwork-bot+netdevbpf 1 sibling, 1 reply; 9+ messages in thread From: Mateusz Polchlopek @ 2025-02-11 10:49 UTC (permalink / raw) To: Thorsten Blum, Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman Cc: linux-sctp, netdev, linux-kernel On 2/11/2025 11:20 AM, Thorsten Blum wrote: > Remove commented out code. > > Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> > --- > include/linux/sctp.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/linux/sctp.h b/include/linux/sctp.h > index 836a7e200f39..812011d8b67e 100644 > --- a/include/linux/sctp.h > +++ b/include/linux/sctp.h > @@ -222,7 +222,6 @@ struct sctp_datahdr { > __be16 stream; > __be16 ssn; > __u32 ppid; > - /* __u8 payload[]; */ > }; > > struct sctp_data_chunk { Hi Thorsten I don't think we want to remove that piece of code, please refer to the discussion under the link: https://lore.kernel.org/netdev/cover.1681917361.git.lucien.xin@gmail.com/ Thanks ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-11 10:49 ` Mateusz Polchlopek @ 2025-02-11 11:17 ` Thorsten Blum 2025-02-11 11:33 ` Mateusz Polchlopek 0 siblings, 1 reply; 9+ messages in thread From: Thorsten Blum @ 2025-02-11 11:17 UTC (permalink / raw) To: Mateusz Polchlopek Cc: Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, linux-sctp, netdev, linux-kernel On 11. Feb 2025, at 11:49, Mateusz Polchlopek wrote: > On 2/11/2025 11:20 AM, Thorsten Blum wrote: >> Remove commented out code. >> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> >> --- >> include/linux/sctp.h | 1 - >> 1 file changed, 1 deletion(-) >> diff --git a/include/linux/sctp.h b/include/linux/sctp.h >> index 836a7e200f39..812011d8b67e 100644 >> --- a/include/linux/sctp.h >> +++ b/include/linux/sctp.h >> @@ -222,7 +222,6 @@ struct sctp_datahdr { >> __be16 stream; >> __be16 ssn; >> __u32 ppid; >> - /* __u8 payload[]; */ >> }; >> struct sctp_data_chunk { > > Hi Thorsten > > I don't think we want to remove that piece of code, please refer > to the discussion under the link: > > https://lore.kernel.org/netdev/cover.1681917361.git.lucien.xin@gmail.com/ Hm, the commit message (dbda0fba7a14) says payload was deleted because "the member is not even used anywhere," but it was just commented out. In the cover letter it then explains that "deleted" actually means "commented out." However, I can't follow the reasoning in the cover letter either: "Note that instead of completely deleting it, we just leave it as a comment in the struct, signalling to the reader that we do expect such variable parameters over there, as Marcelo suggested." Where do I find Marcelo's suggestion and the "variable parameters over there?" Thanks, Thorsten ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-11 11:17 ` Thorsten Blum @ 2025-02-11 11:33 ` Mateusz Polchlopek 2025-02-13 3:57 ` Jakub Kicinski 0 siblings, 1 reply; 9+ messages in thread From: Mateusz Polchlopek @ 2025-02-11 11:33 UTC (permalink / raw) To: Thorsten Blum Cc: Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman, linux-sctp, netdev, linux-kernel On 2/11/2025 12:17 PM, Thorsten Blum wrote: > On 11. Feb 2025, at 11:49, Mateusz Polchlopek wrote: >> On 2/11/2025 11:20 AM, Thorsten Blum wrote: >>> Remove commented out code. >>> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> >>> --- >>> include/linux/sctp.h | 1 - >>> 1 file changed, 1 deletion(-) >>> diff --git a/include/linux/sctp.h b/include/linux/sctp.h >>> index 836a7e200f39..812011d8b67e 100644 >>> --- a/include/linux/sctp.h >>> +++ b/include/linux/sctp.h >>> @@ -222,7 +222,6 @@ struct sctp_datahdr { >>> __be16 stream; >>> __be16 ssn; >>> __u32 ppid; >>> - /* __u8 payload[]; */ >>> }; >>> struct sctp_data_chunk { >> >> Hi Thorsten >> >> I don't think we want to remove that piece of code, please refer >> to the discussion under the link: >> >> https://lore.kernel.org/netdev/cover.1681917361.git.lucien.xin@gmail.com/ > > Hm, the commit message (dbda0fba7a14) says payload was deleted because > "the member is not even used anywhere," but it was just commented out. > In the cover letter it then explains that "deleted" actually means > "commented out." > > However, I can't follow the reasoning in the cover letter either: > > "Note that instead of completely deleting it, we just leave it as a > comment in the struct, signalling to the reader that we do expect > such variable parameters over there, as Marcelo suggested." > > Where do I find Marcelo's suggestion and the "variable parameters over > there?" > That's good question, I can't find the Marcelo suggestion that author mention. It's hard to find without links to previous series or discussion :/ I guess it should be also commented by maintainers, I see that in the Xin's thread Kuba also commented change with commenting out instead of removing code. Let's wait > Thanks, > Thorsten ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-11 11:33 ` Mateusz Polchlopek @ 2025-02-13 3:57 ` Jakub Kicinski 2025-02-13 10:49 ` Thorsten Blum 0 siblings, 1 reply; 9+ messages in thread From: Jakub Kicinski @ 2025-02-13 3:57 UTC (permalink / raw) To: Mateusz Polchlopek Cc: Thorsten Blum, Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman, linux-sctp, netdev, linux-kernel On Tue, 11 Feb 2025 12:33:57 +0100 Mateusz Polchlopek wrote: > >> I don't think we want to remove that piece of code, please refer > >> to the discussion under the link: > >> > >> https://lore.kernel.org/netdev/cover.1681917361.git.lucien.xin@gmail.com/ > > > > Hm, the commit message (dbda0fba7a14) says payload was deleted because > > "the member is not even used anywhere," but it was just commented out. > > In the cover letter it then explains that "deleted" actually means > > "commented out." > > > > However, I can't follow the reasoning in the cover letter either: > > > > "Note that instead of completely deleting it, we just leave it as a > > comment in the struct, signalling to the reader that we do expect > > such variable parameters over there, as Marcelo suggested." > > > > Where do I find Marcelo's suggestion and the "variable parameters over > > there?" > > > > That's good question, I can't find the Marcelo suggestion that author > mention. It's hard to find without links to previous series or > discussion :/ > > I guess it should be also commented by maintainers, I see that in the > Xin's thread Kuba also commented change with commenting out instead > of removing code. Let's wait In the linked thread the point was to document what struct will be next in memory. Here we'd be leaving an array of u8s which isn't very informative. I see there's precedent in this file, but I vote we just delete the line. -- pw-bot: cr ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-13 3:57 ` Jakub Kicinski @ 2025-02-13 10:49 ` Thorsten Blum 2025-02-13 12:05 ` Mateusz Polchlopek 2025-02-13 15:29 ` Jakub Kicinski 0 siblings, 2 replies; 9+ messages in thread From: Thorsten Blum @ 2025-02-13 10:49 UTC (permalink / raw) To: Jakub Kicinski Cc: Mateusz Polchlopek, Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman, linux-sctp, netdev, linux-kernel Hi Jakub, > On 13. Feb 2025, at 04:57, Jakub Kicinski wrote: > On Tue, 11 Feb 2025 12:33:57 +0100 Mateusz Polchlopek wrote: >>>> I don't think we want to remove that piece of code, please refer >>>> to the discussion under the link: >>>> >>>> https://lore.kernel.org/netdev/cover.1681917361.git.lucien.xin@gmail.com/ >>> >>> Hm, the commit message (dbda0fba7a14) says payload was deleted because >>> "the member is not even used anywhere," but it was just commented out. >>> In the cover letter it then explains that "deleted" actually means >>> "commented out." >>> >>> However, I can't follow the reasoning in the cover letter either: >>> >>> "Note that instead of completely deleting it, we just leave it as a >>> comment in the struct, signalling to the reader that we do expect >>> such variable parameters over there, as Marcelo suggested." >>> >>> Where do I find Marcelo's suggestion and the "variable parameters over >>> there?" >>> >> >> That's good question, I can't find the Marcelo suggestion that author >> mention. It's hard to find without links to previous series or >> discussion :/ >> >> I guess it should be also commented by maintainers, I see that in the >> Xin's thread Kuba also commented change with commenting out instead >> of removing code. Let's wait > > In the linked thread the point was to document what struct will be next > in memory. Here we'd be leaving an array of u8s which isn't very > informative. I see there's precedent in this file, but I vote we just > delete the line. This patch deletes the line and I'm wondering why the "cr"? Were you referring to this patch maybe? https://lore.kernel.org/r/20250114215439.916207-3-thorsten.blum@linux.dev/ Should both payload fields just be deleted since they're not used? Thanks, Thorsten ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-13 10:49 ` Thorsten Blum @ 2025-02-13 12:05 ` Mateusz Polchlopek 2025-02-13 15:29 ` Jakub Kicinski 1 sibling, 0 replies; 9+ messages in thread From: Mateusz Polchlopek @ 2025-02-13 12:05 UTC (permalink / raw) To: Thorsten Blum, Jakub Kicinski Cc: Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman, linux-sctp, netdev, linux-kernel On 2/13/2025 11:49 AM, Thorsten Blum wrote: > Hi Jakub, > >> On 13. Feb 2025, at 04:57, Jakub Kicinski wrote: >> On Tue, 11 Feb 2025 12:33:57 +0100 Mateusz Polchlopek wrote: >>>>> I don't think we want to remove that piece of code, please refer >>>>> to the discussion under the link: >>>>> >>>>> https://lore.kernel.org/netdev/cover.1681917361.git.lucien.xin@gmail.com/ >>>> >>>> Hm, the commit message (dbda0fba7a14) says payload was deleted because >>>> "the member is not even used anywhere," but it was just commented out. >>>> In the cover letter it then explains that "deleted" actually means >>>> "commented out." >>>> >>>> However, I can't follow the reasoning in the cover letter either: >>>> >>>> "Note that instead of completely deleting it, we just leave it as a >>>> comment in the struct, signalling to the reader that we do expect >>>> such variable parameters over there, as Marcelo suggested." >>>> >>>> Where do I find Marcelo's suggestion and the "variable parameters over >>>> there?" >>>> >>> >>> That's good question, I can't find the Marcelo suggestion that author >>> mention. It's hard to find without links to previous series or >>> discussion :/ >>> >>> I guess it should be also commented by maintainers, I see that in the >>> Xin's thread Kuba also commented change with commenting out instead >>> of removing code. Let's wait >> >> In the linked thread the point was to document what struct will be next >> in memory. Here we'd be leaving an array of u8s which isn't very >> informative. I see there's precedent in this file, but I vote we just >> delete the line. > > This patch deletes the line and I'm wondering why the "cr"? > > Were you referring to this patch maybe? > https://lore.kernel.org/r/20250114215439.916207-3-thorsten.blum@linux.dev/ > > Should both payload fields just be deleted since they're not used? > > Thanks, > Thorsten Going further I see that in this file there are more fields in structures that are just commented out, like: struct sctp_fwdtsn_hdr { __be32 new_cum_tsn; /* struct sctp_fwdtsn_skip skip[]; */ }; or struct sctp_sackhdr { __be32 cum_tsn_ack; __be32 a_rwnd; __be16 num_gap_ack_blocks; __be16 num_dup_tsns; /* union sctp_sack_variable variable[]; */ }; Does it make sense to do the cleanup of the whole header in this patch ? Thanks ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-13 10:49 ` Thorsten Blum 2025-02-13 12:05 ` Mateusz Polchlopek @ 2025-02-13 15:29 ` Jakub Kicinski 1 sibling, 0 replies; 9+ messages in thread From: Jakub Kicinski @ 2025-02-13 15:29 UTC (permalink / raw) To: Thorsten Blum Cc: Mateusz Polchlopek, Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman, linux-sctp, netdev, linux-kernel On Thu, 13 Feb 2025 11:49:45 +0100 Thorsten Blum wrote: > > In the linked thread the point was to document what struct will be next > > in memory. Here we'd be leaving an array of u8s which isn't very > > informative. I see there's precedent in this file, but I vote we just > > delete the line. > > This patch deletes the line and I'm wondering why the "cr"? My bad! Misread the diff. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next] sctp: Remove commented out code 2025-02-11 10:20 [PATCH net-next] sctp: Remove commented out code Thorsten Blum 2025-02-11 10:49 ` Mateusz Polchlopek @ 2025-02-13 16:50 ` patchwork-bot+netdevbpf 1 sibling, 0 replies; 9+ messages in thread From: patchwork-bot+netdevbpf @ 2025-02-13 16:50 UTC (permalink / raw) To: Thorsten Blum Cc: marcelo.leitner, lucien.xin, davem, edumazet, kuba, pabeni, horms, linux-sctp, netdev, linux-kernel Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Tue, 11 Feb 2025 11:20:56 +0100 you wrote: > Remove commented out code. > > Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> > --- > include/linux/sctp.h | 1 - > 1 file changed, 1 deletion(-) Here is the summary with links: - [net-next] sctp: Remove commented out code https://git.kernel.org/netdev/net-next/c/34dba73b231f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-02-13 16:50 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-02-11 10:20 [PATCH net-next] sctp: Remove commented out code Thorsten Blum 2025-02-11 10:49 ` Mateusz Polchlopek 2025-02-11 11:17 ` Thorsten Blum 2025-02-11 11:33 ` Mateusz Polchlopek 2025-02-13 3:57 ` Jakub Kicinski 2025-02-13 10:49 ` Thorsten Blum 2025-02-13 12:05 ` Mateusz Polchlopek 2025-02-13 15:29 ` Jakub Kicinski 2025-02-13 16:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).