I'm new to t4p4s. After I installed related dependencies and t4p4s, I tried to run a simple port-forwarding program using t4p4s via the following steps.
1.Bind two ethernet ports to DPDK drivers (version 17.11, Ubuntu 16.04).
2.Add one line to examples.cfg:
switch @nonic
3.Run t4p4s with my program switch.p4 (written in P4 16 with V1Model):
./t4p4s.sh MY_PATH_TO_P4/switch.p4
After that, I received the following messages:
[COMPILE P4-16] /home/xxx/t4p4s/switch.p4 @std
[COMPILE SWITCH]
CC util.o
CC dataplane.o
CC tables.o
CC parser.o
CC controlplane.o
CC actions.o
CC dpdk_nicon.o
CC dpdk_model_v1model.o
CC dpdkx_smem.o
CC stateful_memory.o
CC ctrl_plane_backend.o
CC fifo.o
CC handlers.o
CC main.o
CC messages.o
CC sock_helpers.o
CC threadpool.o
CC dpdk_lib.o
CC dpdk_tables.o
CC ternary_naive.o
LD switch
/home/xxx/t4p4s/src/hardware_dep/dpdk/main.c:84:13: warning: type of ‘send_single_packet’ does not match original declaration [-Wlto-type-mismatch]
extern void send_single_packet(struct lcore_data* lcdata, packet_descriptor_t* pd, packet* pkt, int egress_port, int ingress_port);
^
/home/xxx/t4p4s/src/hardware_dep/dpdk/dpdk_nicon.c:142:6: note: type mismatch in parameter 6
void send_single_packet(struct lcore_data* lcdata, packet_descriptor_t* pd, packet* pkt, int egress_port, int ingress_port, bool send_clone)
^
/home/xxx/t4p4s/src/hardware_dep/dpdk/dpdk_nicon.c:142:6: note: type ‘_Bool’ should match type ‘void’
/home/xxx/t4p4s/src/hardware_dep/dpdk/dpdk_nicon.c:142:6: note: ‘send_single_packet’ was previously declared here
INSTALL-APP switch
INSTALL-MAP switch.map
[NO CONTROLLER]
[RUN SWITCH] ./build/switch@std/build/switch
T4P4S switch running /home/xxx/t4p4s/switch.p4 exited with error code 255 (Switch execution error)
- Runtime options were: --log-level 3 -c 0x3 -n 4 -- --config ""
How can I resolve this problem? Any suggestions will be appreciated.
Hi all.
I'm new to t4p4s. After I installed related dependencies and t4p4s, I tried to run a simple port-forwarding program using t4p4s via the following steps.
1.Bind two ethernet ports to DPDK drivers (version 17.11, Ubuntu 16.04).
2.Add one line to
examples.cfg
:3.Run
t4p4s
with my programswitch.p4
(written in P4 16 with V1Model):After that, I received the following messages:
How can I resolve this problem? Any suggestions will be appreciated.