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

Description
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?