mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Backport IPv4 reassembly from the upstream commit caaecdd3d3f8 ("inet:
frags: remove INET_FRAG_EVICTED and use list_evictor for the test").
This is necessary because kernels prior to upstream commit d6b915e29f4a
("ip_fragment: don't forward defragmented DF packet") would not always
track the maximum received unit size during ip_defrag(). Without the
MRU, refragmentation cannot occur so reassembled packets are dropped.
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
27 lines
675 B
C
27 lines
675 B
C
/*
|
|
* include/net/net_vrf.h - adds vrf dev structure definitions
|
|
* Copyright (c) 2015 Cumulus Networks
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __LINUX_NET_VRF_WRAPPER_H
|
|
#define __LINUX_NET_VRF_WRAPPER_H
|
|
|
|
#include <linux/version.h>
|
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
|
|
#include_next <net/vrf.h>
|
|
#else
|
|
|
|
static inline int vrf_master_ifindex_rcu(const struct net_device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __LINUX_NET_VRF_WRAPPER_H */
|