net/sfc: generalise flow parsing