ANLAB-KAIST / NBA

Network Balancing Act: A High-performance packet processing framework for heterogeneous processors
MIT License
55 stars 13 forks source link

No endianness translation for GPU IPv4 lookup kernel #9

Closed cylindroid closed 8 years ago

cylindroid commented 9 years ago

The CPU version of the code transforms IPv4 dest addr to LE using ntohl before lookup. GPU kernel should (AFAIK, NVIDIA GPU kernels operate in LE as well), but does not, at the moment. It is trivial, but crucial to the correctness of IPlookup kernel. A simple 4-byte reordering would do the trick.