forked from multipath-tcp/mptcpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support only one kernel at run-time, (multipath-tcp#156)
Support only one MPTCP capable kernel at run-time, either the upstream or multipath-tcp.org kernel but not both. This simplifies the kernel support in mptcpd, and further prepares mptcpd to support the upcoming user space MPTCP path management commands in the upstream kernel. * src: Add user space PM command stubs for upstream. * configure: Add '--with-kernel' option. Allow the user to choose build-time support for either the upstream or multipath-tcp.org kernel, e.g.: ./configure --with-kernel=multipath-tcp.org Valid kernel options are "upstream" or "multipath-tcp.org", with the former being the default. Mptcpd will no longer support both kernels at run-time. * github: Add multipath-tcp.org kernel build.
- Loading branch information
Ossama Othman
authored
Jan 11, 2022
1 parent
31e9646
commit 567afaa
Showing
13 changed files
with
339 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: multipath-tcp.org kernel | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: dependencies | ||
run: sudo apt-get -y install autoconf-archive git | ||
- name: build and install ELL | ||
run: | | ||
git clone git://git.kernel.org/pub/scm/libs/ell/ell.git | ||
cd ell | ||
git checkout 0.30 | ||
./bootstrap | ||
./configure --prefix=/usr | ||
sudo make install | ||
- name: bootstrap | ||
run: ./bootstrap | ||
- name: configure | ||
run: ./configure --with-kernel=multipath-tcp.org | ||
- name: make | ||
run: make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
# Copyright (c) 2021, Intel Corporation | ||
|
||
#serial 1 | ||
|
||
# MPTCPD_IF_UPSTREAM_KERNEL([ACTION-IF-TRUE], [ACTION-IF-FALSE]) | ||
# | ||
# Check if the <linux/mptcp.h> header for the upstream kernel is | ||
# available in the system include path. | ||
AC_DEFUN([MPTCPD_IF_UPSTREAM_KERNEL], | ||
[ | ||
AC_CACHE_CHECK([for MPTCP_PM_CMD_ANNOUNCE in linux/mptcp.h], | ||
[mptcpd_cv_header_upstream], | ||
[ | ||
AC_COMPILE_IFELSE([ | ||
AC_LANG_SOURCE([ | ||
#include <linux/mptcp.h> | ||
int announce_cmd(void) { return MPTCP_PM_CMD_ANNOUNCE; } | ||
]) | ||
], | ||
[mptcpd_cv_header_upstream=yes], | ||
[mptcpd_cv_header_upstream=no]) | ||
]) | ||
AS_IF([test "x$mptcpd_cv_header_upstream" = xyes], [$1], [$2]) | ||
]) | ||
|
||
# MPTCPD_IF_MPTCP_ORG_KERNEL([ACTION-IF-TRUE], [ACTION-IF-FALSE]) | ||
# | ||
# Check if the <linux/mptcp.h> header for the multipath-tcp.org kernel | ||
# is available in the system include path. | ||
AC_DEFUN([MPTCPD_IF_MPTCP_ORG_KERNEL], | ||
[ | ||
AX_CHECK_DEFINE([linux/mptcp.h], [MPTCP_GENL_NAME], [$1], [$2]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.