Batch packet processing