From: Serguei Smirnov Date: Wed, 23 Jun 2021 22:51:21 +0000 (-0700) Subject: LU-14662 lnet: set eth routes needed for multi rail X-Git-Tag: 2.14.56~73 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c9bfe57bd2495671fa66eb7e52184f76e1f4a6eb;hp=c9bfe57bd2495671fa66eb7e52184f76e1f4a6eb LU-14662 lnet: set eth routes needed for multi rail When ksocklnd is initialized or new ethernet interfaces are added via lnetctl, set the routing rules using a common shell script ksocklnd-config. This ensures control over source interface when sending traffic. For example, for eth0 with ip 192.168.122.142/24: the output of "ip route show table eth0" should be 192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.142 This step can be omitted by specifying options ksocklnd skip_mr_route_setup=1 in the conf file, or by using switch --skip-mr-route-setup when adding NI with lnetctl. Note that the module parameter takes priority over the lnetctl switch: if skip-mr-route-setup is not specified when adding NI with lnetctl, the route still won't get created if the conf file has skip_mr_route_setup=1. The route also won't be created if any route already exists for the given interface, assuming advanced users who manage routing on their own will want to continue doing so. Test-Parameters: trivial Signed-off-by: Serguei Smirnov Change-Id: Ia14e637bd29d4bbce5dd93daad9992336b2e6b15 Reviewed-on: https://review.whamcloud.com/44065 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Amir Shehata Reviewed-by: Cyril Bordage Reviewed-by: Oleg Drokin ---