nfp: flower: add helper functions for tunnel classification