Skip to content

Bring up transmission timestamp of packets to P4 #1281

@nhnghia

Description

@nhnghia

I'm trying to bring transmission timestamp of a packet up to P4 program.

I see that I can override bmi_interface_send to get the tx timestamp. It is not a big deal as I can access to its raw socket descriptor, then by setting SO_TIMESTAMPING option to the socket I can get tx timestamp.

I was wondering whether there exists a simple way to bring this tx timestamp up to the P4 program (this timestamp will be used by the next iteration, e.g., when the P4 program processes the next packet).

Thanks in advance for any suggestion!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions