From patchwork Fri Apr 15 21:42:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 1617946 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=im83LR0c; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kg8vV54rjz9sGt for ; Sat, 16 Apr 2022 07:43:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 701F541B81; Fri, 15 Apr 2022 21:43:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PEg0SHSMDH8c; Fri, 15 Apr 2022 21:42:58 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id BFBD741B6E; Fri, 15 Apr 2022 21:42:56 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C4C04C0090; Fri, 15 Apr 2022 21:42:54 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 30176C002C for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 1D7EC41A69 for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7_QGRwUO47MT for ; Fri, 15 Apr 2022 21:42:49 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by smtp4.osuosl.org (Postfix) with ESMTPS id C249A41A68 for ; Fri, 15 Apr 2022 21:42:49 +0000 (UTC) Received: by mail-pj1-x1033.google.com with SMTP id j8-20020a17090a060800b001cd4fb60dccso9245768pjj.2 for ; Fri, 15 Apr 2022 14:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lCVIiN4+ZgseEvbEnaYM9HKL9AVPyZBuM7mf1Biq1bw=; b=im83LR0cQ+6gBnPLn+a7N6XBTCgh4zPexpkXCdU47wCsuRB4FEQN8rXoaTgik/l3C4 LJWj2OpUiDvz3NwuXjL2zlAIfqgDupZogglFB6HiZhvwbyeT5mHNVvDhwJ1GnV1flaJm BpStr53Q9/SXbOGNuLkADttvQ7wLFmdrtOwqXK2I82UxuflpQ6qsJT7g00RIFlR/+y0q VJ0xD+z+n5HzjNebc1PgK7Oa7g46bMRywRbVWOMJj1u1CdsBY+5A7ObCF8ua/IRaahxK ljLtlbFxmoASfXQgIBakWGtK78P5++DyWFIFMM3VSFg76EMXpxcXK4KPmnnnAR5UVvMV UR/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lCVIiN4+ZgseEvbEnaYM9HKL9AVPyZBuM7mf1Biq1bw=; b=1DTBS7shLuuprnflkjEzGwNXF+Ooyiwdf5UEtCNbxbGz89lGbI+PcAVB83Ne0A4V44 /Lcd9AlhGRbip9DaI/vbJTGpGRP9DgY+Ivwg+g2BuIU/NCoolB4sSYjEJruqivIBffSN jZ8+q+uRD48+RnhMlf6D86+ZcLxIyvrK9P/QgefvH7QvC7ATX2mQg0iuTb37T2rVWArt /VqQsX/+2uYwq0TJr2aLuDmdv7CGa5pQuBpT12Qtmy/VdEaXsCngDWMdb94kI5qxfkvT g1DV9GuYSMV3/PsIqEknfzxFPBvolQTxL+hGmVlmJionXqLQPvcR6FSzxX8BwE0uf6FU bY/Q== X-Gm-Message-State: AOAM532hanmvxaA+XTohRGw9WT+1cbEoDhyGoEbM63JhGIl//qbH3ufM jt5GO0CMt+XFF2EXkFSA+LPy+cAiswozmw== X-Google-Smtp-Source: ABdhPJw6ASn0t81viebJ0+VegrvXZVBdMpbIHpDD7D15nR4ocueByCTxMiVWeKVs24sjfOMtdeK9kQ== X-Received: by 2002:a17:903:1248:b0:151:9708:d586 with SMTP id u8-20020a170903124800b001519708d586mr752746plh.15.1650058968629; Fri, 15 Apr 2022 14:42:48 -0700 (PDT) Received: from VMware-box.domain (97-115-110-89.ptld.qwest.net. [97.115.110.89]) by smtp.googlemail.com with ESMTPSA id k25-20020aa790d9000000b00508232aecedsm3685840pfk.67.2022.04.15.14.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:42:48 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Fri, 15 Apr 2022 14:42:40 -0700 Message-Id: <20220415214245.18948-2-gvrose8192@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220415214245.18948-1-gvrose8192@gmail.com> References: <20220415214245.18948-1-gvrose8192@gmail.com> Subject: [ovs-dev] [RFC PATCH 1/6] acinclude.m4: Remove support for building the OVS kernel module X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Since the openvswitch project inception it has had support for building a Linux kernel module to support the OVS kernel datapath. Since Linux kernel release 5.8 support for newer kernels has been deprecated. Now is the time to fully discontinue support for building the openvswitch kernel driver. Since Linux 5.9 the Linux built-in openvswitch kernel driver supports all necessary features and functions of the kernel datapath and the need to support this additional "out of tree" kernel module is gone. Remove the --with-linux configuration support from the acinclude.m4 configuration and warn user it is not supported any longer. Signed-off-by: Greg Rose --- acinclude.m4 | 683 +-------------------------------------------------- 1 file changed, 1 insertion(+), 682 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 61e88105f..0b1be92f7 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -117,132 +117,11 @@ dnl OVS_CHECK_LINUX dnl dnl Configure linux kernel source tree AC_DEFUN([OVS_CHECK_LINUX], [ - AC_ARG_WITH([linux], - [AC_HELP_STRING([--with-linux=/path/to/linux], - [Specify the Linux kernel build directory])]) - AC_ARG_WITH([linux-source], - [AC_HELP_STRING([--with-linux-source=/path/to/linux-source], - [Specify the Linux kernel source directory - (usually figured out automatically from build - directory)])]) - - # Deprecated equivalents to --with-linux, --with-linux-source. - AC_ARG_WITH([l26]) - AC_ARG_WITH([l26-source]) - if test X"$with_linux" != X; then - KBUILD=$with_linux - AC_MSG_WARN([--with-linux is deprecated and kernel support is limited to 5.8 and below]) - elif test X"$with_l26" != X; then - KBUILD=$with_l26 - AC_MSG_WARN([--with-l26 is deprecated, please use --with-linux instead]) - else + AC_MSG_WARN([--with-linux is no longer supported]) KBUILD= fi - if test X"$KBUILD" != X; then - if test X"$with_linux_source" != X; then - KSRC=$with_linux_source - elif test X"$with_l26_source" != X; then - KSRC=$with_l26_source - AC_MSG_WARN([--with-l26-source is deprecated, please use --with-linux-source instead]) - else - KSRC= - fi - elif test X"$with_linux_source" != X || test X"$with_l26_source" != X; then - AC_MSG_ERROR([Linux source directory may not be specified without Linux build directory]) - fi - - if test -n "$KBUILD"; then - KBUILD=`eval echo "$KBUILD"` - case $KBUILD in - /*) ;; - *) KBUILD=`pwd`/$KBUILD ;; - esac - - # The build directory is what the user provided. - # Make sure that it exists. - AC_MSG_CHECKING([for Linux build directory]) - if test -d "$KBUILD"; then - AC_MSG_RESULT([$KBUILD]) - AC_SUBST(KBUILD) - else - AC_MSG_RESULT([no]) - AC_ERROR([source dir $KBUILD doesn't exist]) - fi - - # Debian breaks kernel headers into "source" header and "build" headers. - # We want the source headers, but $KBUILD gives us the "build" headers. - # Use heuristics to find the source headers. - AC_MSG_CHECKING([for Linux source directory]) - if test -n "$KSRC"; then - KSRC=`eval echo "$KSRC"` - case $KSRC in - /*) ;; - *) KSRC=`pwd`/$KSRC ;; - esac - if test ! -e $KSRC/include/linux/kernel.h; then - AC_MSG_ERROR([$KSRC is not a kernel source directory]) - fi - else - KSRC=$KBUILD - if test ! -e $KSRC/include/linux/kernel.h; then - # Debian kernel build Makefiles tend to include a line of the form: - # MAKEARGS := -C /usr/src/linux-headers-3.2.0-1-common O=/usr/src/linux-headers-3.2.0-1-486 - # First try to extract the source directory from this line. - KSRC=`sed -n 's/.*-C \([[^ ]]*\).*/\1/p' "$KBUILD"/Makefile` - if test ! -e "$KSRC"/include/linux/kernel.h; then - # Didn't work. Fall back to name-based heuristics that used to work. - case `echo "$KBUILD" | sed 's,/*$,,'` in # ( - */build) - KSRC=`echo "$KBUILD" | sed 's,/build/*$,/source,'` - ;; # ( - *) - KSRC=`(cd $KBUILD && pwd -P) | sed 's,-[[^-]]*$,-common,'` - ;; - esac - fi - fi - if test ! -e "$KSRC"/include/linux/kernel.h; then - AC_MSG_ERROR([cannot find source directory (please use --with-linux-source)]) - fi - fi - AC_MSG_RESULT([$KSRC]) - - AC_MSG_CHECKING([for kernel version]) - version=`sed -n 's/^VERSION = //p' "$KSRC/Makefile"` - patchlevel=`sed -n 's/^PATCHLEVEL = //p' "$KSRC/Makefile"` - sublevel=`sed -n 's/^SUBLEVEL = //p' "$KSRC/Makefile"` - if test X"$version" = X || test X"$patchlevel" = X; then - AC_ERROR([cannot determine kernel version]) - elif test X"$sublevel" = X; then - kversion=$version.$patchlevel - else - kversion=$version.$patchlevel.$sublevel - fi - AC_MSG_RESULT([$kversion]) - - if test "$version" -ge 5; then - if test "$version" = 5 && test "$patchlevel" -le 8; then - : # Linux 5.x - else - AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 5.8.x is not supported (please refer to the FAQ for advice)]) - fi - elif test "$version" = 4; then - : # Linux 4.x - elif test "$version" = 3 && test "$patchlevel" -ge 10; then - : # Linux 3.x - else - AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version 3.10 or later is required]) - fi - if (test ! -e "$KBUILD"/include/linux/version.h && \ - test ! -e "$KBUILD"/include/generated/uapi/linux/version.h)|| \ - (test ! -e "$KBUILD"/include/linux/autoconf.h && \ - test ! -e "$KBUILD"/include/generated/autoconf.h); then - AC_MSG_ERROR([Linux kernel source in $KBUILD is not configured]) - fi - OVS_CHECK_LINUX_COMPAT - fi AM_CONDITIONAL(LINUX_ENABLED, test -n "$KBUILD") ]) @@ -665,566 +544,6 @@ AC_DEFUN([OVS_FIND_OP_PARAM_IFELSE], [ fi ]) -dnl OVS_DEFINE(NAME) -dnl -dnl Defines NAME to 1 in kcompat.h. -AC_DEFUN([OVS_DEFINE], [ - echo '#define $1 1' >> datapath/linux/kcompat.h.new -]) - -dnl OVS_CHECK_LINUX_COMPAT -dnl -dnl Runs various Autoconf checks on the Linux kernel source in -dnl the directory in $KBUILD. -AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ - rm -f datapath/linux/kcompat.h.new - mkdir -p datapath/linux - : > datapath/linux/kcompat.h.new - - echo '#include -#ifndef RHEL_RELEASE_CODE -#define RHEL_RELEASE_CODE 0 -#define RHEL_RELEASE_VERSION(a, b) 0 -#endif' >> datapath/linux/kcompat.h.new - - OVS_GREP_IFELSE([$KSRC/arch/x86/include/asm/checksum_32.h], [src_err,], - [OVS_DEFINE([HAVE_CSUM_COPY_DBG])]) - - OVS_GREP_IFELSE([$KSRC/include/net/ip6_fib.h], [rt6_get_cookie], - [OVS_DEFINE([HAVE_RT6_GET_COOKIE])]) - - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/addrconf.h], [ipv6_stub], - [dst_entry]) - OVS_GREP_IFELSE([$KSRC/include/net/addrconf.h], [ipv6_dst_lookup.*net], - [OVS_DEFINE([HAVE_IPV6_DST_LOOKUP_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/addrconf.h], [ipv6_dst_lookup_flow.*net], - [OVS_DEFINE([HAVE_IPV6_DST_LOOKUP_FLOW_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/addrconf.h], [ipv6_stub]) - OVS_GREP_IFELSE([$KSRC/include/net/addrconf.h], [ipv6_dst_lookup_flow]) - - OVS_GREP_IFELSE([$KSRC/include/linux/err.h], [ERR_CAST]) - OVS_GREP_IFELSE([$KSRC/include/linux/err.h], [IS_ERR_OR_NULL]) - OVS_GREP_IFELSE([$KSRC/include/linux/err.h], [PTR_ERR_OR_ZERO]) - - OVS_GREP_IFELSE([$KSRC/include/linux/jump_label.h], [static_branch_unlikely(], - [OVS_DEFINE([HAVE_UPSTREAM_STATIC_KEY])]) - OVS_GREP_IFELSE([$KSRC/include/linux/jump_label.h], [DEFINE_STATIC_KEY_FALSE], - [OVS_DEFINE([HAVE_DEFINE_STATIC_KEY])]) - OVS_GREP_IFELSE([$KSRC/include/linux/jump_label.h], - [DECLARE_STATIC_KEY_FALSE], - [OVS_DEFINE([HAVE_DECLARE_STATIC_KEY])]) - - OVS_GREP_IFELSE([$KSRC/include/linux/etherdevice.h], [eth_hw_addr_random]) - OVS_GREP_IFELSE([$KSRC/include/linux/etherdevice.h], [ether_addr_copy]) - - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_link.h], [IFLA_GENEVE_TOS]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_link.h], [rtnl_link_stats64]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_link.h], [rtnl_link_stats64]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [vlan_set_encap_proto]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [vlan_hwaccel_push_inside]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [__vlan_hwaccel_clear_tag]) - - OVS_GREP_IFELSE([$KSRC/include/linux/in.h], [ipv4_is_multicast]) - OVS_GREP_IFELSE([$KSRC/include/linux/in.h], [proto_ports_offset]) - OVS_GREP_IFELSE([$KSRC/include/net/ip.h], [__ip_select_ident.*dst_entry], - [OVS_DEFINE([HAVE_IP_SELECT_IDENT_USING_DST_ENTRY])]) - OVS_GREP_IFELSE([$KSRC/include/net/ip.h], [__ip_select_ident.*net], - [OVS_DEFINE([HAVE_IP_SELECT_IDENT_USING_NET])]) - - OVS_GREP_IFELSE([$KSRC/include/net/ip.h], [inet_get_local_port_range.*net], - [OVS_DEFINE([HAVE_INET_GET_LOCAL_PORT_RANGE_USING_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/ip.h], [ip_defrag.*net], - [OVS_DEFINE([HAVE_IP_DEFRAG_TAKES_NET])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/ip.h], - [ip_do_fragment], [net], - [OVS_DEFINE([HAVE_IP_DO_FRAGMENT_TAKES_NET])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/ip.h], - [ip_local_out], [net], - [OVS_DEFINE([HAVE_IP_LOCAL_OUT_TAKES_NET])]) - - OVS_GREP_IFELSE([$KSRC/include/net/ip.h], [ip_skb_dst_mtu]) - - OVS_GREP_IFELSE([$KSRC/include/net/ip.h], [IPSKB_FRAG_PMTU], - [OVS_DEFINE([HAVE_CORRECT_MRU_HANDLING])]) - OVS_GREP_IFELSE([$KSRC/include/net/ip_tunnels.h], [__ip_tunnel_change_mtu]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [hashfn.*const], - [OVS_DEFINE([HAVE_INET_FRAGS_CONST])]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [last_in], - [OVS_DEFINE([HAVE_INET_FRAGS_LAST_IN])]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frag_evicting]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frag_evictor]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frags], - [frags_work]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frags], - [rwlock]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frag_queue], - [list_evictor]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frag_lru_move]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/inet_frag.h], - [sub_frag_mem_limit], [struct.netns_frags], - [OVS_DEFINE([HAVE_SUB_FRAG_MEM_LIMIT_ARG_STRUCT_NETNS_FRAGS])]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [void.*inet_frags_init], - [OVS_DEFINE([HAVE_VOID_INET_FRAGS_INIT])]) - OVS_GREP_IFELSE([$KSRC/include/net/inetpeer.h], [vif], - [OVS_DEFINE([HAVE_INETPEER_VIF_SUPPORT])]) - - dnl Check for dst_cache and ipv6 lable to use backported tunnel infrastructure. - dnl OVS does not really need ipv6 label field, but its presence signifies that - dnl the stack has all required ipv6 support. - dnl OVS also does not need dst_cache But this dependency allows us to write - dnl much cleaner code. - - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/ip_tunnels.h], [ip_tunnel_key], - [label], - [OVS_GREP_IFELSE([$KSRC/include/net/ip_tunnels.h], - [iptunnel_pull_offloads], - [OVS_GREP_IFELSE([$KSRC/include/net/dst_cache.h], [dst_cache], - [OVS_GREP_IFELSE([$KSRC/include/net/erspan.h], [erspan_md2], - [OVS_DEFINE([USE_UPSTREAM_TUNNEL])])])])]) - - OVS_GREP_IFELSE([$KSRC/include/net/dst_cache.h], [dst_cache], - [OVS_DEFINE([USE_BUILTIN_DST_CACHE])]) - OVS_GREP_IFELSE([$KSRC/include/net/mpls.h], [mpls_hdr], - [OVS_DEFINE([MPLS_HEADER_IS_L3])]) - OVS_GREP_IFELSE([$KSRC/include/linux/net.h], [sock_create_kern.*net], - [OVS_DEFINE([HAVE_SOCK_CREATE_KERN_NET])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_fill_metadata_dst]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [dev_disable_lro]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [dev_get_stats]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [dev_get_by_index_rcu]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [dev_recursion_level]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [__skb_gso_segment]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [skb_gso_error_unwind]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [can_checksum_protocol]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_get_iflink]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_features_check], - [OVS_DEFINE([USE_UPSTREAM_TUNNEL_GSO])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_add_vxlan_port]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_add_geneve_port]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_udp_tunnel_add]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [netdev_features_t]) - dnl Ubuntu kernel 3.13 has defined this struct but not used for netdev->tstats. - dnl So check type of tstats. - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [pcpu_sw_netstats.*tstats], - [OVS_DEFINE([HAVE_PCPU_SW_NETSTATS])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [netif_needs_gso.*net_device], - [OVS_DEFINE([HAVE_NETIF_NEEDS_GSO_NETDEV])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [skb_csum_hwoffload_help]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [udp_offload]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [udp_offload.*uoff], - [OVS_DEFINE([HAVE_UDP_OFFLOAD_ARG_UOFF])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [gro_remcsum]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [IFF_PHONY_HEADROOM]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netdevice.h], [net_device_ops], - [extended]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/linux/netdevice.h], - [netdev_master_upper_dev_link], [upper_priv], - [OVS_DEFINE([HAVE_NETDEV_MASTER_UPPER_DEV_LINK_PRIV])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], - [netdev_master_upper_dev_link_rh], - [OVS_DEFINE([HAVE_NETDEV_MASTER_UPPER_DEV_LINK_RH])]) - - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netdevice.h], [net_device], - [max_mtu]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netdevice.h], [net_device_ops_extended], - [ndo_change_mtu], [OVS_DEFINE([HAVE_RHEL7_MAX_MTU])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/linux/netdevice.h], - [dev_change_flags], [extack], - [OVS_DEFINE([HAVE_DEV_CHANGE_FLAGS_TAKES_EXTACK])]) - - OVS_GREP_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hook_state]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hook_state], - [struct net ], [OVS_DEFINE([HAVE_NF_HOOK_STATE_NET])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netfilter.h], [nf_register_net_hook]) - OVS_GREP_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hookfn.*nf_hook_ops], - [OVS_DEFINE([HAVE_NF_HOOKFN_ARG_OPS])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hookfn], [priv], - [OVS_DEFINE([HAVE_NF_HOOKFN_ARG_PRIV])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hook_ops], - [owner], [OVS_DEFINE([HAVE_NF_HOOKS_OPS_OWNER])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netfilter.h], [NFPROTO_INET]) - OVS_GREP_IFELSE([$KSRC/include/linux/netfilter.h], [CONFIG_NF_NAT_NEEDED]) - - - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netfilter_ipv6.h], [nf_ipv6_ops], - [fragment.*sock], [OVS_DEFINE([HAVE_NF_IPV6_OPS_FRAGMENT])]) - - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_conn], [struct timer_list[[ \t]]*timeout], - [OVS_DEFINE([HAVE_NF_CONN_TIMER])]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_ct_delete(], [OVS_DEFINE([HAVE_NF_CT_DELETE])]) - - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_ct_tmpl_alloc], [nf_conntrack_zone], - [OVS_DEFINE([HAVE_NF_CT_TMPL_ALLOC_TAKES_STRUCT_ZONE])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_ct_get_tuplepr], [struct.net], - [OVS_DEFINE([HAVE_NF_CT_GET_TUPLEPR_TAKES_STRUCT_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_ct_set]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_ct_is_untracked]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack.h], - [nf_ct_invert_tuplepr]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_zones.h], - [nf_ct_zone_init]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_l3proto.h], - [net_ns_get]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_labels.h], - [nf_connlabels_get]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_labels.h], - [nf_connlabels_get], [int bit], - [OVS_DEFINE([HAVE_NF_CONNLABELS_GET_TAKES_BIT])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_labels.h], - [nf_conn_labels], [words]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_nat.h], [nf_ct_nat_ext_add]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_nat.h], [nf_nat_alloc_null_binding]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_nat.h], [nf_nat_range2]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_nat.h], [nf_nat_packet], - [OVS_DEFINE([HAVE_UPSTREAM_NF_NAT])]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_seqadj.h], [nf_ct_seq_adjust]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_count.h], [nf_conncount_gc_list], - [OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_count.h], - [int nf_conncount_add], - [], [OVS_DEFINE([HAVE_UPSTREAM_NF_CONNCOUNT])])]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_timeout.h], [nf_ct_set_timeout]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_timeout.h], [struct nf_ct_timeout], - [OVS_DEFINE([HAVE_NF_CT_TIMEOUT])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_timeout.h], - [\(*nf_ct_timeout_find_get_hook\)], [net], - [OVS_DEFINE([HAVE_NF_CT_TIMEOUT_FIND_GET_HOOK_NET])]) - - OVS_GREP_IFELSE([$KSRC/include/linux/random.h], - [prandom_u32[[\(]]], - [OVS_DEFINE([HAVE_PRANDOM_U32])]) - OVS_GREP_IFELSE([$KSRC/include/linux/random.h], [prandom_u32_max]) - OVS_GREP_IFELSE([$KSRC/include/linux/prandom.h], - [prandom_u32[[\(]]], - [OVS_DEFINE([HAVE_PRANDOM_U32])]) - OVS_GREP_IFELSE([$KSRC/include/linux/prandom.h], [prandom_u32_max]) - - OVS_GREP_IFELSE([$KSRC/include/net/rtnetlink.h], [get_link_net]) - OVS_GREP_IFELSE([$KSRC/include/net/rtnetlink.h], [name_assign_type]) - OVS_GREP_IFELSE([$KSRC/include/net/rtnetlink.h], [rtnl_create_link.*src_net], - [OVS_DEFINE([HAVE_RTNL_CREATE_LINK_SRC_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/net_namespace.h], [possible_net_t]) - - OVS_GREP_IFELSE([$KSRC/include/linux/rcupdate.h], [rcu_read_lock_held], [], - [OVS_GREP_IFELSE([$KSRC/include/linux/rtnetlink.h], - [rcu_read_lock_held])]) - OVS_GREP_IFELSE([$KSRC/include/linux/rtnetlink.h], [lockdep_rtnl_is_held]) - OVS_GREP_IFELSE([$KSRC/include/linux/rtnetlink.h], [net_rwsem]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/rtnetlink.h], - [rtnl_create_link], [extack], - [OVS_DEFINE([HAVE_RTNL_CREATE_LINK_TAKES_EXTACK])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [nf_reset_ct]) - - # Check for the proto_data_valid member in struct sk_buff. The [^@] - # is necessary because some versions of this header remove the - # member but retain the kerneldoc comment that describes it (which - # starts with @). The brackets must be doubled because of m4 - # quoting rules. - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [[[^@]]proto_data_valid], - [OVS_DEFINE([HAVE_PROTO_DATA_VALID])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_checksum_start_offset]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [inner_protocol]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [inner_protocol_type]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_inner_transport_offset]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [kfree_skb_list]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [rxhash]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [u16.*rxhash], - [OVS_DEFINE([HAVE_U16_RXHASH])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_dst(], - [OVS_DEFINE([HAVE_SKB_DST_ACCESSOR_FUNCS])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [skb_copy_from_linear_data_offset]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [skb_reset_tail_pointer]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_cow_head]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_warn_if_lro], - [OVS_DEFINE([HAVE_SKB_WARN_LRO])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [consume_skb]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_frag_page]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_has_frag_list]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [__skb_fill_page_desc]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_reset_mac_len]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_unclone]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_orphan_frags]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_get_hash(], - [OVS_DEFINE([HAVE_SKB_GET_HASH])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_clear_hash]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [int.skb_zerocopy(], - [OVS_DEFINE([HAVE_SKB_ZEROCOPY])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_ensure_writable]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_vlan_pop]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [__skb_vlan_pop]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_vlan_push]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_clear_hash_if_not_l4]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_postpush_rcsum]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [lco_csum]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_nfct]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_put_zero]) - - OVS_GREP_IFELSE([$KSRC/include/linux/types.h], [__wsum], - [OVS_DEFINE([HAVE_CSUM_TYPES])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/types.h], [__wsum], - [OVS_DEFINE([HAVE_CSUM_TYPES])]) - - OVS_GREP_IFELSE([$KSRC/include/net/checksum.h], [csum_replace4]) - OVS_GREP_IFELSE([$KSRC/include/net/checksum.h], [csum_unfold]) - - OVS_GREP_IFELSE([$KSRC/include/net/dst.h], [dst_discard_sk]) - OVS_GREP_IFELSE([$KSRC/include/net/dst.h], [__skb_dst_copy]) - - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [genl_has_listeners]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [mcgrp_offset]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [parallel_ops]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [netlink_has_listeners(net->genl_sock], - [OVS_DEFINE([HAVE_GENL_HAS_LISTENERS_TAKES_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [genlmsg_parse]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [genl_notify.*family], - [OVS_DEFINE([HAVE_GENL_NOTIFY_TAKES_FAMILY])]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [genl_validate_flags]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/genetlink.h], - [genl_notify], [net], - [OVS_DEFINE([HAVE_GENL_NOTIFY_TAKES_NET])]) - - - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/genetlink.h], - [genl_multicast_group], [id]) - OVS_GREP_IFELSE([$KSRC/include/net/geneve.h], [geneve_hdr]) - - OVS_GREP_IFELSE([$KSRC/include/net/gre.h], [gre_cisco_register]) - OVS_GREP_IFELSE([$KSRC/include/net/gre.h], [gre_handle_offloads]) - OVS_GREP_IFELSE([$KSRC/include/net/ipv6.h], [IP6_FH_F_SKIP_RH]) - OVS_GREP_IFELSE([$KSRC/include/net/ipv6.h], [ip6_local_out_sk]) - OVS_GREP_IFELSE([$KSRC/include/net/ipv6.h], [__ipv6_addr_jhash]) - OVS_GREP_IFELSE([$KSRC/include/net/ip6_fib.h], [rt6i.*u.dst], - [OVS_DEFINE([HAVE_RT6INFO_DST_UNION])]) - OVS_GREP_IFELSE([$KSRC/include/net/ip6_route.h], [ip6_frag.*sock], - [OVS_DEFINE([HAVE_IP_FRAGMENT_TAKES_SOCK])]) - - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_put_64bit]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_get_be16]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_put_be16]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_put_be32]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_put_be64]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_put_in_addr]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_find_nested]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_is_last]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], [nla_nest_start_noflag]) - OVS_GREP_IFELSE([$KSRC/include/linux/netlink.h], [void.*netlink_set_err], - [OVS_DEFINE([HAVE_VOID_NETLINK_SET_ERR])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netlink.h], - [nla_parse], [netlink_ext_ack], - [OVS_DEFINE([HAVE_NETLINK_EXT_ACK])]) - - OVS_GREP_IFELSE([$KSRC/include/net/sctp/checksum.h], [sctp_compute_cksum]) - - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [vlan_insert_tag_set_proto]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [__vlan_insert_tag]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [vlan_get_protocol]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [skb_vlan_tagged]) - OVS_GREP_IFELSE([$KSRC/include/linux/if_vlan.h], [eth_type_vlan]) - - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/dst_metadata.h], - [metadata_dst_alloc], [metadata_type]) - - OVS_GREP_IFELSE([$KSRC/include/linux/u64_stats_sync.h], [u64_stats_fetch_begin_irq]) - - OVS_GREP_IFELSE([$KSRC/include/net/vxlan.h], [struct vxlan_metadata], - [OVS_DEFINE([HAVE_VXLAN_METADATA])]) - OVS_GREP_IFELSE([$KSRC/include/net/udp.h], [udp_flow_src_port], - [OVS_GREP_IFELSE([$KSRC/include/net/udp.h], [inet_get_local_port_range(net], - [OVS_DEFINE([HAVE_UDP_FLOW_SRC_PORT])])]) - OVS_GREP_IFELSE([$KSRC/include/net/udp.h], [udp_v4_check]) - OVS_GREP_IFELSE([$KSRC/include/net/udp_tunnel.h], [udp_tunnel_gro_complete]) - OVS_GREP_IFELSE([$KSRC/include/net/udp_tunnel.h], [sk_buff.*udp_tunnel_handle_offloads], - [OVS_DEFINE([HAVE_UDP_TUNNEL_HANDLE_OFFLOAD_RET_SKB])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/udp_tunnel.h], [udp_tunnel_sock_cfg], - [gro_receive]) - - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [ignore_df], - [OVS_DEFINE([HAVE_IGNORE_DF_RENAME])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/netdevice.h], [NET_NAME_UNKNOWN], - [OVS_DEFINE([HAVE_NET_NAME_UNKNOWN])]) - - OVS_GREP_IFELSE([$KSRC/include/net/sock.h], [sk_no_check_tx]) - OVS_GREP_IFELSE([$KSRC/include/linux/udp.h], [no_check6_tx]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/protocol.h], - [udp_add_offload], [net], - [OVS_DEFINE([HAVE_UDP_ADD_OFFLOAD_TAKES_NET])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/ipv6/nf_defrag_ipv6.h], - [nf_defrag_ipv6_enable], [net], - [OVS_DEFINE([HAVE_DEFRAG_ENABLE_TAKES_NET])]) - OVS_GREP_IFELSE([$KSRC/include/net/genetlink.h], [family_list], - [OVS_DEFINE([HAVE_GENL_FAMILY_LIST])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netdevice.h], [net_device], - [needs_free_netdev], - [OVS_DEFINE([HAVE_NEEDS_FREE_NETDEV])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/vxlan.h], [vxlan_dev], [cfg], - [OVS_DEFINE([HAVE_VXLAN_DEV_CFG])]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_helper.h], - [nf_conntrack_helper_put], - [OVS_DEFINE(HAVE_NF_CONNTRACK_HELPER_PUT)]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_helper.h], - [nf_nat_helper_try_module_get]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_helper.h], - [nf_nat_helper_put]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h],[[[[:space:]]]SKB_GSO_UDP[[[:space:]]]], - [OVS_DEFINE([HAVE_SKB_GSO_UDP])]) - OVS_GREP_IFELSE([$KSRC/include/net/dst.h],[DST_NOCACHE], - [OVS_DEFINE([HAVE_DST_NOCACHE])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/rtnetlink.h], [rtnl_link_ops], - [extack], - [OVS_DEFINE([HAVE_EXT_ACK_IN_RTNL_LINKOPS])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netfilter.h], [nf_hook_ops], - [list], - [OVS_DEFINE([HAVE_LIST_IN_NF_HOOK_OPS])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/netfilter/nf_conntrack_common.h], - [IP_CT_UNTRACKED]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/linux/netdevice.h], - [netdev_master_upper_dev_link], [extack], - [OVS_DEFINE([HAVE_UPPER_DEV_LINK_EXTACK])]) - OVS_GREP_IFELSE([$KSRC/include/linux/compiler_types.h], - [__LINUX_COMPILER_TYPES_H], - [OVS_DEFINE([HAVE_LINUX_COMPILER_TYPES_H])]) - OVS_GREP_IFELSE([$KSRC/include/linux/timekeeping.h], - [ktime_get_ts64], - [OVS_DEFINE([HAVE_KTIME_GET_TS64])]) - OVS_GREP_IFELSE([$KSRC/include/net/net_namespace.h], - [EXPORT_SYMBOL_GPL(peernet2id_alloc)], - [OVS_DEFINE([HAVE_PEERNET2ID_ALLOC])]) - OVS_GREP_IFELSE([$KSRC/include/linux/timekeeping.h], - [ktime_get_ns], - [OVS_DEFINE([HAVE_KTIME_GET_NS])]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], - frag_percpu_counter_batch[], - [OVS_DEFINE([HAVE_FRAG_PERCPU_COUNTER_BATCH])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [null_compute_pseudo], - [OVS_DEFINE([HAVE_NULL_COMPUTE_PSEUDO])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [__skb_checksum_convert], - [OVS_DEFINE([HAVE_SKB_CHECKSUM_CONVERT])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netdevice.h], [net_device], - [max_mtu], - [OVS_DEFINE([HAVE_NET_DEVICE_MAX_MTU])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/ip6_tunnel.h], [__ip6_tnl_parm], - [erspan_ver], - [OVS_DEFINE([HAVE_IP6_TNL_PARM_ERSPAN_VER])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [SKB_GSO_IPXIP6], - [OVS_DEFINE([HAVE_SKB_GSO_IPXIP6])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/ipv6.h], - [ip6_make_flowlabel], [fl6], - [OVS_DEFINE([HAVE_IP6_MAKE_FLOWLABEL_FL6])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/ipv6.h], [netns_sysctl_ipv6], - [auto_flowlabels], - [OVS_DEFINE([HAVE_NETNS_SYSCTL_IPV6_AUTO_FLOWLABELS])]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], - [netif_keep_dst], - [OVS_DEFINE([HAVE_NETIF_KEEP_DST])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/netdevice.h], [net_device_ops], - [ndo_get_iflink], - [OVS_DEFINE([HAVE_NDO_GET_IFLINK])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [skb_set_inner_ipproto], - [OVS_DEFINE([HAVE_SKB_SET_INNER_IPPROTO])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [tunnel_encap_types], - [OVS_DEFINE([HAVE_TUNNEL_ENCAP_TYPES])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_IPTUN_ENCAP_TYPE], - [OVS_DEFINE([HAVE_IFLA_IPTUN_ENCAP_TYPE])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_IPTUN_COLLECT_METADATA], - [OVS_DEFINE([HAVE_IFLA_IPTUN_COLLECT_METADATA])]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_GRE_ENCAP_DPORT]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_GRE_COLLECT_METADATA]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_GRE_IGNORE_DF]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_GRE_FWMARK]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_GRE_ERSPAN_INDEX]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_GRE_ERSPAN_HWID]) - OVS_GREP_IFELSE([$KSRC/include/uapi/linux/if_tunnel.h], - [IFLA_IPTUN_FWMARK]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/skbuff.h], [sk_buff], - [csum_valid], - [OVS_DEFINE([HAVE_SKBUFF_CSUM_VALID])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/linux/skbuff.h], [sk_buff], - [vlan_present], - [OVS_DEFINE([HAVE_SKBUFF_VLAN_PRESENT])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [skb_checksum_simple_validate]) - OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], - [void.*ndo_get_stats64], - [OVS_DEFINE([HAVE_VOID_NDO_GET_STATS64])]) - OVS_GREP_IFELSE([$KSRC/include/linux/timer.h], [init_timer_deferrable], - [OVS_DEFINE([HAVE_INIT_TIMER_DEFERRABLE])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/ip_tunnels.h], - [ip_tunnel_info_opts_set], [flags], - [OVS_DEFINE([HAVE_IP_TUNNEL_INFO_OPTS_SET_FLAGS])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frags], - [rnd], - [OVS_DEFINE([HAVE_INET_FRAGS_RND])]) - OVS_GREP_IFELSE([$KSRC/include/linux/overflow.h], [__LINUX_OVERFLOW_H], - [OVS_DEFINE([HAVE_OVERFLOW_H])]) - OVS_GREP_IFELSE([$KSRC/include/linux/overflow.h], [struct_size], - [OVS_DEFINE([HAVE_STRUCT_SIZE])]) - OVS_GREP_IFELSE([$KSRC/include/linux/mm.h], [kvmalloc_array], - [OVS_DEFINE([HAVE_KVMALLOC_ARRAY])]) - OVS_GREP_IFELSE([$KSRC/include/linux/mm.h], [kvmalloc_node], - [OVS_DEFINE([HAVE_KVMALLOC_NODE])]) - OVS_GREP_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_l3proto.h], - [nf_conntrack_l3proto], - [OVS_DEFINE([HAVE_NF_CONNTRACK_L3PROATO_H])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_core.h], - [nf_conntrack_in], [nf_hook_state], - [OVS_DEFINE([HAVE_NF_CONNTRACK_IN_TAKES_NF_HOOK_STATE])]) - OVS_GREP_IFELSE([$KSRC/include/net/ipv6_frag.h], [IP6_DEFRAG_CONNTRACK_IN], - [OVS_DEFINE([HAVE_IPV6_FRAG_H])]) - OVS_FIND_PARAM_IFELSE([$KSRC/include/net/netfilter/nf_conntrack_helper.h], - [nf_ct_helper_ext_add], [nf_conntrack_helper], - [OVS_DEFINE([HAVE_NF_CT_HELPER_EXT_ADD_TAKES_HELPER])]) - OVS_GREP_IFELSE([$KSRC/include/net/gre.h], [gre_calc_hlen], - [OVS_DEFINE([HAVE_GRE_CALC_HLEN])]) - OVS_GREP_IFELSE([$KSRC/include/net/gre.h], [ip_gre_calc_hlen], - [OVS_DEFINE([HAVE_IP_GRE_CALC_HLEN])]) - OVS_GREP_IFELSE([$KSRC/include/linux/rbtree.h], [rb_link_node_rcu], - [OVS_DEFINE([HAVE_RBTREE_RB_LINK_NODE_RCU])]) - OVS_GREP_IFELSE([$KSRC/include/net/dst_ops.h], [bool confirm_neigh], - [OVS_DEFINE([HAVE_DST_OPS_CONFIRM_NEIGH])]) - OVS_GREP_IFELSE([$KSRC/include/net/inet_frag.h], [fqdir], - [OVS_DEFINE([HAVE_INET_FRAG_FQDIR])]) - OVS_FIND_FIELD_IFELSE([$KSRC/include/net/genetlink.h], [genl_ops], - [policy], - [OVS_DEFINE([HAVE_GENL_OPS_POLICY])]) - OVS_GREP_IFELSE([$KSRC/include/net/netlink.h], - [nla_parse_deprecated_strict], - [OVS_DEFINE([HAVE_NLA_PARSE_DEPRECATED_STRICT])]) - OVS_FIND_OP_PARAM_IFELSE([$KSRC/include/net/rtnetlink.h], - [validate], [extack], - [OVS_DEFINE([HAVE_RTNLOP_VALIDATE_WITH_EXTACK])]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], - [__skb_set_hash]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [sw_hash]) - OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_get_hash_raw]) - - if cmp -s datapath/linux/kcompat.h.new \ - datapath/linux/kcompat.h >/dev/null 2>&1; then - rm datapath/linux/kcompat.h.new - else - mv datapath/linux/kcompat.h.new datapath/linux/kcompat.h - fi -]) - dnl Checks for net/if_dl.h. dnl dnl (We use this as a proxy for checking whether we're building on FreeBSD From patchwork Fri Apr 15 21:42:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 1617945 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=k75ht6n4; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kg8vS192bz9sVb for ; Sat, 16 Apr 2022 07:43:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D2BCA8423A; Fri, 15 Apr 2022 21:42:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fcOv4OWp6yga; Fri, 15 Apr 2022 21:42:55 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 01EF584224; Fri, 15 Apr 2022 21:42:54 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E1678C008A; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 246CEC0033 for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 111F78420F for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NCkwb5vJC-cG for ; Fri, 15 Apr 2022 21:42:50 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by smtp1.osuosl.org (Postfix) with ESMTPS id 041DA841C8 for ; Fri, 15 Apr 2022 21:42:49 +0000 (UTC) Received: by mail-pj1-x102a.google.com with SMTP id bg24so8486324pjb.1 for ; Fri, 15 Apr 2022 14:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mwS9DnQ3jDaeFC2GWrjNtKQORx2Yg05U0yfYF1+Mt/o=; b=k75ht6n412+zZ4BO1zXGKfIMWvVVBEmnKHbmFo9TTPyerQ8luLE//v1vnBFXZ310Og K8JjUJfK8j/iWWmuJ85GmSrHh6Zx62A9zcKO1i3mFKr8OJQPZxShTljIx0aC6ehzN7iI 0iQzmD8/dEREYjyB+X81i34I5flwCzr34w9dl1TMjq3t7IOicHSNV/I5U/JYEgn/B7l/ TTUpN7Qo01PGwY1Ry+dxuFH3JLpAxFz9tsC4xaXvVgAnVLGeHnCVNn3pd3CGcs7jZOuS o5CAkNfhKmYeJvrZv3+smtYAPV3+YX3HaFwrHeldTy0vOsNP1+vRWTpIQl4rRajuHUkE J4gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mwS9DnQ3jDaeFC2GWrjNtKQORx2Yg05U0yfYF1+Mt/o=; b=lzvwSSvz4RemnthghyBeAYeLbRxbJt4DjehLJsIawDZtn0uljOGYMesw7AyLeuv/kD VUeGbILnmXROilmCXjS3A+UAThzq5TvmvBhg1Bnz9EqXTLMzut/s8UjhfORfsiHqRYIi KpJng/GX54ZHd80Zvp5U+IZj0cOIAKxvU87IKdPdPCqQWZOFhBNBCza5SfTtjxAGJA8Y +Hkw/bWISoYnfzMXsXhUGHfsY2dd12zdlFRBous7JxghW+PYmQxrnobeoJvLgB22Uuvo fAPdePYhQIXrKNG5h5+OE35bBETLCqqvnVROM8cZfM27Y/ju0QiOcbJJUqsr8BIVXEiy 1I8g== X-Gm-Message-State: AOAM531siAOCU/UKD8Ik7ZCMECuyhny33cFyATQGetzwWKuo01fwjixK uoICLgP7mPrrVECEVlsXtm9Rzzl0q9WvfA== X-Google-Smtp-Source: ABdhPJztO2BgqBKyPWmUpytkV0/9iu27qUaEVa5t6VYC4Bzol35rLJju4Dc9YYd+zbTDs2itqp3Liw== X-Received: by 2002:a17:903:40ce:b0:158:8178:8563 with SMTP id t14-20020a17090340ce00b0015881788563mr948627pld.167.1650058969213; Fri, 15 Apr 2022 14:42:49 -0700 (PDT) Received: from VMware-box.domain (97-115-110-89.ptld.qwest.net. [97.115.110.89]) by smtp.googlemail.com with ESMTPSA id k25-20020aa790d9000000b00508232aecedsm3685840pfk.67.2022.04.15.14.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:42:48 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Fri, 15 Apr 2022 14:42:41 -0700 Message-Id: <20220415214245.18948-3-gvrose8192@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220415214245.18948-1-gvrose8192@gmail.com> References: <20220415214245.18948-1-gvrose8192@gmail.com> Subject: [ovs-dev] [RFC PATCH 2/6] rhel: Remove kernel mode spec X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Remove the kernel driver specification for RHEL 7.x, 8.x and Fedora. Signed-off-by: Greg Rose --- rhel/automake.mk | 12 --- rhel/openvswitch-kmod-fedora.spec.in | 152 --------------------------- 2 files changed, 164 deletions(-) delete mode 100644 rhel/openvswitch-kmod-fedora.spec.in diff --git a/rhel/automake.mk b/rhel/automake.mk index c75406e05..235779b49 100644 --- a/rhel/automake.mk +++ b/rhel/automake.mk @@ -17,8 +17,6 @@ EXTRA_DIST += \ rhel/openvswitch-dkms.spec.in \ rhel/kmod-openvswitch-rhel6.spec \ rhel/kmod-openvswitch-rhel6.spec.in \ - rhel/openvswitch-kmod-fedora.spec \ - rhel/openvswitch-kmod-fedora.spec.in \ rhel/openvswitch.spec \ rhel/openvswitch.spec.in \ rhel/openvswitch-fedora.spec \ @@ -47,9 +45,6 @@ $(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_buildd $(srcdir)/rhel/kmod-openvswitch-rhel6.spec: rhel/kmod-openvswitch-rhel6.spec.in $(top_builddir)/config.status $(update_rhel_spec) -$(srcdir)/rhel/openvswitch-kmod-fedora.spec: rhel/openvswitch-kmod-fedora.spec.in $(top_builddir)/config.status - $(update_rhel_spec) - $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status $(update_rhel_spec) @@ -67,10 +62,3 @@ rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec -D "_topdir ${RPMBUILD_TOP}" \ -ba $(srcdir)/rhel/openvswitch-fedora.spec -# Build kernel datapath RPM -rpm-fedora-kmod: dist $(srcdir)/rhel/openvswitch-kmod-fedora.spec - ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES - cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES - rpmbuild -D "kversion $(shell uname -r)" ${RPMBUILD_OPT} \ - -D "_topdir ${RPMBUILD_TOP}" \ - -ba $(srcdir)/rhel/openvswitch-kmod-fedora.spec diff --git a/rhel/openvswitch-kmod-fedora.spec.in b/rhel/openvswitch-kmod-fedora.spec.in deleted file mode 100644 index e5f78701f..000000000 --- a/rhel/openvswitch-kmod-fedora.spec.in +++ /dev/null @@ -1,152 +0,0 @@ -# Spec file for Open vSwitch. - -# Copyright (C) 2009, 2010, 2015, 2018 Nicira Networks, Inc. -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without warranty of any kind. - -%global debug_package %{nil} - -# Use the kversion macro such as -# RPMBUILD_OPT='-D "kversion 3.10.0-693.1.1.el7.x86_64 3.10.0-693.17.1.el7.x86_64"' -# to build package for mulitple kernel versions in the same package -# This only works for the following kernels. -# - 3.10.0 major revision 327 (RHEL 7.2) -# - 3.10.0 major revision 693 (RHEL 7.4) -# - 3.10.0 major revision 957 (RHEL 7.6) -# - 3.10.0 major revision 1062 (RHEL 7.7) -# - 3.10.0 major revision 1101 (RHEL 7.8 Beta) -# - 3.10.0 major revision 1127 (RHEL 7.8 GA) -# - 3.10.0 major revision 1160 (RHEL 7.9 GA) -# By default, build against the current running kernel version -#%define kernel 3.1.5-1.fc16.x86_64 -#define kernel %{kernel_source} -%{?kversion:%define kernel %kversion} - -%{!?release_number:%define release_number 1} - -Name: openvswitch-kmod -Summary: Open vSwitch Kernel Modules -Group: System Environment/Daemons -URL: http://www.openvswitch.org/ -Vendor: OpenSource Security Ralf Spenneberg -Version: @VERSION@ - -# The entire source code is ASL 2.0 except datapath/ which is GPLv2 -License: GPLv2 -Release: %{release_number}%{?dist} -Source: openvswitch-%{version}.tar.gz -#Source1: openvswitch-init -Buildroot: /tmp/openvswitch-xen-rpm -Provides: kmod-openvswitch -Obsoletes: kmod-openvswitch < %{version}-%{release} - -%description -Open vSwitch provides standard network bridging functions augmented with -support for the OpenFlow protocol for remote per-flow control of -traffic. This package contains the kernel modules. - -%prep -%setup -q -n openvswitch-%{version} - -%build -for kv in %{kversion}; do - mkdir -p _$kv - (cd _$kv && /bin/cp -f ../configure . && %configure --srcdir=.. \ - --with-linux=/lib/modules/${kv}/build --enable-ssl %{_ovs_config_extra_flags}) - make %{_smp_mflags} -C _$kv/datapath/linux -done - -%install -export INSTALL_MOD_DIR=extra/openvswitch -rm -rf $RPM_BUILD_ROOT -for kv in %{kversion}; do - make INSTALL_MOD_PATH=$RPM_BUILD_ROOT -C _$kv/datapath/linux modules_install -done -mkdir -p $RPM_BUILD_ROOT/etc/depmod.d -for kv in %{kversion}; do - for module in $RPM_BUILD_ROOT/lib/modules/${kv}/extra/openvswitch/*.ko - do - modname="$(basename ${module})" - grep -qsPo "^\s*override ${modname%.ko} \* extra\/openvwitch" \ - $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf || \ - echo "override ${modname%.ko} * extra/openvswitch" >> \ - $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf - grep -qsPo "^\s*override ${modname%.ko} \* weak-updates\/openvwitch" \ - $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf || \ - echo "override ${modname%.ko} * weak-updates/openvswitch" >> \ - $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf - done -done -install -d -m 0755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts -install -p -m 0755 rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh \ - $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -current_kernel=$(uname -r) -IFS='.\|-' read mainline_major mainline_minor mainline_patch major_rev \ - minor_rev _extra <<<"${current_kernel}" -# echo mainline_major=$mainline_major mainline_minor=$mainline_minor \ -# mainline_patch=$mainline_patch major_rev=$major_rev minor_rev=$minor_rev -if grep -qs "suse" /etc/os-release; then - # For SLES or OpenSUSE - if [ -x "%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh" ]; then - %{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh - fi -elif [ "$mainline_major" = "3" ] && [ "$mainline_minor" = "10" ] && - { [ "$major_rev" = "327" ] || [ "$major_rev" = "693" ] || \ - [ "$major_rev" = "957" ] || [ "$major_rev" == "1062" ] || \ - [ "$major_rev" = "1101" ] || [ "$major_rev" = "1127" ] || \ - [ "$major_rev" = "1160" ] ; }; then - # For RHEL 7.2, 7.4, 7.6, 7.7, 7.8 and 7.9 - if [ -x "%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh" ]; then - %{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh - fi -else - # Ensure that modprobe will find our modules. - for k in $(cd /lib/modules && /bin/ls); do - [ -d "/lib/modules/$k/kernel/" ] && /sbin/depmod -a "$k" - done - if [ -x "/sbin/weak-modules" ]; then - for m in openvswitch vport-gre vport-stt vport-geneve \ - vport-lisp vport-vxlan; do - echo "/lib/modules/%{kernel}/extra/openvswitch/$m.ko" - done | /sbin/weak-modules --add-modules - fi -fi - -%postun -if [ "$1" = 0 ]; then # Erase, not upgrade - for kname in `ls -d /lib/modules/*` -do - rm -rf $kname/weak-updates/openvswitch -done -fi -/sbin/depmod -a - -%posttrans -# The upgrade path from the older kmod-openvswitch SysV package to -# the newer openvswitch-kmod systemd package will end up removing -# the symlinks to the weak-updates/openvswitch drivers because of -# it's %postun section. We add this section to handle that case. -if [ -x "%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh" ]; then - %{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh -fi - -%files -%defattr(0644,root,root) -/lib/modules/*/extra/openvswitch/*.ko -/etc/depmod.d/kmod-openvswitch.conf -%exclude /lib/modules/*/modules.* -%attr(755,root,root) %{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh - -%changelog -* Wed Sep 21 2011 Kyle Mestery -- Updated for F15 -* Wed Jan 12 2011 Ralf Spenneberg -- First build on F14 From patchwork Fri Apr 15 21:42:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 1617944 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=TPsJiE1M; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kg8vR46G1z9sGt for ; Sat, 16 Apr 2022 07:42:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 04EBE60D72; Fri, 15 Apr 2022 21:42:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mPXM8FkaoYNF; Fri, 15 Apr 2022 21:42:56 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 529B460E18; Fri, 15 Apr 2022 21:42:55 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id CE0FAC008E; Fri, 15 Apr 2022 21:42:53 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id B25DBC002C for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A0B6640496 for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q5ZBPzWJky5p for ; Fri, 15 Apr 2022 21:42:50 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9FE4C40283 for ; Fri, 15 Apr 2022 21:42:50 +0000 (UTC) Received: by mail-pg1-x52c.google.com with SMTP id h5so8648528pgc.7 for ; Fri, 15 Apr 2022 14:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=noASxGtZIGksH7GSBySRQAIkcNyivk8DEmB7Cgbwovc=; b=TPsJiE1MTylHi9RybbuxjFzHvMyZuOukAs7zgy1nUiA7FwM9RA8cauYEVDKfOVed6x BXKiuz4oUCUFxDAb5q5Q8uoesTwmNRa9Y7kfEVij7cMbQWOakvHxqJYoZKBJMf2awmeY LcszwZsmrlAzMABsxuZCX/4pAP5kCZSUjjIWAs5XUgNjRB2dxJE6qw2qZyRBjW8f/fnf BWp36UMBVW+iFeYn7KVLIwDR7Qt4kgMwQO37bfxIMaEbE8woUX1vjgp6eAbCe0uLN4by j9fPmwmNPfMRr6d/rQRqPCy6nrxjj/nMI3+8rSj0RKO6yeUbNCySjj3ZRGtaPQLCQJOX iC6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=noASxGtZIGksH7GSBySRQAIkcNyivk8DEmB7Cgbwovc=; b=d4w/U/bt+qgowIFn7ztczuxGLBak8a7B4fviscrNWXMXUAzOH2W3bTq4WDFYLigqOt CRqsJ8JHqKcriPDUiSGpGlRSLCYBtxYvksM0XrJXajX/68t7KSGiCO+hRAdLzevqk37R m//BhnMora0Cq5K/JbWvHOe4/0MnQxXc1VgsXBndyc9UJ5Sh6t6R//U7MUbIxS0+WpD4 KXBLoespbNl6rmSOb5xWPugMye2DV0Prl7E7N5LRIwt74X+dngCju+Jk1G2V4vxxsYv8 JTJkK7SUbWenRxvgeghktrhFmJmeA/M7bhuicT2bRsCQ9yfJX015TSOMkH/yEDIfR6Tc y3wA== X-Gm-Message-State: AOAM532ON9yiQ2yzG3o7WBviGxRMrGITH7qshuIQteVtPvAHESuZCTSD UU0GfFXmBNaZoHuGYyCWt92mJD21s+BNXQ== X-Google-Smtp-Source: ABdhPJwv2p3pKD6B5iNXfEZqHkypPmfYpgzFYs8sc78S2hIF5nfay6gx7yYRx9AT9QqrORigadrOew== X-Received: by 2002:a05:6a00:b52:b0:508:31e1:7d35 with SMTP id p18-20020a056a000b5200b0050831e17d35mr857966pfo.33.1650058969835; Fri, 15 Apr 2022 14:42:49 -0700 (PDT) Received: from VMware-box.domain (97-115-110-89.ptld.qwest.net. [97.115.110.89]) by smtp.googlemail.com with ESMTPSA id k25-20020aa790d9000000b00508232aecedsm3685840pfk.67.2022.04.15.14.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:42:49 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Fri, 15 Apr 2022 14:42:42 -0700 Message-Id: <20220415214245.18948-4-gvrose8192@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220415214245.18948-1-gvrose8192@gmail.com> References: <20220415214245.18948-1-gvrose8192@gmail.com> Subject: [ovs-dev] [RFC PATCH 3/6] rhel: Remove RHEL 6 kernel module spec X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Remove the RHEL 6 kernel driver module specification. Signed-off-by: Greg Rose --- rhel/automake.mk | 5 -- rhel/kmod-openvswitch-rhel6.spec.in | 123 ---------------------------- 2 files changed, 128 deletions(-) delete mode 100644 rhel/kmod-openvswitch-rhel6.spec.in diff --git a/rhel/automake.mk b/rhel/automake.mk index 235779b49..e0f5ec013 100644 --- a/rhel/automake.mk +++ b/rhel/automake.mk @@ -15,8 +15,6 @@ EXTRA_DIST += \ rhel/etc_sysconfig_network-scripts_ifup-ovs \ rhel/openvswitch-dkms.spec \ rhel/openvswitch-dkms.spec.in \ - rhel/kmod-openvswitch-rhel6.spec \ - rhel/kmod-openvswitch-rhel6.spec.in \ rhel/openvswitch.spec \ rhel/openvswitch.spec.in \ rhel/openvswitch-fedora.spec \ @@ -42,9 +40,6 @@ update_rhel_spec = \ $(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_builddir)/config.status $(update_rhel_spec) -$(srcdir)/rhel/kmod-openvswitch-rhel6.spec: rhel/kmod-openvswitch-rhel6.spec.in $(top_builddir)/config.status - $(update_rhel_spec) - $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status $(update_rhel_spec) diff --git a/rhel/kmod-openvswitch-rhel6.spec.in b/rhel/kmod-openvswitch-rhel6.spec.in deleted file mode 100644 index de69863d7..000000000 --- a/rhel/kmod-openvswitch-rhel6.spec.in +++ /dev/null @@ -1,123 +0,0 @@ -# Spec file for Open vSwitch kernel modules on Red Hat Enterprise -# Linux 6. - -# Copyright (C) 2011, 2012, 2018 Nicira, Inc. -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without warranty of any kind. - -%define oname openvswitch -%{!?release_number:%define release_number 1} - -Name: kmod-%{oname} -Version: @VERSION@ -Release: %{release_number}%{?dist} -Summary: Open vSwitch kernel module - -Group: System/Kernel -License: GPLv2 -URL: http://openvswitch.org/ -Source0: %{oname}-%{version}.tar.gz -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) - -# Without this we get an empty openvswitch-debuginfo package (whose name -# conflicts with the openvswitch-debuginfo package for OVS userspace). -%undefine _enable_debug_packages - -%define kernel_source_extended() /usr/src/kernels/%{2}$([ %{1} = default ] || echo ".%{1}") - -# Use -D 'kversion 2.6.32-131.6.1.el6.x86_64' to build package -# for specified kernel version. -# Use -D 'kversion 3.10.0-693.1.1.el7.x86_64 3.10.0-693.17.1.el7.x86_64' -# to build package for mulitple kernel versions in the same package -# This only works for kernel 3.10.0 major revision 693 (RHEL 7.4) -# and major revision 327 (RHEL 7.2) -# By default, build against the latest installed kernel-devel -%{!?kversion:%global kversion %(rpm -qa | egrep "^kernel(-rt|-aarch64)?-devel" | /usr/lib/rpm/redhat/rpmsort -r | head -n 1| sed "s/^kernel.*-devel-//")} - -# Use -D 'kflavors default debug kdump' to build packages for -# specified kernel variants. -%{!?kflavors:%global kflavors default} - -%description -Open vSwitch Linux kernel module. - -%prep - -%setup -n %{oname}-%{version} - -%build -for kv in %{kversion}; do - for flavor in %{kflavors}; do - mkdir -p _$flavor/_$kv - (cd _$flavor/_$kv && ../../configure --with-linux="%{kernel_source_extended $flavor $kv}") - %{__make} -C _$flavor/_$kv/datapath/linux %{?_smp_mflags} - done -done - -%install -export INSTALL_MOD_PATH=$RPM_BUILD_ROOT -export INSTALL_MOD_DIR=extra/%{oname} -for kv in %{kversion}; do - for flavor in %{kflavors} ; do - make -C %{kernel_source_extended $flavor $kv} modules_install \ - M="`pwd`"/_$flavor/_$kv/datapath/linux - # Cleanup unnecessary kernel-generated module dependency files. - find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; - done -done -install -d %{buildroot}%{_sysconfdir}/depmod.d/ -for kv in %{kversion}; do - for module in %{buildroot}/lib/modules/$kv/$INSTALL_MOD_DIR/*.ko; - do - modname="$(basename ${module})" - grep -qsPo "^\s*override ${modname%.ko} \* extra\/%{oname}" %{oname}.conf || \ - echo "override ${modname%.ko} * extra/%{oname}" >> %{oname}.conf - grep -qsPo "^\s*override ${modname%.ko} \* weak-updates\/%{oname}" %{oname}.conf || \ - echo "override ${modname%.ko} * weak-updates/%{oname}" >> %{oname}.conf - done -done -install -m 644 %{oname}.conf %{buildroot}%{_sysconfdir}/depmod.d/ -install -d -m 0755 $RPM_BUILD_ROOT/usr/share/%{oname}/scripts -install -p -m 0755 rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh \ - $RPM_BUILD_ROOT/usr/share/%{oname}/scripts/ovs-kmod-manage.sh - -%post -current_kernel=$(uname -r) -IFS=. read installed_major installed_minor installed_micro installed_arch \ - installed_build <<<"${current_kernel##*-}" -if [ "$installed_major" = "327" ] || [ "$installed_major" = "693" ]; then - # Workaround for RHEL 7.2 and 7.4 - if [ -x "/usr/share/%{oname}/scripts/ovs-kmod-manage.sh" ]; then - /usr/share/%{oname}/scripts/ovs-kmod-manage.sh - fi -else - # Ensure that modprobe will find our modules. - for k in $(cd /lib/modules && /bin/ls); do - [ -d "/lib/modules/$k/kernel/" ] && /sbin/depmod -a "$k" - done - if [ -x "/sbin/weak-modules" ]; then - rpm -ql kmod-%{oname} | grep '\.ko$' | \ - /sbin/weak-modules --add-modules - fi -fi - -%postun -if [ "$1" = 0 ]; then # Erase, not upgrade - for kname in `ls -d /lib/modules/*` - do - rm -rf $kname/weak-updates/openvswitch - done -fi -/sbin/depmod -a - -%files -%defattr(644,root,root,755) -/etc/depmod.d/%{oname}.conf -/lib/modules/ -%attr(755,root,root) /usr/share/%{oname}/scripts/ovs-kmod-manage.sh - -%clean -rm -rf $RPM_BUILD_ROOT From patchwork Fri Apr 15 21:42:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 1617947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QK19itlj; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kg8vX4s0kz9sGt for ; Sat, 16 Apr 2022 07:43:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 31F8284266; Fri, 15 Apr 2022 21:43:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lbgQyfbaOeYh; Fri, 15 Apr 2022 21:43:00 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id CAB228424A; Fri, 15 Apr 2022 21:42:58 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id BC943C0097; Fri, 15 Apr 2022 21:42:55 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 70BE9C002C for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9EC5884212 for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id in2j7mtpfiN3 for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by smtp1.osuosl.org (Postfix) with ESMTPS id 1D41F841C8 for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) Received: by mail-pg1-x52b.google.com with SMTP id bg9so8642972pgb.9 for ; Fri, 15 Apr 2022 14:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g4QZDKBh9RSNHrf/71/m4RKfFmDeZk4d0MUmkBG5Z9M=; b=QK19itljV3G5V0k1xWcxvWtD4lCo4ShMccEOMkav1vHPN6hhlAu1iReTHeYf5PFmge v7NrEr9RoswaiC1BjLuSKf/yjlEXAdHxljhU44QIHrolr7kERVzyJeFZQHiJS38WaQd+ 1JJoQ0KhTZ+0HWk+IObaTD/tReM+mDkXwf6kTbfrrOPoOH9ovoPQKWQpf4VAZ+IYQUQB 3yYHlDb1DR42IgbXqiQ7FDxisu18ekPZHysP7TAcEe79UZv09DcXWdCBBqcR1MjOK2Z1 DyEG/vsPPrR559C+vMcakEqRBaKZtMksy+6BNk+vTeror74HOgM/57XEcEcmvPIhXy45 belQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g4QZDKBh9RSNHrf/71/m4RKfFmDeZk4d0MUmkBG5Z9M=; b=lqDPvdUgHISZt4p7ofqS4MdHn6DILjwxuAyzgNyR1r88dMWOOamL4/OxgNFrDjJi9r EjzmIOuDLXZINkg2gGnNjHDMXkpzW1x9B57vqSeoKNBExN2TVyISvt+8050umRS59cuF U2eAx8gbo1XHyKQ//anjXpdC8zRoax/9wsEJDzRy5hXLDQLK4pYPNX86n2WU2Ju/hER/ ct5EnmzsDE66vvlkSG0rIIeB80ojP/Wk4IOgaOLQskwoqoPqkI1TxBwrCcrBZYzecyl8 IgFfWUFRI3wn2GgOWUgnScJs4r1sXdy+4b48s0pWeTyeGBlQmzbQ2Bm2CR080I7nec34 cwIA== X-Gm-Message-State: AOAM533ISHkY/g/9nWdlPFAZWiXql4iz9v+aGSjoBVTlK+WjQEfpmxa9 uDM4dSvvMiGAtWdiLjArGevFDzHR3sU+fw== X-Google-Smtp-Source: ABdhPJw+ZVJX1z6ND49mtYyIDLo3zG7Hxy25y7EegDfdrCM+CW/D3AKgF7PncNBBjvR38cJKBK+d4w== X-Received: by 2002:a05:6a00:190a:b0:4fa:e4e9:7126 with SMTP id y10-20020a056a00190a00b004fae4e97126mr801060pfi.65.1650058970436; Fri, 15 Apr 2022 14:42:50 -0700 (PDT) Received: from VMware-box.domain (97-115-110-89.ptld.qwest.net. [97.115.110.89]) by smtp.googlemail.com with ESMTPSA id k25-20020aa790d9000000b00508232aecedsm3685840pfk.67.2022.04.15.14.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:42:50 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Fri, 15 Apr 2022 14:42:43 -0700 Message-Id: <20220415214245.18948-5-gvrose8192@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220415214245.18948-1-gvrose8192@gmail.com> References: <20220415214245.18948-1-gvrose8192@gmail.com> Subject: [ovs-dev] [RFC PATCH 4/6] tests: Remove support for check-kmod test X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" The OVS kernel module is no longer supported as of OVS 2.17 Signed-off-by: Greg Rose --- tests/automake.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/automake.mk b/tests/automake.mk index 8a9151f81..90a38b9bf 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -342,12 +342,6 @@ check-kernel: all set $(SHELL) '$(SYSTEM_KMOD_TESTSUITE)' -C tests AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && "$$@" --recheck) -# Testing the out of tree Kernel module -check-kmod: all - $(MAKE) modules_install - modprobe -r -a vport-geneve vport-gre vport-lisp vport-stt vport-vxlan openvswitch - $(MAKE) check-kernel - check-system-userspace: all set $(SHELL) '$(SYSTEM_USERSPACE_TESTSUITE)' -C tests AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && "$$@" --recheck) From patchwork Fri Apr 15 21:42:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 1617948 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=mZMLDcQt; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kg8vc3fFHz9sGt for ; Sat, 16 Apr 2022 07:43:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7950E41BD2; Fri, 15 Apr 2022 21:43:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BmkxrHNy_6uN; Fri, 15 Apr 2022 21:43:01 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 8EB5141B6E; Fri, 15 Apr 2022 21:43:00 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 637B8C009C; Fri, 15 Apr 2022 21:42:56 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id C7A1FC002C for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id ABE5C405A3 for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id koZfd1C8B0no for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by smtp2.osuosl.org (Postfix) with ESMTPS id E3B4640521 for ; Fri, 15 Apr 2022 21:42:51 +0000 (UTC) Received: by mail-pg1-x52f.google.com with SMTP id h5so8648569pgc.7 for ; Fri, 15 Apr 2022 14:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UPsNPjD9UqklSWzyNymT4iNc4BmPlQg3S3oD9e+NNL0=; b=mZMLDcQtJ+9YFM5hiEZTHfctAq6vSDy/sXBzrEisoSy3N5YBMeGrL/I46UtxpoOppO aNP1y6Z59aD/SPdciPIBRCzkrqyqKQLrUzK2ji3aTisgeBm4gsLr5uBX3L3OvLnoLUqt pI03gEKljq6Y4n8FVhLDqsTB9mdZlwZohq0FYAW8yfD8w73NB4LDnTVQ82/Pbmm/oVQU pXU1Bb7iT/evvgEaBEHFQ1mEIw8/oV0F9FEA/BmI4R/Z8zuQczjVywCxrL9CMq8d7Aq5 FX0lMesgd3g7LueBotOoNhETYYM8IBViCAkzc4KtF0VfBBZfs4HOk8V34Rl5916OHwrG YDCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UPsNPjD9UqklSWzyNymT4iNc4BmPlQg3S3oD9e+NNL0=; b=mqdpPpPP0LuKPn8qsDDvCCNH9HtgYM3vDQxGAAZbM1D+OY6DQ+CH9PyLHfO+H9b/h2 yLO6K4f6QA23XIuEnzBM3EAGl2qDlpRW7Lwtp0thv3kWZpy/Lo83VK7lJfXD8vt9XOCr JW3DluhqhaxnMHjZ/7MyNYsJf6yqHz9CeZeFb/uiQ0CLHIUI3qPiW9yeddxVyl3cbhro hbcfj8/2ajeh52qMXi4LzJDCjbeKQNLP9mWNOCixrqtpXrZoiNftZKuNOhG2Gokcnnhd ruPjf5TFGOymTPIduQWyIelVeutwgwL9RRoqK3RKwDxgLJAUDA3QcORM61AVfz7L2GhJ YV0Q== X-Gm-Message-State: AOAM532Be9Hgn2Cp0kuz75vD2wpTOO9KZCoHmP9RBuoCV0r9q7kZ4wzw EQ8qqHQJl3heuNPApUQzmauMThjd7H7icw== X-Google-Smtp-Source: ABdhPJwtCnyKT/eYE52zmQ2lxBb/q/XaTaVxFJUXk17Ff4Y9NPXWmusDIChjdLQoJMlZV9a53TFR7g== X-Received: by 2002:a62:17cf:0:b0:50a:4601:36fe with SMTP id 198-20020a6217cf000000b0050a460136femr1066328pfx.4.1650058971096; Fri, 15 Apr 2022 14:42:51 -0700 (PDT) Received: from VMware-box.domain (97-115-110-89.ptld.qwest.net. [97.115.110.89]) by smtp.googlemail.com with ESMTPSA id k25-20020aa790d9000000b00508232aecedsm3685840pfk.67.2022.04.15.14.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:42:50 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Fri, 15 Apr 2022 14:42:44 -0700 Message-Id: <20220415214245.18948-6-gvrose8192@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220415214245.18948-1-gvrose8192@gmail.com> References: <20220415214245.18948-1-gvrose8192@gmail.com> Subject: [ovs-dev] [RFC PATCH 5/6] Documentation: Remove kernel module documentation X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" As of Open vSwitch release 2.17 the OVS kernel module is no longer supported. Pull the documentation references. Signed-off-by: Greg Rose --- Documentation/faq/releases.rst | 5 +- .../contributing/backporting-patches.rst | 7 +++ Documentation/intro/install/fedora.rst | 24 ------- Documentation/intro/install/general.rst | 63 ------------------- 4 files changed, 10 insertions(+), 89 deletions(-) diff --git a/Documentation/faq/releases.rst b/Documentation/faq/releases.rst index 5edc1e204..1b4c27b7d 100644 --- a/Documentation/faq/releases.rst +++ b/Documentation/faq/releases.rst @@ -74,7 +74,7 @@ Q: What Linux kernel versions does each Open vSwitch release work with? 2.14.x 3.16 to 5.5 2.15.x 3.16 to 5.8 2.16.x 3.16 to 5.8 - 2.17.x 3.16 to 5.8 + 2.17.x N/A ============ ============== Open vSwitch userspace should also work with the Linux kernel module built @@ -110,7 +110,8 @@ Q: Are all features available with all datapaths? Linux OVS tree The datapath implemented by the Linux kernel module distributed with the OVS source tree. This datapath is deprecated starting with OVS - 2.15.x and support capped at Linux kernel version 5.8. + 2.15.x and support capped at Linux kernel version 5.8. As of OVS 2.17.x + the Linux OVS tree is no longer supported. Userspace This datapath supports conventional system devices as well as diff --git a/Documentation/internals/contributing/backporting-patches.rst b/Documentation/internals/contributing/backporting-patches.rst index 162e9d209..8370c954d 100644 --- a/Documentation/internals/contributing/backporting-patches.rst +++ b/Documentation/internals/contributing/backporting-patches.rst @@ -119,6 +119,13 @@ userspace changes. How to backport kernel patches ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +These instructions only apply to Open vSwitch releases 2.16 and older. +As of Open vSwitch branch 2.17 the Open vSwitch kernel module is no +longer supported and only the Linux openvswitch kernel module is used. +In the case of Open vSwitch releases 2.16 and older kernel backports +may be required for bux fixes and feature implementation so these +instructions are preserved for that reason. + First, the patch should be submitted upstream to `netdev`. When the patch has been applied to `net-next`, it is ready to be backported. Starting from the Linux tree, use ``git format-patch`` to format each patch that should be diff --git a/Documentation/intro/install/fedora.rst b/Documentation/intro/install/fedora.rst index 06a0bd3d5..02481597f 100644 --- a/Documentation/intro/install/fedora.rst +++ b/Documentation/intro/install/fedora.rst @@ -132,36 +132,12 @@ tests. This can take several minutes. $ make rpm-fedora RPMBUILD_OPT="--with check" -Kernel OVS Tree Datapath RPM -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -To build the Open vSwitch kernel module for the currently running kernel -version, run: - -:: - - $ make rpm-fedora-kmod - -To build the Open vSwitch kernel module for another kernel version, the desired -kernel version can be specified via the `kversion` macro. For example: - -:: - - $ make rpm-fedora-kmod \ - RPMBUILD_OPT='-D "kversion 4.3.4-300.fc23.x86_64"' - Installing ---------- RPM packages can be installed by using the command ``rpm -i``. Package installation requires superuser privileges. -The `openvswitch-kmod` RPM should be installed first if the Linux OVS tree -datapath module is to be used. The `openvswitch-kmod` RPM should not be -installed if only the in-tree Linux datapath or user-space datapath is needed. -Refer to the :doc:`/faq/index` for more information about the various Open -vSwitch datapath options. - In most cases only the `openvswitch` RPM will need to be installed. The `python3-openvswitch`, `openvswitch-test`, `openvswitch-devel`, and `openvswitch-debuginfo` RPMs are optional unless required for a specific diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst index a297aadac..c2208bbed 100644 --- a/Documentation/intro/install/general.rst +++ b/Documentation/intro/install/general.rst @@ -302,24 +302,6 @@ example:: $ ./configure CFLAGS="-g -O2 -fsanitize=address -fno-omit-frame-pointer -fno-common" -To build the Linux kernel module, so that you can run the kernel-based switch, -pass the location of the kernel build directory on ``--with-linux``. For -example, to build for a running instance of Linux:: - - $ ./configure --with-linux=/lib/modules/$(uname -r)/build - -.. note:: - If ``--with-linux`` requests building for an unsupported version of Linux, - then ``configure`` will fail with an error message. Refer to the - :doc:`/faq/index` for advice in that case. - -If you wish to build the kernel module for an architecture other than the -architecture of the machine used for the build, you may specify the kernel -architecture string using the KARCH variable when invoking the configure -script. For example, to build for MIPS with Linux:: - - $ ./configure --with-linux=/path/to/linux KARCH=mips - If you plan to do much Open vSwitch development, you might want to add ``--enable-Werror``, which adds the ``-Werror`` option to the compiler command line, turning warnings into errors. That makes it impossible to miss warnings @@ -390,51 +372,6 @@ Building $ make install -5. If you built kernel modules, you may install them, e.g.:: - - $ make modules_install - - It is possible that you already had a Open vSwitch kernel module installed - on your machine that came from upstream Linux (in a different directory). To - make sure that you load the Open vSwitch kernel module you built from this - repository, you should create a ``depmod.d`` file that prefers your newly - installed kernel modules over the kernel modules from upstream Linux. The - following snippet of code achieves the same:: - - $ config_file="/etc/depmod.d/openvswitch.conf" - $ for module in datapath/linux/*.ko; do - modname="$(basename ${module})" - echo "override ${modname%.ko} * extra" >> "$config_file" - echo "override ${modname%.ko} * weak-updates" >> "$config_file" - done - $ depmod -a - - Finally, load the kernel modules that you need. e.g.:: - - $ /sbin/modprobe openvswitch - - To verify that the modules have been loaded, run ``/sbin/lsmod`` and check - that openvswitch is listed:: - - $ /sbin/lsmod | grep openvswitch - - .. note:: - If the ``modprobe`` operation fails, look at the last few kernel log - messages (e.g. with ``dmesg | tail``). Generally, issues like this occur - when Open vSwitch is built for a kernel different from the one into which - you are trying to load it. Run ``modinfo`` on ``openvswitch.ko`` and on a - module built for the running kernel, e.g.:: - - $ /sbin/modinfo openvswitch.ko - $ /sbin/modinfo /lib/modules/$(uname -r)/kernel/net/bridge/bridge.ko - - Compare the "vermagic" lines output by the two commands. If they differ, - then Open vSwitch was built for the wrong kernel. - - If you decide to report a bug or ask a question related to module loading, - include the output from the ``dmesg`` and ``modinfo`` commands mentioned - above. - .. _general-starting: Starting From patchwork Fri Apr 15 21:42:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 1617949 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=UZMMxsl3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kg8vd6PSlz9sGt for ; Sat, 16 Apr 2022 07:43:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A56EF40C63; Fri, 15 Apr 2022 21:43:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5DYj_wHNtTK4; Fri, 15 Apr 2022 21:43:04 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id 7B77840C70; Fri, 15 Apr 2022 21:43:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 69286C009E; Fri, 15 Apr 2022 21:42:57 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 93B3DC008C for ; Fri, 15 Apr 2022 21:42:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id EE08D405A3 for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8b3NtOtcmoJq for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by smtp2.osuosl.org (Postfix) with ESMTPS id 6F94C40558 for ; Fri, 15 Apr 2022 21:42:52 +0000 (UTC) Received: by mail-pl1-x636.google.com with SMTP id be5so7976506plb.13 for ; Fri, 15 Apr 2022 14:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TWZhHzkLzOZGorxvngSVSfwSPt0Vuqwe/SzVax9Fi1A=; b=UZMMxsl3lgUHYjPi+lX3ugEn+94yzd4PiImKXGjdQZhAj5udGgDERxNNh7UBC/31WX RR+oG4QWad37ZhxcW4v2LXyWXbaUCpSCtVNV/qxM1ape1dvv5+BE9yvfpSxWvKB0q7Lc 7k/eYXATCGpW4cmsi+rI1ey9/w6JmlngUu5sA4veOoI8PtuFHMjx4j79ZqnaKkz91bRK rBROSciui9etSt5WjHW9W24/AKimELBgFmdEFH+j4Z7M2iHEfRa73msYGE05L5lGX41g 9FzU+wy+Jng0F2U1fy3UlmGB0DeubJBHa96jGUythCsnpnyHW6Lhq/DwfoQKsPtUyIw2 XTSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TWZhHzkLzOZGorxvngSVSfwSPt0Vuqwe/SzVax9Fi1A=; b=fgO+to4Xee4OzMoMt8Yc+pfv0q/nh/brw5wFbaqA+DPGJp1J/Y4gGJB3zqazlxE3v4 um9qRw2HgYCaok8o5daDIG4dkPj4ytVb8/UCdV1aBjvN8PRZr/j0hRu7Sp7HJgLHGNI5 Ja94lgsUoQsXZa6SAqQmXnLQLrDzL6IGuKeDC/H/FE6nfcu9k92wOfU1JzaZ+VEuixgZ qQ256jY2aaapIBkZFIuibeG7aX14n78HUG1ltRWvX2Er7kP6lJfK+/GHFYGP+4/Cmvbg ZfWb3qYoTwc1Db2mD6EfXxIPNVjOIpNxpGC3NnoXVelpsQtto/58tbDfJmvIDozpUzcR 1r1Q== X-Gm-Message-State: AOAM533NloYiT+mBVbkOgr2Vc+TM/TYBlfTe2ttWpMjXlqT/rnFWXzpL YgYFWzFknldy7WDz0JV8hpq5BM4W2UA9zQ== X-Google-Smtp-Source: ABdhPJxx54Cp0y/g+8ArIIc7dUWUXiQz9kGkMlXlWTtgT/v2Y2j9dlBRrLZ4Iloy9cqvhjiOPrvH0w== X-Received: by 2002:a17:903:40ce:b0:14d:8ab1:919 with SMTP id t14-20020a17090340ce00b0014d8ab10919mr930376pld.122.1650058971703; Fri, 15 Apr 2022 14:42:51 -0700 (PDT) Received: from VMware-box.domain (97-115-110-89.ptld.qwest.net. [97.115.110.89]) by smtp.googlemail.com with ESMTPSA id k25-20020aa790d9000000b00508232aecedsm3685840pfk.67.2022.04.15.14.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:42:51 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Fri, 15 Apr 2022 14:42:45 -0700 Message-Id: <20220415214245.18948-7-gvrose8192@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220415214245.18948-1-gvrose8192@gmail.com> References: <20220415214245.18948-1-gvrose8192@gmail.com> Subject: [ovs-dev] [RFC PATCH 6/6] Disable unsupported kernel builds X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Remove kernel based github workflows since the OVS kernel driver is no longer supported since Release 2.17 Signed-off-by: Greg Rose --- .github/workflows/build-and-test.yml | 35 ---------------------------- 1 file changed, 35 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index eac3504e4..cf483dc1e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,16 +9,9 @@ jobs: automake libtool gcc bc libjemalloc1 libjemalloc-dev \ libssl-dev llvm-dev libelf-dev libnuma-dev libpcap-dev \ ninja-build selinux-policy-dev - deb_dependencies: | - linux-headers-$(uname -r) build-essential fakeroot devscripts equivs - AFXDP: ${{ matrix.afxdp }} - ASAN: ${{ matrix.asan }} CC: ${{ matrix.compiler }} - DEB_PACKAGE: ${{ matrix.deb_package }} DPDK: ${{ matrix.dpdk }} DPDK_SHARED: ${{ matrix.dpdk_shared }} - KERNEL: ${{ matrix.kernel }} - KERNEL_LIST: ${{ matrix.kernel_list }} LIBS: ${{ matrix.libs }} M32: ${{ matrix.m32 }} OPTS: ${{ matrix.opts }} @@ -37,14 +30,6 @@ jobs: - compiler: clang opts: --disable-ssl - - compiler: gcc - testsuite: test - kernel: 3.16 - - compiler: clang - testsuite: test - kernel: 3.16 - asan: asan - - compiler: gcc testsuite: test opts: --enable-shared @@ -66,23 +51,6 @@ jobs: testsuite: test libs: -ljemalloc - - compiler: gcc - kernel_list: 5.8 5.5 5.4 4.19 - - compiler: clang - kernel_list: 5.8 5.5 5.4 4.19 - - - compiler: gcc - kernel_list: 4.14 4.9 4.4 3.16 - - compiler: clang - kernel_list: 4.14 4.9 4.4 3.16 - - - compiler: gcc - afxdp: afxdp - kernel: 5.3 - - compiler: clang - afxdp: afxdp - kernel: 5.3 - - compiler: gcc dpdk: dpdk opts: --enable-shared @@ -106,9 +74,6 @@ jobs: m32: m32 opts: --disable-ssl - - compiler: gcc - deb_package: deb - steps: - name: checkout uses: actions/checkout@v2