team: introduce random mode
As suggested by Eric Dumazet, allow user to select mode which chooses TX port randomly. Functionality should be more of less similar to round-robin mode with even lower overhead. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
acbba0d0f8
commit
753f993911
@@ -37,6 +37,18 @@ config NET_TEAM_MODE_ROUNDROBIN
|
||||
To compile this team mode as a module, choose M here: the module
|
||||
will be called team_mode_roundrobin.
|
||||
|
||||
config NET_TEAM_MODE_RANDOM
|
||||
tristate "Random mode support"
|
||||
depends on NET_TEAM
|
||||
---help---
|
||||
Basic mode where port used for transmitting packets is selected
|
||||
randomly.
|
||||
|
||||
All added ports are setup to have team's device address.
|
||||
|
||||
To compile this team mode as a module, choose M here: the module
|
||||
will be called team_mode_random.
|
||||
|
||||
config NET_TEAM_MODE_ACTIVEBACKUP
|
||||
tristate "Active-backup mode support"
|
||||
depends on NET_TEAM
|
||||
|
Reference in New Issue
Block a user