Skip to content

Commit 490d037

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 8a1fb4b commit 490d037

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
@@ -3925,9 +3925,9 @@ native_tunnel_output(struct xlate_ctx *ctx, const struct xport *xport,
39253925
"sending %s request",
39263926
buf_dip6, out_dev->xbridge->name, d_ip ? "ARP" : "ND");
39273927

3928-
err = ovs_router_get_netdev_source_address(&d_ip6,
3929-
out_dev->xbridge->name,
3930-
&nh_s_ip6);
3928+
err = ovs_router_get_netdev_source_address(
3929+
&d_ip6, netdev_get_name(out_dev->netdev), &nh_s_ip6);
3930+
39313931
if (err) {
39323932
nh_s_ip6 = s_ip6;
39333933
}

0 commit comments

Comments
 (0)