DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] regexdev: enable to be compiled on Windows
@ 2025-05-09 21:52 Andre Muezerie
  2025-05-16  8:01 ` David Marchand
  0 siblings, 1 reply; 4+ messages in thread
From: Andre Muezerie @ 2025-05-09 21:52 UTC (permalink / raw)
  To: Ori Kam; +Cc: dev, Andre Muezerie

Now that mbuf is compiling on Windows, this library can be enabled as
well.

Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
 lib/regexdev/meson.build | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/regexdev/meson.build b/lib/regexdev/meson.build
index 426e764ece..7e12d8cd6d 100644
--- a/lib/regexdev/meson.build
+++ b/lib/regexdev/meson.build
@@ -1,12 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright 2020 Mellanox Technologies, Ltd
 
-if is_windows
-    build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
 sources = files('rte_regexdev.c')
 headers = files('rte_regexdev.h', 'rte_regexdev_driver.h')
 indirect_headers += files('rte_regexdev_core.h')
-- 
2.49.0.vfs.0.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regexdev: enable to be compiled on Windows
  2025-05-09 21:52 [PATCH] regexdev: enable to be compiled on Windows Andre Muezerie
@ 2025-05-16  8:01 ` David Marchand
  2025-05-16 12:50   ` Andre Muezerie
  0 siblings, 1 reply; 4+ messages in thread
From: David Marchand @ 2025-05-16  8:01 UTC (permalink / raw)
  To: Andre Muezerie; +Cc: Ori Kam, dev, Thomas Monjalon

On Fri, May 9, 2025 at 11:52 PM Andre Muezerie
<andremue@linux.microsoft.com> wrote:
>
> Now that mbuf is compiling on Windows, this library can be enabled as
> well.
>
> Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>

The test-regex app can probably be compiled too.
Yet.. why do you want to enable this library on Windows?

Support for this device class is defacto deprecated, as no vendor is
providing recent hardware implementing this feature.

Also note that it was not built with clang on Windows so far (I did
not double check this assertion, I just based on the fact this patch
removes a is_windows, and not a is_ms_compiler).


-- 
David Marchand


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regexdev: enable to be compiled on Windows
  2025-05-16  8:01 ` David Marchand
@ 2025-05-16 12:50   ` Andre Muezerie
  2025-05-16 14:44     ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Andre Muezerie @ 2025-05-16 12:50 UTC (permalink / raw)
  To: David Marchand; +Cc: Ori Kam, dev, Thomas Monjalon

On Fri, May 16, 2025 at 10:01:42AM +0200, David Marchand wrote:
> On Fri, May 9, 2025 at 11:52 PM Andre Muezerie
> <andremue@linux.microsoft.com> wrote:
> >
> > Now that mbuf is compiling on Windows, this library can be enabled as
> > well.
> >
> > Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
> 
> The test-regex app can probably be compiled too.
> Yet.. why do you want to enable this library on Windows?
> 
> Support for this device class is defacto deprecated, as no vendor is
> providing recent hardware implementing this feature.
> 
> Also note that it was not built with clang on Windows so far (I did
> not double check this assertion, I just based on the fact this patch
> removes a is_windows, and not a is_ms_compiler).
> 
> 

I was not aware this code was deprecated. You're right that it was not
being compiled with Clang. This was just part of the effort to increase
code compatibility on Windows.

I see no harm in enabling it, but at the same time, there's no clear
benefit either. I'll let you decide what to do with this.

> -- 
> David Marchand

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regexdev: enable to be compiled on Windows
  2025-05-16 12:50   ` Andre Muezerie
@ 2025-05-16 14:44     ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2025-05-16 14:44 UTC (permalink / raw)
  To: David Marchand, Andre Muezerie; +Cc: dev, Ori Kam

16/05/2025 14:50, Andre Muezerie:
> On Fri, May 16, 2025 at 10:01:42AM +0200, David Marchand wrote:
> > On Fri, May 9, 2025 at 11:52 PM Andre Muezerie
> > <andremue@linux.microsoft.com> wrote:
> > >
> > > Now that mbuf is compiling on Windows, this library can be enabled as
> > > well.
> > >
> > > Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
> > 
> > The test-regex app can probably be compiled too.
> > Yet.. why do you want to enable this library on Windows?
> > 
> > Support for this device class is defacto deprecated, as no vendor is
> > providing recent hardware implementing this feature.
> > 
> > Also note that it was not built with clang on Windows so far (I did
> > not double check this assertion, I just based on the fact this patch
> > removes a is_windows, and not a is_ms_compiler).
> > 
> > 
> 
> I was not aware this code was deprecated. You're right that it was not
> being compiled with Clang. This was just part of the effort to increase
> code compatibility on Windows.
> 
> I see no harm in enabling it, but at the same time, there's no clear
> benefit either. I'll let you decide what to do with this.

The benefit is to remove special handling for Windows,
so I vote for enabling it.
There was no regex development recently but we never know
how it could be used in future :)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-16 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-09 21:52 [PATCH] regexdev: enable to be compiled on Windows Andre Muezerie
2025-05-16  8:01 ` David Marchand
2025-05-16 12:50   ` Andre Muezerie
2025-05-16 14:44     ` Thomas Monjalon

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).