OSDN Git Service

mptcp: clean-up MPJ option writing
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jan 2022 00:20:21 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 11:27:07 +0000 (11:27 +0000)
commit71b077e48377222c5fdae9ddcc58fe03cdff6932
tree6d33778788f40d2132e6aa7d3b902e3c79486480
parentf7d6a237d7422809d458d754016de2844017cb4d
mptcp: clean-up MPJ option writing

Check for all MPJ variant at once, this reduces the number
of conditionals traversed on average and will simplify the
next patch.

No functional change intended.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c