Skip to content

Commit 8d772a2

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 c174d5e commit 8d772a2

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

3860-
err = ovs_router_get_netdev_source_address(&d_ip6,
3861-
out_dev->xbridge->name,
3862-
&nh_s_ip6);
3860+
err = ovs_router_get_netdev_source_address(
3861+
&d_ip6, netdev_get_name(out_dev->netdev), &nh_s_ip6);
3862+
38633863
if (err) {
38643864
nh_s_ip6 = s_ip6;
38653865
}

0 commit comments

Comments
 (0)