[PATCH v5 03/19] flow: Record the pifs for each side of each flow