Skip to content

Commit 918150c

Browse files
Mahesh Bandewardavem330
authored andcommitted
Revert "ipvlan: add L2 check for packets arriving via virtual devices"
This reverts commit 92ff426. Even though the check added is not that taxing, it's not really needed. First of all this will be per packet cost and second thing is that the eth_type_trans() already does this correctly. The excessive scrubbing in IPvlan was changing the pkt-type skb metadata of the packet which made it necessary to re-check the mac. The subsequent patch in this series removes the faulty packet-scrub. Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8ce38ae commit 918150c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/net/ipvlan/ipvlan_core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,6 @@ static int ipvlan_rcv_frame(struct ipvl_addr *addr, struct sk_buff **pskb,
322322
if (dev_forward_skb(ipvlan->dev, skb) == NET_RX_SUCCESS)
323323
success = true;
324324
} else {
325-
if (!ether_addr_equal_64bits(eth_hdr(skb)->h_dest,
326-
ipvlan->phy_dev->dev_addr))
327-
skb->pkt_type = PACKET_OTHERHOST;
328-
329325
ret = RX_HANDLER_ANOTHER;
330326
success = true;
331327
}

0 commit comments

Comments
 (0)