Skip to content

Commit 72bd7cb

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 34507f9 commit 72bd7cb

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

3813-
err = ovs_router_get_netdev_source_address(&d_ip6,
3814-
out_dev->xbridge->name,
3815-
&nh_s_ip6);
3813+
err = ovs_router_get_netdev_source_address(
3814+
&d_ip6, netdev_get_name(out_dev->netdev), &nh_s_ip6);
3815+
38163816
if (err) {
38173817
nh_s_ip6 = s_ip6;
38183818
}

0 commit comments

Comments
 (0)