aboutsummaryrefslogtreecommitdiff
path: root/net/openvswitch/Makefile
Commit message (Collapse)AuthorAge
* openvswitch: bump to 2.17.9Yousong Zhou2024-02-22
| | | | | | | | | | | Refresh and backport patches so that - ./python path in the source code takes precedence over the same dir in hostpkg - OVN LTS version 22.03.5 which depends on Open vSwitch 3.0 can compile with Open vSwitch 2.17 Fixes: https://github.com/openwrt/packages/issues/22744 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: disable groff manpage checkMatthias Schiffer2023-09-23
| | | | | | | | | | | The openvswitch build trips over a number of warnings during the manpage-check step if groff 1.23 is installed on the build host, resulting in a failed build. As this check is optional, and we don't even install the manpages, simply override the groff configure check to never detect groff. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* treewide: remove AUTORELEASEPaul Fertser2023-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
* treewide: refactor to use PKG_BUILD_FLAGS:=ltoAndre Heider2023-04-08
| | | | | | | | | | See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS" on the main repository. Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This fixes it and properly enables LTO. Signed-off-by: Andre Heider <a.heider@gmail.com>
* treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16Andre Heider2023-04-08
| | | | | | | See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with PKG_BUILD_FLAGS:=no-mips16" on the main repository. Signed-off-by: Andre Heider <a.heider@gmail.com>
* openvswitch: bump to version 2.17.0Yousong Zhou2022-03-24
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: bump to 2.15.3Stijn Tintel2022-03-23
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: enable AUTORELEASEStijn Tintel2022-03-23
| | | | | | | Enable AUTORELEASE in a separate commit so that the next commit can be reverted without having to manually re-introduce it. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: partially restore kmod-mpls dependencyStijn Tintel2021-12-16
| | | | | | | | | | | | | Enabling OPENVSWITCH in the kernel config selects MPLS. This exposes the MPLS_ROUTING symbol, which is missing if kmod-mpls is not enabled. On kernel 5.4 this problem doesn't show up, as the Open vSwitch package uses the in-tree kernel modules rather than the upstream ones. Restore the kmod-mpls dependency when using the upstream kernel modules to fix build. Reported-by: Matthew Hagan <mnhagan88@gmail.com> Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: fix libunbound dependency checkMatthew Hagan2021-12-16
| | | | | | | | | | | The ifeq check for CONFIG_OPENVSWITCH_WITH_LIBUNBOUND does not evaluate correctly within the menuconfig, resulting in libunbound not being selected, resulting in a failing libunbound.so.8 dependency. Instead add this condition:dependency in the manner defined in the OpenWrt developer guide. Signed-off-by: Matthew Hagan <mathagan@fb.com>
* openvswitch: Change dependency from append to definitionMatthew Hagan2021-12-16
| | | | | | | | | | | | ovs_libovsdb_depends and ovs_libofproto_depends append the libatomic dependency. However in these cases these variables were not previously defined and thus a reader may search the Makefile for the definition. Therefore change the operator to explicitly define these dependency variables, rather than append. In addition add a space after operator to improve readability and conform to other dependency definitions in the Makefile. Signed-off-by: Matthew Hagan <mathagan@fb.com>
* openvswitch: merge dependency listsMatthew Hagan2021-12-16
| | | | | | | | Rather than defining dependencies, then appending the libatomic dependency on the following line, merge all into one definition. Simultaneously, sort by alphabetical order. Signed-off-by: Matthew Hagan <mathagan@fb.com>
* openvswitch: remove python-six dependencyAlexandru Ardelean2021-11-10
| | | | | | | | | | | | | | | | Python six was required to build the OVS Python libs during the time when they were supporting both Python 2 & 3. Python 3 is a minimum requirement for OVS Python's libs since commits: https://github.com/openvswitch/ovs/commit/1ca0323e7c29dc7ef5a615c265df0460208f92de https://github.com/openvswitch/ovs/commit/bd9052455092630e03485538a29f9f8d147c41ca and Six is no longer required since commit https://github.com/openvswitch/ovs/commit/0c4d144a989a444d038d58272d8571e97e00e86f The end-goal here is to get rid of the Python Six host-build. OVS is the only user. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* openvswitch: add option for failure modeStijn Tintel2021-09-23
| | | | | | | | | | | | | | | | When Open vSwitch is configured to use a controller, but is unable to connect to it, Open vSwitch will setup flows to allow all traffic, if the failure mode is not configured, or set to standalone. As this might be a security hazard, it is also possible to configure Open vSwitch in a secure failure mode. Enabling this mode causes Open vSwitch to drop all traffic if it is unable to connect to the controller. Redirect stderr of the command to /dev/null as it does not support the --if-exists option. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: fix build with libunboundStijn Tintel2021-09-23
| | | | | | | | | | | | | Due to a copy-paste error, libopenvswitch is missing a dependency when Open vSwitch is configured to use unbound: Package openvswitch-libopenvswitch is missing dependencies for the following libraries: libunbound.so.8 Use the correct config symbol to solve this. Fixes: 45c8cc9d8a7b ("openvswitch: make libunbound optional") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: add option for OpenFlow datapath descStijn Tintel2021-09-22
| | | | | | | | Add a UCI config option to set the OpenFlow datapath description. This allows setting a human readable description of the bridge, e.g. "Building x, Floor y, AP z", which makes it easier to recognize the AP. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: add SSL supportStijn Tintel2021-07-29
| | | | | | | | Open vSwitch supports SSL to connect to an OpenFlow controller. This is recommended for security. Expand the UCI ovs config section to allow configuring SSL CA, certificate and private key. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: support setting OpenFlow datapath IDStijn Tintel2021-07-29
| | | | | | | | | | | | | | | By default, Open vSwitch will generate the OpenFlow datapath ID of a bridge based on the MAC address of one of its ports. Due to this, it's possible that the datapath ID changes when new ports are added. When the datapath ID changes, Open vSwitch disconnects from the controller, as there is no way to notify the controller that the datapath ID has changed. Add an option to set the datapath ID so that the above situation can be avoided. The option takes either exactly 16 hex characters, or when prefixed with 0x, between 1 and 16 hex characters. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: check correct config symbolStijn Tintel2021-07-27
| | | | | | | | The config symbol is named CONFIG_OPENVSWITCH_WITH_LIBUNBOUND, so check for that instead of the non-existent CONFIG_OPENVSWITCH_WITH_UNBOUND. Fixes: 45c8cc9d8a7b ("openvswitch: make libunbound optional") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: make libunbound optionalStijn Tintel2021-07-26
| | | | | | | | | | Installing openvswitch on an x86/64 snapshot image pulls in a bunch of dependencies, good for a total size of 3648406 byte. Disabling libunbound reduces that with 559941 byte, for a total of 3088465 byte. This is quite a big reduction for a small tradeoff: without libunbound, hostnames can not be used to specify OpenFlow managers or controllers. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: allow complex port configurationsStijn Tintel2021-07-23
| | | | | | | | | The current way to add ports to an Open vSwitch bridge does not allow complex port configurations. Use a dedicated uci config section per port instead of the current port:type syntax. This way we can easily support more features like setting the VLAN tag or the OpenFlow port number. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* openvswitch: bump to version 2.15.0Yousong Zhou2021-02-24
| | | | | | | | | | | | | | Quote NEWS item > - Building the Linux kernel module from the OVS source tree is > deprecated > * Support for the Linux kernel is capped at version 5.8 > * Only bug fixes for the Linux OOT kernel module will be accepted. > * The Linux kernel module will be fully removed from the OVS source > tree > in OVS branch 2.18 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: use new extra_command function definitionFlorian Eckert2020-11-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* openvswitch: remove support for kernel 4.14 and 4.9Adrian Schmutzler2020-09-02
| | | | | | | | | Support for kernel 4.14 has been removed in main repo, so drop the dependencies here as well (and those for even older 4.9). Also drop a patch that is required only for 4.14 and lower. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* openvswitch: bump to version 2.14.0Yousong Zhou2020-08-25
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: bump to version 2.13.1Yousong Zhou2020-08-10
| | | | | | The two backported patches are included in 2.13.1 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: remove explicit dependency on librtYousong Zhou2020-07-30
| | | | | | Selection of librt will be handled by the build system Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: only libopenvswitch depends on libunbound, libunwindYousong Zhou2020-07-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to make explicit the conditional select of libunwind is only needed for libopenvswitch. If we spill it over other packages, the generated kconfig will have recursive dependency issue. 2 new patches were made for this goal The other thing is that "+libunwind" will cause it to be built if any of the packages defined in this Makefile is enabled (y or m). This is at the moment by-design of the build system. Libunwind does not support architectures like arc. Use conditional select To avoid (libunwind) build failures like the following, checking for ELF helper width... configure: error: Unknown ELF target: arc make[3]: *** [Makefile:65: /data/openwrt/build_dir/target-arc_arc700_uClibc/ libunwind-1.3.1/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1 Things like "+PACKAGE_openvswitch-libopenvswitch:libunwind" will also result in recursive deps error for chains of 3 nodes. Kconfig construct like the following will be made config A tristate select B depends on !(C) || (x) config B tristate select C config C tristate config x bool Other changes include - Shared use of variable ovs__common_depends was removed - Ovn doc build was patched out Link: https://github.com/openwrt/packages/pull/12959#issuecomment-665021413 Reported-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: rename shared var name ovs{,_}_common_dependsYousong Zhou2020-07-30
| | | | | | | To avoid conflict with package ovs_common_depends of package openvswitch-common Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: backport patch fixing build for 4.14.187Yousong Zhou2020-07-30
| | | | | | Supersedes openwrt/packages#12932 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: adds new UCI section ovs_bridgeSimon Kinane2020-07-28
| | | | | | | | | | This new config section in package openvswitch supports creating a named bridge, and setting its' OpenFlow controller end-point. An example config is included in /rom/etc/config/openvswitch Signed-off-by: Simon Kinane <skinane@fb.com>
* openvswitch: pass KERNEL_MAKE_FLAGS for reproducible buildYousong Zhou2020-05-27
| | | | | Reported-by: Paul Spooren <mail@aparcar.org> Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: rework disabling docs buildYousong Zhou2020-05-27
| | | | | | | | | This is needed since openvswitch 2.13 commit 2a97891eb23b ("Documentation: Work with sphinx-build for Python 3 also.") The 4th patch was also reworked to serve as another guard Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: fix file generation in /etc/modules.dYousong Zhou2020-05-20
| | | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Reported-by: Paul Spooren <mail@aparcar.org>
* treewide: add conffilesHuangbin Zhan2020-05-09
| | | | Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* treewide: Remove Python variants for non-Python packagesJeffery To2020-04-19
| | | | | | | | | | | This removes Python-related build variants, and adds PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate), for non-Python packages. There should be no changes to build output. This also updates some include paths for python3-package.mk and/or python3-host.mk to be relative to the package Makefile. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* openvswitch: depend on IPV6 for intree kmodsYousong Zhou2020-03-26
| | | | | Ref: https://github.com/openwrt/packages/issues/11665 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: unset CONFIG_AUTOREMOVEYousong Zhou2020-03-26
| | | | | | | Phase 2 buildbots with this option enabled will cleanup openvswitch build dir which is needed later when building ovn Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: openvswitch.mk: add ovs_common_depends variableYousong Zhou2020-03-24
| | | | | | | | This is to address the need that openvswitch starting with 2.13 now depends on libunwind for handling SIGSEGV (upstream commit e2ed6fbeb18 ("fatal-signal: Catch SIGSEGV and print backtrace")) Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: bump to version 2.13.0Yousong Zhou2020-03-23
| | | | | | | | | | | | | | | | | | python2 library is now removed as the transition has been done by the upstream project OVN is now a separate project released with its own release plan and it's not included within openvswitch starting with ovs 2.13. openvswitch.mk is split out from the main Makefile for adding ovn packages back in following commits. The following two patches are already included in 2.13 - ovsdb-idlc-fix-dict-change-during-iteration.patch - compat-Include-confirm_neigh-parameter-if-needed.patch Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: fix PIE build against 4.14 kernelYousong Zhou2020-03-16
| | | | | | Reported-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Ref: https://github.com/openwrt/packages/pull/11567
* openvswitch: bump PKG_RELEASEYousong Zhou2020-01-08
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: configure with --disable-silent-rulesYousong Zhou2020-01-08
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: backport patch to fix compilationJosef Schlehofer2019-10-25
| | | | Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* openvswitch: fix conditions for Linux 4.14Lech Perczak2019-09-29
| | | | | | | | | | | | Condition testing for Linux version 4.14 is spelled LINUX_4_14, not LINUX_4.14, so the checks were ineffective up to this change. This Fixes the following error which appeared after update to 2.12.0, when built against kernel 4.14: Package kmod-openvswitch-intree is missing dependencies for the following libraries: tunnel6.ko Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
* treewide: add PKG_CPE_ID for better cvescanner coverageJan Pavlinec2019-09-17
| | | | Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* openvswitch: bump to version 2.12.0Yousong Zhou2019-09-16
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: conditionally depends on nf_conncount.koYousong Zhou2019-07-01
| | | | | | | | | This is required for conntrack zone limit support. Linux upstream commit is 11efd5cb ("openvswitch: Support conntrack zone limit") Ref: https://github.com/openwrt/packages/issues/9274#issuecomment-507181166 Reported-by: Lech Perczak <lech.perczak@gmail.com> Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: bump to version 2.11.1Yousong Zhou2019-06-20
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* openvswitch: drop dependencies on kmod-mplsYousong Zhou2019-06-20
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>