net/thunderx: add compile-time checks