[ovs-dev] [PATCH v3 10/28] datapath: compat: Update udp_sock_create

Jesse Gross jesse at kernel.org
Tue Jul 5 23:54:11 UTC 2016


On Fri, Jul 1, 2016 at 5:59 PM, Pravin B Shelar <pshelar at ovn.org> wrote:
> diff --git a/datapath/linux/compat/include/linux/udp.h b/datapath/linux/compat/include/linux/udp.h
> new file mode 100644
> index 0000000..65cb77c
> --- /dev/null
> +++ b/datapath/linux/compat/include/linux/udp.h
[...]
> +static inline void udp_set_no_check6_rx(struct sock *sk, bool val)
> +{
> +#ifdef HAVE_SK_NO_CHECK_TX
> +       sk->sk_no_check_rx = val;
> +#endif
> +}
> +#endif

I don't know that this is sufficient to have consistent behavior
across old kernels. I think the only real way to solve the problem is
to have a check in the receive path for the UDP checksum not zero.



More information about the dev mailing list