[PATCH 5/6] flow: Record the pifs for each side of each flow