Skip to contentSkip to conversation

examples/ptp_tap_relay_sw: fix build inclusion

PATCH Superseded [email protected] 4 participants 6 messages Sep 2 – Nov 12 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/ptp_tap_relay_sw: fix build inclusion

From: Jerin Jacob <[email protected]>

The ptp_tap_relay_sw example was not building because examples/meson.build was not updated to wire up this directory.

Fixes bec00deaa8fb ("examples/ptp_tap_relay_sw: add PTP transparent clock relay")
---
 examples/meson.build | 1 +
 1 file changed, 1 insertion(+)
examples/meson.build +1 -0
index 25d9c88457..ab82cf5fbd 100644
@@ -43,6 +43,7 @@ all_examples = [
         'packet_ordering',
         'pipeline',
         'ptpclient',
+        'ptp_tap_relay_sw',
         'qos_meter',
         'qos_sched',
         'rxtx_callbacks',
Signature · 1 line
2.54.0
#1 lore raw
Quoted 5 lines · On Wed, 2 Sept 2026 at 10:25, <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

The ptp_tap_relay_sw example was not building because examples/meson.build was not updated to wire up this directory.

Ouch, the whole example looks like dead code.
I wonder how it was tested by the author...
The series that introduced it has no trace of touching examples/meson.build in the v6, v7 and v8 iterations :-(.

Quoted 5 lines
Fixes bec00deaa8fb ("examples/ptp_tap_relay_sw: add PTP transparent clock relay")

The fix lgtm.
For the record, it is the only dead example at this point in time in DPDK.

Signature · 1 line
David Marchand
#2 lore raw
Quoted 14 lines · David Marchand
Quoted 5 lines · On Wed, 2 Sept 2026 at 10:25, <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

The ptp_tap_relay_sw example was not building because examples/meson.build was not updated to wire up this directory.

Ouch, the whole example looks like dead code.
I wonder how it was tested by the author...
The series that introduced it has no trace of touching examples/meson.build in the v6, v7 and v8 iterations :-(.

Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Fixes bec00deaa8fb ("examples/ptp_tap_relay_sw: add PTP transparent clock relay")

The fix lgtm.
For the record, it is the only dead example at this point in time in DPDK.

It's not dead code, since it was buildable before when it was named using "examples=" parameter. The list of all examples is only used when "-Dexamples=all" is passed, so we are just missing this examples from automated build testing using the "all" param.

Acked-by on v1 1/1
#3 lore raw
In reply to [email protected]
Quoted 18 lines · On Wed, Sep 02, 2026 at 01:55:23PM +0530, [email protected] wrote:

From: Jerin Jacob <[email protected]>

The ptp_tap_relay_sw example was not building because examples/meson.build was not updated to wire up this directory.

Fixes bec00deaa8fb ("examples/ptp_tap_relay_sw: add PTP transparent clock relay")
---
 examples/meson.build | 1 +
 1 file changed, 1 insertion(+)
examples/meson.build +0 -0
index 25d9c88457..ab82cf5fbd 100644

examples/meson.build all_examples = [ · line 49

Quoted 7 lines
examples/meson.build +1 -0
@@ -43,6 +43,7 @@ all_examples = [
         'packet_ordering',
         'pipeline',
         'ptpclient',
+        'ptp_tap_relay_sw',
         'qos_meter',
         'qos_sched',
         'rxtx_callbacks',

Minor nit, the ptp_tap_relay_sw line should be before ptpclient rather than after, as word breaks or underscores count before "a" alphabetically, rather than being skipped.

Otherwise:

Quoted 3 lines
Signature · 1 line
2.54.0
#4 lore raw

PATCH v2 1/1 examples/ptp_tap_relay_sw: fix build inclusion

In reply to [email protected]

From: Jerin Jacob <[email protected]>

The ptp_tap_relay_sw example was not building because examples/meson.build was not updated to wire up this directory.

Fixes bec00deaa8fb ("examples/ptp_tap_relay_sw: add PTP transparent clock relay")

---
v2:
- fix the order in meson file(Bruce)

 examples/meson.build | 1 +
 1 file changed, 1 insertion(+)
examples/meson.build +1 -0
index 25d9c88457..7d2b7716c1 100644
@@ -42,6 +42,7 @@ all_examples = [
         'ntb',
         'packet_ordering',
         'pipeline',
+        'ptp_tap_relay_sw',
         'ptpclient',
         'qos_meter',
         'qos_sched',
Signature · 1 line
2.54.0