multipath-tcp / mptcp_net-next

Development version of the Upstream MultiPath TCP Linux kernel 🐧
https://mptcp.dev
Other
292 stars 42 forks source link

Rename `mptcp_is_tcpsk()` helper #432

Closed matttbe closed 11 months ago

matttbe commented 1 year ago

A suggestion from Eric Dumazet:

The fact that mptcp_is_tcpsk() was able to write over sock->ops was a bit strange to me.

mptcp_is_tcpsk() should answer a question, with a read-only argument.

I suggest changing the name of the helper to better reflect what it is doing.

Source

mptcp_is_tcpsk() is currently used in one place but the name hides the fact sock->ops can be renamed.