Skip to content

Commit 04c8708

Browse files
committed
ofproto-dpif-xlate: Fix source IP lookup for non-bridge ports.
The commit "userspace: Enable non-bridge port as tunnel endpoint" did not account for the ovs_router_get_netdev_source_address() call. This patch ensures that the fix from "ofproto-dpif-xlate: Fix netdev native tunnel neighbor discovery" remains functional by properly calling the function with the output devices. Fixes: dc0bd12 ("userspace: Enable non-bridge port as tunnel endpoint.") Acked-by: Simon Horman <[email protected]> Signed-off-by: Eelco Chaudron <[email protected]>
1 parent 487c1bb commit 04c8708

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ofproto/ofproto-dpif-xlate.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3814,9 +3814,9 @@ native_tunnel_output(struct xlate_ctx *ctx, const struct xport *xport,
38143814
"sending %s request",
38153815
buf_dip6, out_dev->xbridge->name, d_ip ? "ARP" : "ND");
38163816

3817-
err = ovs_router_get_netdev_source_address(&d_ip6,
3818-
out_dev->xbridge->name,
3819-
&nh_s_ip6);
3817+
err = ovs_router_get_netdev_source_address(
3818+
&d_ip6, netdev_get_name(out_dev->netdev), &nh_s_ip6);
3819+
38203820
if (err) {
38213821
nh_s_ip6 = s_ip6;
38223822
}

0 commit comments

Comments
 (0)