|
@@ -480,7 +480,7 @@ static rx_handler_result_t macvlan_handle_frame(struct sk_buff **pskb)
|
|
struct macvlan_dev, list);
|
|
struct macvlan_dev, list);
|
|
else
|
|
else
|
|
vlan = macvlan_hash_lookup(port, eth->h_dest);
|
|
vlan = macvlan_hash_lookup(port, eth->h_dest);
|
|
- if (vlan == NULL)
|
|
|
|
|
|
+ if (!vlan || vlan->mode == MACVLAN_MODE_SOURCE)
|
|
return RX_HANDLER_PASS;
|
|
return RX_HANDLER_PASS;
|
|
|
|
|
|
dev = vlan->dev;
|
|
dev = vlan->dev;
|