multipath-tcp / mptcp

⚠️⚠️⚠️ Deprecated 🚫 Out-of-tree Linux Kernel implementation of MultiPath TCP. 👉 Use https://github.com/multipath-tcp/mptcp_net-next repo instead ⚠️⚠️⚠️
https://github.com/multipath-tcp/mptcp_net-next
Other
888 stars 335 forks source link

mptcp_skb_entail(): add unlikely #390

Open matttbe opened 4 years ago

matttbe commented 4 years ago

Some conditions should rarely happen in mptcp_skb_entail(), e.g. mptcp_is_data_fin(), mpcb->send_mptcpv1_mpcapable, etc.

Better to tell that to the compiler by adding likely() / unlikely() macros not to take the more costly branch most of the time in this important function.