]> git.proxmox.com Git - mirror_iproute2.git/commit
tipc: add link broadcast set method and ratio
authorHoang Le <hoang.h.le@dektech.com.au>
Fri, 22 Mar 2019 08:47:33 +0000 (15:47 +0700)
committerDavid Ahern <dsahern@gmail.com>
Tue, 26 Mar 2019 23:08:49 +0000 (16:08 -0700)
commit0ea46945bc930ad59533b3e0def08dc71e820cc3
tree32ae5489ed8ca3303f63850a2fb600bf3ec50d87
parentcdeb2674aabb2ace05d59516938933b36329ec86
tipc: add link broadcast set method and ratio

The command added here makes it possible to forcibly configure the
broadcast link to use either broadcast or replicast, in addition to
the already existing auto selection algorithm.

A sample usage is shown below:
$tipc link set broadcast BROADCAST
$tipc link set broadcast AUTOSELECT ratio 25

$tipc link set broadcast -h
Usage: tipc link set broadcast PROPERTY

PROPERTIES
 BROADCAST         - Forces all multicast traffic to be
                     transmitted via broadcast only,
                     irrespective of cluster size and number
                     of destinations

 REPLICAST         - Forces all multicast traffic to be
                     transmitted via replicast only,
                     irrespective of cluster size and number
                     of destinations

 AUTOSELECT        - Auto switching to broadcast or replicast
                     depending on cluster size and destination
                     node number

 ratio SIZE        - Set the AUTOSELECT criteria, percentage of
                     destination nodes vs cluster size

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David Ahern <dsahern@gmail.com>
tipc/link.c