summaryrefslogtreecommitdiff
path: root/acinclude.m4
Commit message (Collapse)AuthorAgeFilesLines
* compat: ipv4: Pass struct net through ip_fragment.Eric W. Biederman2016-06-271-1/+3
| | | | | | | | | | | Upstream commit: ipv4: Pass struct net through ip_fragment Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Upstream: 694869b3c544 ("ipv4: Pass struct net through ip_fragment") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* acinclude: check for numa libraryBhanuprakash Bodireddy2016-06-241-0/+2
| | | | | | | | | | | | | | | Numa library is needed for NUMA aware vHost User functionality. Incase of missing numa package, the OVS DPDK configuration fails with "error: Could not find DPDK libraries in <DPDK_LOC>/TARGET/lib" though the DPDK library is installed. This patch fixes this inappropriate error by checking for presence of numa library and output an appropriate error message "error: unable to find libnuma, install the dependency package" in case of missing package. Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> Acked-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* datapath: change nf_connlabels_get bit arg to 'highest used'Jarno Rajahalme2016-06-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream commit: commit adff6c65600000ec2bb71840c943ee12668080f5 Author: Florian Westphal <fw@strlen.de> Date: Tue Apr 12 18:14:25 2016 +0200 netfilter: connlabels: change nf_connlabels_get bit arg to 'highest used' nf_connlabel_set() takes the bit number that we would like to set. nf_connlabels_get() however took the number of bits that we want to support. So e.g. nf_connlabels_get(32) support bits 0 to 31, but not 32. This changes nf_connlabels_get() to take the highest bit that we want to set. Callers then don't have to cope with a potential integer wrap when using nf_connlabels_get(bit + 1) anymore. Current callers are fine, this change is only to make folloup nft ct label set support simpler. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Jarno Rajahalme <jarno@ovn.org> OVS compat code defined nf_connlabels_get() if it was missing. Now we redefine it if it is missing, or if it has the old signature. Signed-off-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* datapath: compat for NAT.Jarno Rajahalme2016-06-201-0/+3
| | | | | | | | | | | Compat code required to make the NAT code in the following patch compile with Linux 3.10 - 4.6. Some compat code applies to the conntrack.c itself; these are added after the main NAT backport for conntrack.c later in the series. Signed-off-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* acinclude: Add OVS_FIND_PARAM_IFELSE.Jarno Rajahalme2016-06-201-4/+37
| | | | | | | | | | | | OVS_FIND_PARAM_IFELSE is more robust macro for checking function parameters, as it does not require the parameter to be on the same line as the function name like the OVS_GREP_IFELSE does. Use this to fix the check for struct conntrack_zone parameter, which is on a different line on Linux 4.3 and higher. Signed-off-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* netdev-dpdk: NUMA Aware vHost UserCiara Loftus2016-06-171-1/+1
| | | | | | | | | | | | | | | | | | This commit allows for vHost User memory from QEMU, DPDK and OVS, as well as the servicing PMD, to all come from the same socket. The socket id of a vhost-user port used to be set to that of the master lcore. Now it is possible to update the socket id if it is detected (during VM boot) that the vhost device memory is not on this node. If this is the case, a new mempool is created from the new node, and the PMD thread currently servicing the port will no longer, in favour of a thread from the new node (if enabled in the pmd-cpu-mask). To avail of this functionality, one must enable the CONFIG_RTE_LIBRTE_VHOST_NUMA DPDK configuration option. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* acinclude: fix issue when configuring with --with-dpdkMauricio Vasquez B2016-06-011-2/+3
| | | | | | | | | | | | when an empty path is given to the --with-dpdk option (--with-dpdk="" or --width-dpdk=$NON_SET_ENV_VARIABLE) the configure script does not show any error and configures OvS without DPDK support, this can create some confusion. This patch modifies that behavior showing an explicity error in that case. Signed-off-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it> Signed-off-by: Ben Pfaff <blp@ovn.org>
* acinclude.m4: Fix skb_get_hash function detectionMarkos Chandras2016-05-161-1/+2
| | | | | | | | | | | | | | | | Commit e2f3178f0582 ("datapath: Add support for kernel 3.14.") added support for 3.14 kernels and a new OVS_GREP_IFELSE check for the "skg_get_hash" function in the process. "skb_get_hash" was introduced in the Linux kernel commit 3958afa1b272 ("net: Change skb_get_rxhash to skb_get_hash") which exists in >=3.14 but the OVS_GREP_IFELSE macro also matches the "skb_get_hash_raw" function which exists in older kernels. As a result of which, the check makes the build system behave as if the "skb_get_hash" function is available in these older kernels leading to build failures. We fix this by explicitly checking for "skb_get_hash(" which matches the function definition. Signed-off-by: Markos Chandras <mchandras@suse.de> Signed-off-by: Jesse Gross <jesse@kernel.org>
* compat: Remove skbuff header helper backports.Joe Stringer2016-05-031-4/+0
| | | | | | | These have existed largely since v2.6.22, so it's well overdue. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* compat: Remove unused ipv[46] backports.Joe Stringer2016-05-031-1/+0
| | | | | | | | These pieces #if on kernel versions which are not supported since commit f2ab1536ddbc ("compat: Backport conntrack strictly to v3.10+.") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* compat: ipv4: Pass struct net into ip_defrag.Joe Stringer2016-05-021-0/+2
| | | | | | | | | | | | | | | | | | | | Upstream commit: ipv4: Pass struct net into ip_defrag and ip_check_defrag The function ip_defrag is called on both the input and the output paths of the networking stack. In particular conntrack when it is tracking outbound packets from the local machine calls ip_defrag. So add a struct net parameter and stop making ip_defrag guess which network namespace it needs to defragment packets in. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net> Upstream: 19bcf9f203c8 ("ipv4: Pass struct net into ip_defrag and ip_check_defrag") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* compat: Add a struct net parameter to l4_pkt_to_tuple.Joe Stringer2016-05-021-0/+3
| | | | | | | | | | | | | | | | | | | | Upstream commit: netfilter: nf_conntrack: Add a struct net parameter to l4_pkt_to_tuple As gre does not have the srckey in the packet gre_pkt_to_tuple needs to perform a lookup in it's per network namespace tables. Pass in the proper network namespace to all pkt_to_tuple implementations to ensure gre (and any similar protocols) can get this right. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Upstream: a31f1adc0948 ("netfilter: nf_conntrack: Add a struct net parameter to l4_pkt_to_tuple") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* acinclude: Autodetect DPDK location when configuring OVSBhanuprakash Bodireddy2016-04-151-24/+52
| | | | | | | | | | | | | | | When using DPDK datapath, the OVS configure script requires the DPDK build directory passed on --with-dpdk. This can be avoided if DPDK library, headers are in standard compiler search paths. This patch fixes the problem by searching for DPDK libraries in standard locations and configure OVS sources for dpdk datapath. If the install location is manually specified in "--with-dpdk" autodiscovery shall be skipped. Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
* datapath: Check for sock argument to v6ops->fragment.Jesse Gross2016-03-211-1/+1
| | | | | | | | | | | | | | | | | Ubuntu 3.13.0-83-generic has backported a patch that adds an intermediate version of the v6ops->fragment function that doesn't seem to ever been part of a released upstream kernel. This version is missing the sock argument to the fragment function. Since we already have a backported version of the function from a newer kernel, this simply ignores the version that Ubuntu is now making available and continues to use the OVS version, similar to what it was doing before. Reported-by: Zoltán Balogh <zoltan.balogh@ericsson.com> Reported-by: Aaron Rosen <aaronorosen@gmail.com> Reported-by: Russell Bryant <russell@ovn.org> Signed-off-by: Jesse Gross <jesse@kernel.org> Acked-by: Russell Bryant <russell@ovn.org>
* datapath: Remove OVS_FRAGMENT_BACKPORTPravin B Shelar2016-03-141-9/+0
| | | | | | | | This macro is not required as we drop support for unsupported kernel versions. Signed-off-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* datapath: Drop support for kernel older than 3.10Pravin B Shelar2016-03-141-14/+7
| | | | | | | | | | | | | | | | Currently OVS out of tree datapath supports a large number of kernel versions. From 2.6.32 to 4.3 and various distribution-specific kernels. But at this point major features are only available on more recent kernels. For example, stateful services are only available starting in kernel 3.10 and STT is available on starting with 3.5. Since these features are becoming essential to many OVS deployments, and the effort of maintaining the backports is high. We have decided to drop support for older kernel. Following patch drops supports for kernel older than 3.10. Signed-off-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* datapath: Set a large MTU on tunnel devices.David Wragg2016-02-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Upstream commit: Prior to 4.3, openvswitch tunnel vports (vxlan, gre and geneve) could transmit vxlan packets of any size, constrained only by the ability to send out the resulting packets. 4.3 introduced netdevs corresponding to tunnel vports. These netdevs have an MTU, which limits the size of a packet that can be successfully encapsulated. The default MTU values are low (1500 or less), which is awkwardly small in the context of physical networks supporting jumbo frames, and leads to a conspicuous change in behaviour for userspace. Instead, set the MTU on openvswitch-created netdevs to be the relevant maximum (i.e. the maximum IP packet size minus any relevant overhead), effectively restoring the behaviour prior to 4.3. Signed-off-by: David Wragg <david@weave.works> Signed-off-by: David S. Miller <davem@davemloft.net> Upstream: 7e059158d57b ("vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* datapath: Re-designate OVS_FRAGMENT_BACKPORT.Joe Stringer2016-02-041-1/+4
| | | | | | | | | | | | | | | | | Typically the way that we include backported code is by testing for existence of the feature in the upstream codebase via header checks, then attempt to use the upstream code as much as possible. However, for the IP fragmentation handling backport we have an additional constraint which is that we cannot support kernels older than Linux-3.10. To date, OVS_FRAGMENT_BACKPORT has been defined to include the backport of the IP fragmentation code for all kernels from 3.10 to 4.2, rather than attempting to use the upstream code as much as possible. This patch relaxes OVS_FRAGMENT_BACKPORT to only check the lower bound so that the upstream code may be used in more circumstances. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use upstream ip_fragment().Joe Stringer2016-02-041-0/+3
| | | | | | | | | | Previously a version check was used to determine whether the upstream ip_fragment() should be used or the backported version. The actual test is for whether upstream commit d6b915e29f4a ("ip_fragment: don't forward defragmented DF packet") is present, so test for that instead. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use inet_frag_queue->list_evictor.Joe Stringer2016-02-041-0/+3
| | | | | | | | | | | Kernels 3.17 to 4.2 have a work queue to evict old fragments, but do not track these fragments in an eviction list. On these kernels, we detect the absence of the list_evictor and provide one. This commit fixes the reliance on kernel versions in the case that this functionality is backported. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use nf_ct_frag6_gather().Joe Stringer2016-02-021-0/+4
| | | | | | | | | This function is a likely candidate for backporting, and currently relies on version checks to include the source or not. Grep for the appropriate functions instead, and include the backport based on that. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use inet_getpeer_v4().Joe Stringer2016-02-021-0/+2
| | | | | Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use __skb_dst_copy().Joe Stringer2016-02-021-0/+1
| | | | | Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use nf_connlabels_get().Joe Stringer2016-02-021-0/+2
| | | | | Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use nf_ipv6_ops->fragment.Joe Stringer2016-02-021-0/+2
| | | | | Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use struct nf_conntrack_zone.Joe Stringer2016-02-021-0/+2
| | | | | | | | Rather than relying on version checks, detect the presence of this structure and use it if available. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use inet_frags->lock.Joe Stringer2016-02-021-0/+2
| | | | | | | | | | Prior to ab1c724f6330 ("inet: frag: use seqlock for hash rebuild") upstream, a rwlock was used when rebuilding inet_frags. Rather than using a version check to detect this, search for it in the header and enable the code based on whether it exists. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use inet_frags->frags_work.Joe Stringer2016-02-021-0/+2
| | | | | | | | | | | | Kernels 3.17 and newer have a work queue to evict old fragments, while older kernel versions use an LRU in the fast path; see upstream commit b13d3cbfb8e8 ("inet: frag: move eviction of queues to work queue"). This commit fixes the version checking so that rather than enabling the code for either of these approaches using version checks, it is triggered based on the presence of the work queue in "struct inet_frags". Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* compat: Detect and use inet_frag_queue->last_in.Joe Stringer2016-02-021-0/+3
| | | | | | | | | Kernels 3.17 and older have this field, while newer kernels use the 'flags' field. Detect this in the build in case anyone backports this change to an older kernel. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* datapath: test for netlink_set_err returning voidSimon Horman2016-01-281-0/+2
| | | | | | | | | | | | | | In v2.6.33 netlink_set_err returns void. However, 1a50307ba182 ("netlink: fix NETLINK_RECV_NO_ENOBUFS in netlink_set_err()") was backported and included in v2.6.33.2 and in that and subsequent v2.6.33 stable releases netlink_set_err returns an int. It seems plausible that there are other backports floating around. So check for netlink_set_err returning void rather than including compatibility code based on the version of the kernel. Signed-off-by: Simon Horman <simon.horman@netronome.com> Acked-by: Pravin B Shelar <pshelar@ovn.org>
* acinclude.m4: Fix dpdk build if -mssse3 not supported.Ilya Maximets2016-01-121-1/+2
| | | | | | | | On arm/arm64: gcc: error: unrecognized command line option '-mssse3' Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* datapath: Add conntrack actionJoe Stringer2015-12-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose the kernel connection tracker via OVS. Userspace components can make use of the CT action to populate the connection state (ct_state) field for a flow. This state can be subsequently matched. Exposed connection states are OVS_CS_F_*: - NEW (0x01) - Beginning of a new connection. - ESTABLISHED (0x02) - Part of an existing connection. - RELATED (0x04) - Related to an established connection. - INVALID (0x20) - Could not track the connection for this packet. - REPLY_DIR (0x40) - This packet is in the reply direction for the flow. - TRACKED (0x80) - This packet has been sent through conntrack. When the CT action is executed by itself, it will send the packet through the connection tracker and populate the ct_state field with one or more of the connection state flags above. The CT action will always set the TRACKED bit. When the COMMIT flag is passed to the conntrack action, this specifies that information about the connection should be stored. This allows subsequent packets for the same (or related) connections to be correlated with this connection. Sending subsequent packets for the connection through conntrack allows the connection tracker to consider the packets as ESTABLISHED, RELATED, and/or REPLY_DIR. The CT action may optionally take a zone to track the flow within. This allows connections with the same 5-tuple to be kept logically separate from connections in other zones. If the zone is specified, then the "ct_zone" match field will be subsequently populated with the zone id. IP fragments are handled by transparently assembling them as part of the CT action. The maximum received unit (MRU) size is tracked so that refragmentation can occur during output. IP frag handling contributed by Andy Zhou. Based on original design by Justin Pettit. Upstream: 7f8a436 "openvswitch: Add conntrack action" Signed-off-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport IPv6 fragmentation.Joe Stringer2015-12-031-0/+1
| | | | | | | | IPv6 fragmentation functionality is not exported by most kernels, so backport this code from the upstream 4.3 development tree. Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport IPv4 reassembly.Joe Stringer2015-12-031-0/+8
| | | | | | | | | | | | | 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>
* compat: Wrap IPv4 fragmentation.Joe Stringer2015-12-031-0/+4
| | | | | | | | | | Most kernels provide some form of ip fragmentation. However, until recently many of them would always send ICMP responses for over_MTU packets, even when operating in bridge mode. Backport the check to ensure this doesn't occur. Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport ip_skb_dst_mtu().Joe Stringer2015-12-031-0/+1
| | | | | | | | >From upstream f87c10a8aa1e ("ipv4: introduce ip_dst_mtu_maybe_forward and protect forwarding path against pmtu spoofing") Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport dev_recursion_level().Joe Stringer2015-12-031-0/+1
| | | | | Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport prandom_u32_max().Joe Stringer2015-12-031-0/+1
| | | | | Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport 'dst' functions.Joe Stringer2015-12-031-0/+2
| | | | | Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* compat: Backport nf_ct_tmpl_alloc().Joe Stringer2015-12-031-0/+4
| | | | | | | | | Loosely based upon Linux commit 0838aa7fcfcd "netfilter: fix netns dependencies with conntrack templates" and commit 5e8018fc6142 "netfilter: nf_conntrack: add efficient mark to zone mapping". Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* datapath: Add support for lwtunnelPravin B Shelar2015-12-031-8/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | Following patch adds support for lwtunnel to OVS datapath. With this change OVS datapath detect lwtunnel support and make use of new APIs if available. On older kernel where the support is not there the backported tunnel modules are used. These backported tunnel devices acts as lwtunnel devices. I tried to keep backported module same as upstream for easier bug-fix backport. Since STT and LISP are not upstream OVS always needs to use respective modules from tunnel compat layer. To make it work on kernel 4.3 I have converted STT and LISP modules to lwtunnel API model. lwtunnel make use of skb-dst to pass tunnel information to the tunnel module. On older kernel this is not possible. So the in case of old kernel metadata ref is stored in OVS_CB and direct call to tunnel transmit function is made by respective tunnel vport modules. Similarly on receive side tunnel recv directly call netdev-vport-receive to pass the skb to OVS. Major backported components include: Geneve, GRE, VXLAN, ip_tunnel, udp-tunnels GRO. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Joe Stringer <joe@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
* datapath: Fix compilation on kernel 2.6.32Pravin B Shelar2015-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | Fixes following compilation error: CC [M] /home/travis/build/openvswitch/ovs/datapath/linux/actions.o In file included from /home/travis/build/openvswitch/ovs/datapath/linux/actions.c:21:0: /home/travis/build/openvswitch/ovs/datapath/linux/compat/include/linux/skbuff.h: In function ‘rpl_skb_postpull_rcsum’: /home/travis/build/openvswitch/ovs/datapath/linux/compat/include/linux/skbuff.h:384:4: error: implicit declaration of function ‘skb_checksum_start_offset’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors Reported-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Joe Stringer <joestringer@nicira.com>
* datapath: Add support for 4.2 kernel.Pravin B Shelar2015-09-231-2/+5
|
* datapath: Fix compilation on kernel 3.18Pravin B Shelar2015-09-221-0/+1
| | | | | | | | | | Fixes following compilation error: In file included from ovs/datapath/linux/actions.c:30: ovs/datapath/linux/compat/include/linux/if_vlan.h:65: error: redefinition of ‘__vlan_hwaccel_push_inside’ include/linux/if_vlan.h:353: note: previous definition of ‘__vlan_hwaccel_push_inside’ was here ovs/datapath/linux/compat/include/linux/if_vlan.h:83: Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
* datapath: Add support for 4.1 kernel.Joe Stringer2015-09-181-2/+2
| | | | | | Signed-off-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
* configure: Fix DPDK linking when using a relative pathCiara Loftus2015-09-161-1/+2
| | | | | | | | | | | When linking with DPDK, if a relative path is used with the '--with-dpdk' flag, then OVS will always be compiled with vHost Cuse support, even if it is not enabled in the DPDK build. This patch fixes this problem, and enables the correct version of vHost despite whether or not a relative or absolute path is used. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* datapath: Use netlink ipv4 API to handle the ipv4 addr attributes.Jiri Benc2015-09-141-0/+1
| | | | | | | | | | | upstream: ("netlink: implement nla_put_in_addr and nla_put_in6_addr") upstream: ("netlink: implement nla_get_in_addr and nla_get_in6_addr") IP addresses are often stored in netlink attributes. Add generic functions to do that. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* dpdk: add support for v2.1.0Timo Puha2015-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | Update relevant artifacts to add support for DPDK v2.1.0 - INSTALL.DPDK.md - acinclude.m4: Change DPDK library name - netdev-dpdk: Limit minimum mbuf size to to adapt to DPDK bug fix that changes the treatment of the requested mbuf size - build.sh: Change DPDK version number Note that this breaks compatibility with DPDK v2.0.0 although only for the library name change. Note that throughput for vhost ports with mergeable buffers is reduced about 10% due to a necessary bug fix in DPDK vhost code. Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com> Signed-off-by: Michal Weglicki <michalx.weglicki@intel.com> Signed-off-by: Timo Puha <timox.puha@intel.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* datapath: check for rx handler registerFlavio Leitner2015-08-311-0/+4
| | | | | | | | | | | | | Red Hat Enterprise Linux 6 has backported the netdev RX handler facility so use the netdev_rx_handler_register as an indicator. The handler prototype changed between 2.6.36 and 2.6.39 since there could be backports in any stage, don't look at the kernel version, but at the prototype. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
* datapath: check for el6 kernels for per_cpuFlavio Leitner2015-08-281-0/+3
| | | | | | | | The OVS hook has been backported so it doesn't work to decide per_cpu work arounds. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Jesse Gross <jesse@nicira.com>