[PATCH v3 02/11] tcp: extract buffer management from tcp_send_flag()