yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
164 stars 17 forks source link

Local and dpdk port id's mixup in worker #203

Open TheRandomCharacter opened 1 month ago

TheRandomCharacter commented 1 month ago

Discussed in https://github.com/yanet-platform/yanet/discussions/201

Originally posted by **zV3KT0R** May 30, 2024 uint8_t physicalPort_flags[CONFIG_YADECAP_PORTS_SIZE]; but metadata->fromPortId can be greater than CONFIG_YADECAP_PORTS_SIZE https://github.com/yanet-platform/yanet/blob/87748d7bf95f44ba21725197b0ef18e196310741/dataplane/worker.cpp#L1063

dpdk port id is erroneously used as index instead of local port id. dataplane::base::permanently.PortMapper