HomeFreeBSD

tcp: Make error handling in tcp_usr_send() more consistent

Description

tcp: Make error handling in tcp_usr_send() more consistent

  • Free the input mbuf in a single place instead of in every error path.
  • Handle PRUS_NOTREADY consistently.
  • Flush the socket's send buffer if an implicit connect fails. At that point the mbuf has already been enqueued but we don't want to keep it in the send buffer.

Reviewed by: gallatin, tuexen
Discussed with: jhb
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 7d2608a5d24ec3534dad7f24191f12a8181ea206)

Details

Provenance
markjAuthored on May 21 2021, 9:44 PM
Parents
rG14bc67f1e788: x86: initialize initial FPU state earlier
Branches
Unknown
Tags
Unknown