net/octeontx2: add flow utility functions