add util function for multiple pkt in reasons

Reviewer: @andi-bigswitch