--- zzzz-none-000/linux-4.1.52/include/uapi/linux/tcp.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/uapi/linux/tcp.h 2022-03-02 11:37:13.000000000 +0000 @@ -54,7 +54,11 @@ __be16 window; __sum16 check; __be16 urg_ptr; +#if defined(CONFIG_MIPS_BCM963XX) && defined(CONFIG_BCM_KF_UNALIGNED_EXCEPTION) +} LINUX_NET_PACKED; +#else }; +#endif /* * The union cast uses a gcc extension to avoid aliasing problems @@ -64,7 +68,11 @@ union tcp_word_hdr { struct tcphdr hdr; __be32 words[5]; -}; +#if defined(CONFIG_MIPS_BCM963XX) && defined(CONFIG_BCM_KF_UNALIGNED_EXCEPTION) +} LINUX_NET_PACKED; +#else +}; +#endif #define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3]) @@ -113,6 +121,13 @@ #define TCP_TIMESTAMP 24 #define TCP_NOTSENT_LOWAT 25 /* limit number of unsent bytes in write queue */ #define TCP_CC_INFO 26 /* Get Congestion Control (optional) info */ +#if defined(CONFIG_BCM_MPTCP) && defined(CONFIG_BCM_KF_MPTCP) +#define MPTCP_ENABLED 42 +#endif + +#if defined(CONFIG_BCM_KF_SPEEDYGET) && defined(CONFIG_BCM_SPEEDYGET) +#define TCP_NOCOPY 27 /* Don't copy buffer to user space */ +#endif struct tcp_repair_opt { __u32 opt_code;