yanet-platform / yanet

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

Remove unnecessary cast to char* in YADECAP_METADATA #185

Closed ol-imorozko closed 1 month ago

ol-imorozko commented 2 months ago

Apart from it being unnecessary, it could even result in some bad behavior, as GCC always assumes aligned pointer accesses and cast from char * to dataplane::metadata * increases required alignment from 1 to 4