Revert "net: vrf: determine the dst using the original ifindex for multicast"

This reverts commit f3d653f03e.
This commit is contained in:
Ksawlii 2024-11-24 00:22:54 +01:00
parent 810bfe7bd4
commit 5aac9be1db

View file

@ -1336,8 +1336,8 @@ static struct sk_buff *vrf_ip6_rcv(struct net_device *vrf_dev,
/* loopback, multicast & non-ND link-local traffic; do not push through
* packet taps again. Reset pkt_type for upper layers to process skb.
* For non-loopback strict packets, determine the dst using the original
* ifindex.
* For strict packets with a source LLA, determine the dst using the
* original ifindex.
*/
if (skb->pkt_type == PACKET_LOOPBACK || (need_strict && !is_ndisc)) {
skb->dev = vrf_dev;
@ -1346,7 +1346,7 @@ static struct sk_buff *vrf_ip6_rcv(struct net_device *vrf_dev,
if (skb->pkt_type == PACKET_LOOPBACK)
skb->pkt_type = PACKET_HOST;
else
else if (ipv6_addr_type(&ipv6_hdr(skb)->saddr) & IPV6_ADDR_LINKLOCAL)
vrf_ip6_input_dst(skb, vrf_dev, orig_iif);
goto out;