From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
To: "Szőke Benjamin" <egyszeregy@freemail.hu>,
"Jozsef Kadlecsik" <kadlec@netfilter.org>
Cc: <fw@strlen.de>, <pablo@netfilter.org>, <lorenzo@kernel.org>,
<daniel@iogearbox.net>, <leitao@debian.org>, <amiculas@cisco.com>,
<davem@davemloft.net>, <dsahern@kernel.org>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
<horms@kernel.org>, <netfilter-devel@vger.kernel.org>,
<coreteam@netfilter.org>, <linux-kernel@vger.kernel.org>,
<netdev@vger.kernel.org>
Subject: Re: [PATCH 09/10] netfilter: Add message pragma for deprecated xt_*.h, ipt_*.h.
Date: Thu, 9 Jan 2025 11:22:49 +0100 [thread overview]
Message-ID: <33fe32ae-44aa-433d-a77f-bb75e8957842@intel.com> (raw)
In-Reply-To: <8d25e36a-b598-4b18-896c-d0dcb7233800@freemail.hu>
On 1/8/25 22:38, Szőke Benjamin wrote:
> 2025. 01. 08. 21:51 keltezéssel, Jozsef Kadlecsik írta:
>> On Tue, 7 Jan 2025, Szőke Benjamin wrote:
>>
>>> 2025. 01. 07. 20:39 keltezéssel, Jozsef Kadlecsik írta:
>>>> On Tue, 7 Jan 2025, egyszeregy@freemail.hu wrote:
>>>>
>>>>> From: Benjamin Szőke <egyszeregy@freemail.hu>
>>>>>
>>>>> Display information about deprecated xt_*.h, ipt_*.h files
>>>>> at compile time. Recommended to use header files with
>>>>> lowercase name format in the future.
>>>>
>>>> I still don't know whether adding the pragmas to notify about header
>>>> file deprecation is a good idea.
>>>
>>> Do you have any other ideas how can you display this information to the
>>> users/customers, that it is time to stop using the uppercase header
>>> files then they shall to use its merged lowercase named files instead in
>>> their userspace SW?
>>
>> Honestly, I don't know. What about Jan's clever idea of having the
>> clashing filenames with identical content, i.e.
>>
>> ipt_ttl.h:
>> #ifndef _IPT_TTL_H
>> #define _IPT_TTL_H
>> #include <linux/netfilter_ipv4/ipt_ttl_common.h>
>> #endif _IPT_TTL_H
>>
>> ipt_TTL.h:
>> #ifndef _IPT_TTL_H
>> #define _IPT_TTL_H
>> #include <linux/netfilter_ipv4/ipt_ttl_common.h>
>> #endif _IPT_TTL_H
>>
>> Would cloning such a repo on a case-insensitive filesystem produce errors
>> or would work just fine?
>>
>
> What is this suggestion, in ipt_ttl.h and ipt_TTL.h really? How it can
> solve and provide in compile or run-time information for the users about
> the recomendded changes? (It seems to me that you are completely
> misunderstanding the purpose of this message at this time.)
likely the uppercased names will be with us forever
>
>
> Listen carefully, this are the points/scope.
>
> This patchset provide the following:
> - 1. Merge upper and lowercase named haeder files in UAPI netfilter.
> - 2. Merge upper and lowercase named source files in UAPI netfilter.
> (uppercase named files can be removed)
> - 3. Keep the backward compatibility, there is no any breaking API
> changes yet.
> - 4. Keep uppercase header files as just a "wrapper" for include same
> lowercase header files.
> - 5. Provide a clear message for the UAPI's users that in the future
> should have to use the lowercase named files instead.
6. lot's of drama too.
Please remember to add a proper versioning to your next revision, also
target to net-next.
>
> Later, for example when Linux kernel goes to 7.0 version, uppercase
> header files can be removed. Breaking API possibble when version of a SW
> is incremented in major field. Before, in first patchset, UAPI users
that would be correct for "semantic versioning", not used by the kernel
> were informed about what is better to use. So it can be a clear and slow
> roadmap to solve case-insensitive filesystem issue on this files.
>
>
>> Best regards,
>> Jozsef
>
>
next prev parent reply other threads:[~2025-01-09 10:23 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-07 2:41 [PATCH 00/10] netfilter: x_tables: Merge xt_*.h and ipt_*.h files which has same name egyszeregy
2025-01-07 2:41 ` [PATCH 01/10] netfilter: x_tables: Merge xt_DSCP.h to xt_dscp.h egyszeregy
2025-01-07 19:23 ` Jozsef Kadlecsik
2025-01-07 21:38 ` Szőke Benjamin
2025-01-08 20:11 ` Jozsef Kadlecsik
2025-01-08 21:08 ` Szőke Benjamin
2025-01-09 14:59 ` Jozsef Kadlecsik
2025-01-07 2:41 ` [PATCH 02/10] netfilter: x_tables: Merge xt_RATEEST.h to xt_rateest.h egyszeregy
2025-01-07 2:41 ` [PATCH 03/10] netfilter: x_tables: Merge xt_TCPMSS.h to xt_tcpmss.h egyszeregy
2025-01-07 2:41 ` [PATCH 04/10] netfilter: x_tables: Use consistent header guard egyszeregy
2025-01-07 2:41 ` [PATCH 05/10] netfilter: iptables: Merge ipt_ECN.h to ipt_ecn.h egyszeregy
2025-01-07 19:26 ` Jozsef Kadlecsik
2025-01-07 21:48 ` Szőke Benjamin
2025-01-08 20:15 ` Jozsef Kadlecsik
2025-01-07 2:41 ` [PATCH 06/10] netfilter: iptables: Merge ipt_TTL.h to ipt_ttl.h egyszeregy
2025-01-07 2:41 ` [PATCH 07/10] netfilter: iptables: Merge ip6t_HL.h to ip6t_hl.h egyszeregy
2025-01-07 2:41 ` [PATCH 08/10] netfilter: Adjust code style of xt_*.h, ipt_*.h files egyszeregy
2025-01-07 19:39 ` Jozsef Kadlecsik
2025-01-07 21:59 ` Szőke Benjamin
2025-01-08 20:20 ` Jozsef Kadlecsik
2025-01-08 21:18 ` Szőke Benjamin
2025-01-07 2:41 ` [PATCH 09/10] netfilter: Add message pragma for deprecated xt_*.h, ipt_*.h egyszeregy
2025-01-07 19:39 ` Jozsef Kadlecsik
2025-01-07 22:06 ` Szőke Benjamin
2025-01-07 22:38 ` Jan Engelhardt
2025-01-07 23:24 ` Szőke Benjamin
2025-01-08 20:51 ` Jozsef Kadlecsik
2025-01-08 21:38 ` Szőke Benjamin
2025-01-09 10:22 ` Przemek Kitszel [this message]
2025-01-07 2:41 ` [PATCH 10/10] netfilter: Use merged xt_*.h, ipt_*.h headers egyszeregy
2025-01-07 19:14 ` [PATCH 00/10] netfilter: x_tables: Merge xt_*.h and ipt_*.h files which has same name Jozsef Kadlecsik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33fe32ae-44aa-433d-a77f-bb75e8957842@intel.com \
--to=przemyslaw.kitszel@intel.com \
--cc=amiculas@cisco.com \
--cc=coreteam@netfilter.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=egyszeregy@freemail.hu \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=kadlec@netfilter.org \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox