Skip to content

TEST-GPTP-COMPAT-001: Verify Compatibility with External gPTP Daemons #240

Description

@zarfld

Test Description

Verify that the AVB filter driver coexists with external gPTP daemons (OpenAvnu, Linuxptp) without conflicts, enabling flexible deployment scenarios.

Test Objectives

  • Validate driver operation with OpenAvnu gPTP daemon
  • Verify driver operation with Linuxptp gptp daemon (if Windows port available)
  • Confirm no PTP packet interference or timestamp corruption
  • Test driver's hardware timestamp sharing with daemon

Test Scenarios

Scenario 1: OpenAvnu Integration

  • OpenAvnu daemon managing PTP/gPTP synchronization
  • Driver providing hardware timestamp access
  • Verify clock sync maintained

Scenario 2: Driver-Only Mode

  • Driver operates standalone (no external daemon)
  • Internal PTP state machine handles sync (if applicable)

Scenario 3: Coexistence

  • Driver and daemon both accessing hardware timestamps
  • No resource conflicts or corruption

Preconditions

  • AVB filter driver installed
  • OpenAvnu gPTP daemon installed and configured
  • Intel I210/I225/I226 NIC with shared timestamp FIFO
  • PTP grandmaster on network

Test Steps

  1. Baseline: Driver only, verify PTP timestamp capture works
  2. Install OpenAvnu: Deploy OpenAvnu gPTP daemon
  3. Start Daemon: Launch gPTP daemon, verify it acquires NIC access
  4. Driver Access: Driver attempts to read timestamps
  5. Verify Sharing: Both driver and daemon receive timestamps without conflict
  6. Clock Sync: Monitor gPTP clock offset, verify sync maintained (<±1µs)
  7. Stop Daemon: Gracefully stop gPTP daemon
  8. Driver Resumes: Verify driver regains full timestamp access
  9. Restart Cycle: Repeat start/stop 10 times, verify no resource leaks

Expected Results

  • Driver and OpenAvnu daemon coexist without resource conflicts
  • Timestamp FIFO sharing works correctly (no lost timestamps)
  • gPTP clock sync maintained with daemon active
  • No memory leaks or handle leaks after daemon start/stop cycles

Acceptance Criteria

  • ✅ Driver operates correctly with OpenAvnu gPTP daemon running
  • ✅ PTP clock sync maintained <±1µs with daemon active
  • ✅ No timestamp corruption or loss with shared FIFO access
  • ✅ 10 daemon start/stop cycles complete without errors
  • ✅ Resource usage stable (no leaks)

Test Type

  • Type: Functional, Integration, Compatibility
  • Priority: P1 (High - Interoperability requirement)
  • Automation: Automated with daemon start/stop scripts

Traceability

Traces to: #119 (REQ-F-GPTP-COMPAT-001: Compatibility with External gPTP Daemons)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions