Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 2 | menuconfig NET_TEAM |
Kees Cook | 513fe16 | 2012-10-02 11:18:27 -0700 | [diff] [blame] | 3 | tristate "Ethernet team driver support" |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 4 | help |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 5 | This allows one to create virtual interfaces that teams together |
| 6 | multiple ethernet devices. |
| 7 | |
| 8 | Team devices can be added using the "ip" command from the |
| 9 | iproute2 package: |
| 10 | |
| 11 | "ip link add link [ address MAC ] [ NAME ] type team" |
| 12 | |
| 13 | To compile this driver as a module, choose M here: the module |
| 14 | will be called team. |
| 15 | |
| 16 | if NET_TEAM |
| 17 | |
Jiri Pirko | 5fc8899 | 2012-07-11 05:34:03 +0000 | [diff] [blame] | 18 | config NET_TEAM_MODE_BROADCAST |
| 19 | tristate "Broadcast mode support" |
| 20 | depends on NET_TEAM |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 21 | help |
Jiri Pirko | 5fc8899 | 2012-07-11 05:34:03 +0000 | [diff] [blame] | 22 | Basic mode where packets are transmitted always by all suitable ports. |
| 23 | |
Jiri Pirko | 1d76efe | 2012-08-17 04:00:48 +0000 | [diff] [blame] | 24 | All added ports are setup to have team's device address. |
Jiri Pirko | 5fc8899 | 2012-07-11 05:34:03 +0000 | [diff] [blame] | 25 | |
| 26 | To compile this team mode as a module, choose M here: the module |
| 27 | will be called team_mode_broadcast. |
| 28 | |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 29 | config NET_TEAM_MODE_ROUNDROBIN |
| 30 | tristate "Round-robin mode support" |
| 31 | depends on NET_TEAM |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 32 | help |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 33 | Basic mode where port used for transmitting packets is selected in |
| 34 | round-robin fashion using packet counter. |
| 35 | |
Jiri Pirko | 1d76efe | 2012-08-17 04:00:48 +0000 | [diff] [blame] | 36 | All added ports are setup to have team's device address. |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 37 | |
| 38 | To compile this team mode as a module, choose M here: the module |
| 39 | will be called team_mode_roundrobin. |
| 40 | |
Jiri Pirko | 753f993 | 2013-03-06 01:31:13 +0000 | [diff] [blame] | 41 | config NET_TEAM_MODE_RANDOM |
| 42 | tristate "Random mode support" |
| 43 | depends on NET_TEAM |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 44 | help |
Jiri Pirko | 753f993 | 2013-03-06 01:31:13 +0000 | [diff] [blame] | 45 | Basic mode where port used for transmitting packets is selected |
| 46 | randomly. |
| 47 | |
| 48 | All added ports are setup to have team's device address. |
| 49 | |
| 50 | To compile this team mode as a module, choose M here: the module |
| 51 | will be called team_mode_random. |
| 52 | |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 53 | config NET_TEAM_MODE_ACTIVEBACKUP |
| 54 | tristate "Active-backup mode support" |
| 55 | depends on NET_TEAM |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 56 | help |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 57 | Only one port is active at a time and the rest of ports are used |
| 58 | for backup. |
| 59 | |
| 60 | Mac addresses of ports are not modified. Userspace is responsible |
| 61 | to do so. |
| 62 | |
| 63 | To compile this team mode as a module, choose M here: the module |
| 64 | will be called team_mode_activebackup. |
| 65 | |
Jiri Pirko | 01d7f30 | 2012-04-04 12:16:27 +0000 | [diff] [blame] | 66 | config NET_TEAM_MODE_LOADBALANCE |
| 67 | tristate "Load-balance mode support" |
| 68 | depends on NET_TEAM |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 69 | help |
Jiri Pirko | 01d7f30 | 2012-04-04 12:16:27 +0000 | [diff] [blame] | 70 | This mode provides load balancing functionality. Tx port selection |
| 71 | is done using BPF function set up from userspace (bpf_hash_func |
| 72 | option) |
| 73 | |
| 74 | To compile this team mode as a module, choose M here: the module |
| 75 | will be called team_mode_loadbalance. |
| 76 | |
Jiri Pirko | 3d249d4 | 2011-11-11 22:16:48 +0000 | [diff] [blame] | 77 | endif # NET_TEAM |