update the encode_port_stats in the comment, going to encode traffic_info function