Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Could this compiler support XDP_REDIRECT #110

@kwjjyn

Description

@kwjjyn

The XDP_TX return code only support to send the packets to the same NIC card . And XDP_REDIRECT can send the received packets to another NIC . However , this compiler seems not to implement XDP_REDIRECT ? Is there any other way to implement forwarding function from one nic like eth1 to another NIC like eth2 using P4C-XDP compiler?

I notice that the xdp_model.p4 has defined xdp_output:

struct xdp_output {
    xdp_action output_action;
    bit<32> output_port;  // output port for packet
}

As for the output_port , is it used to appoint the different NIC id?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions