diff options
author | Paolo Abeni <pabeni@redhat.com> | 2023-10-23 23:44:36 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-25 22:23:34 +0300 |
commit | f1f26512a9bf18f7a4c0d59df113a49f39d7d4b6 (patch) | |
tree | e2ee1c4834e8eb1ee66224c9120d80d69add58a1 /net/mptcp/protocol.h | |
parent | bf0e96108fb6707613dd055aff5e98b02b99bb14 (diff) | |
download | linux-f1f26512a9bf18f7a4c0d59df113a49f39d7d4b6.tar.xz |
mptcp: use plain bool instead of custom binary enum
The 'data_avail' subflow field is already used as plain boolean,
drop the custom binary enum type and switch to bool.
No functional changed intended.
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231023-send-net-next-20231023-2-v1-3-9dc60939d371@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/protocol.h')
-rw-r--r-- | net/mptcp/protocol.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index 40228b55e3e9..6df62a8a73bc 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -434,11 +434,6 @@ mptcp_subflow_rsk(const struct request_sock *rsk) return (struct mptcp_subflow_request_sock *)rsk; } -enum mptcp_data_avail { - MPTCP_SUBFLOW_NODATA, - MPTCP_SUBFLOW_DATA_AVAIL, -}; - struct mptcp_delegated_action { struct napi_struct napi; struct list_head head; @@ -494,7 +489,7 @@ struct mptcp_subflow_context { valid_csum_seen : 1, /* at least one csum validated */ is_mptfo : 1, /* subflow is doing TFO */ __unused : 9; - enum mptcp_data_avail data_avail; + bool data_avail; bool scheduled; u32 remote_nonce; u64 thmac; |