Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203780
b: refs/heads/master
c: ba01877
h: refs/heads/master
v: v3
  • Loading branch information
Sridhar Samudrala authored and David S. Miller committed Jul 28, 2010
1 parent d8a4f07 commit 043eb9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb7e95c8fd859922c6cf3ebbb3a8546007df1748
refs/heads/master: ba01877f56c3244b21746d3f1537f7647ed97984
11 changes: 7 additions & 4 deletions trunk/drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ static struct sk_buff *macvlan_handle_frame(struct sk_buff *skb)
const struct macvlan_dev *vlan;
const struct macvlan_dev *src;
struct net_device *dev;
unsigned int len;
unsigned int len = 0;
int ret = NET_RX_DROP;

port = macvlan_port_get_rcu(skb->dev);
if (is_multicast_ether_addr(eth->h_dest)) {
Expand Down Expand Up @@ -195,14 +196,16 @@ static struct sk_buff *macvlan_handle_frame(struct sk_buff *skb)
}
len = skb->len + ETH_HLEN;
skb = skb_share_check(skb, GFP_ATOMIC);
macvlan_count_rx(vlan, len, skb != NULL, 0);
if (!skb)
return NULL;
goto out;

skb->dev = dev;
skb->pkt_type = PACKET_HOST;

vlan->receive(skb);
ret = vlan->receive(skb);

out:
macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, 0);
return NULL;
}

Expand Down

0 comments on commit 043eb9c

Please sign in to comment.