Skip to content
Snippets Groups Projects
Commit e6b3646a authored by Andreas Gnau's avatar Andreas Gnau :speech_balloon:
Browse files

include: uapi: Add hack for BCM multi-path TCP


Broadcom's kernel conditionally adds additional enum constants
TCP_RST_WAIT and BPF_TCP_RST_WAIT. TCP_* and BPF_TCP_* enums have to be
in sync which is checked by a static assert during build. The enums are
guarded by an ifdef depending on a config option in Broadcom's kernel.

Broadcom option BUILD_MPTCP, which controls the corresponding kernel
option, is unconditionally enabled for all profiles, so we can enable
the ifdef unconditionally as a workaround.

Signed-off-by: default avatarAndreas Gnau <andreas.gnau@iopsys.eu>
parent 3f936849
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,11 @@ enum {
TCP_LISTEN,
TCP_CLOSING, /* Now a valid state */
TCP_NEW_SYN_RECV,
#if defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP)
/* HACK: Enable this unconditionally (it is enabled in BCM's build system).
* There are static asserts failing if the enums do not match (see comment above).
*/
/* #if defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP) */
#if 1
TCP_RST_WAIT,
#endif
......
......@@ -2674,7 +2674,11 @@ enum {
BPF_TCP_LISTEN,
BPF_TCP_CLOSING, /* Now a valid state */
BPF_TCP_NEW_SYN_RECV,
#if ((defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP)) || !defined(CONFIG_BCM_IN_KERNEL))
/* HACK: Enable this unconditionally (it is enabled in BCM's build system).
* There are static asserts failing if the enums do not match (see comment above).
*/
/* #if ((defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP)) || !defined(CONFIG_BCM_IN_KERNEL)) */
#if 1
BPF_TCP_RST_WAIT,
#endif
......
......@@ -2672,7 +2672,11 @@ enum {
BPF_TCP_LISTEN,
BPF_TCP_CLOSING, /* Now a valid state */
BPF_TCP_NEW_SYN_RECV,
#if ((defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP)) || !defined(CONFIG_BCM_IN_KERNEL))
/* HACK: Enable this unconditionally (it is enabled in BCM's build system).
* There are static asserts failing if the enums do not match (see comment above).
*/
/* #if ((defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP)) || !defined(CONFIG_BCM_IN_KERNEL)) */
#if 1
BPF_TCP_RST_WAIT,
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment