Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184565
b: refs/heads/master
c: 6088a53
h: refs/heads/master
i:
  184563: d5c3fd6
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Feb 28, 2010
1 parent 0903469 commit 2475495
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: b33084be192ee1e347d98bb5c9e38a53d98d35e2
refs/heads/master: 6088a539d8d1666dca6979b5759bf966ee9124ef
2 changes: 2 additions & 0 deletions trunk/net/bridge/br_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)
const unsigned char *dest = skb->data;
struct net_bridge_fdb_entry *dst;

BR_INPUT_SKB_CB(skb)->brdev = dev;

dev->stats.tx_packets++;
dev->stats.tx_bytes += skb->len;

Expand Down
5 changes: 3 additions & 2 deletions trunk/net/bridge/br_forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static void br_flood(struct net_bridge *br, struct sk_buff *skb,
{
struct net_bridge_port *p;
struct net_bridge_port *prev;
struct net_device *dev = BR_INPUT_SKB_CB(skb)->brdev;

prev = NULL;

Expand All @@ -120,7 +121,7 @@ static void br_flood(struct net_bridge *br, struct sk_buff *skb,
struct sk_buff *skb2;

if ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL) {
br->dev->stats.tx_dropped++;
dev->stats.tx_dropped++;
goto out;
}

Expand All @@ -137,7 +138,7 @@ static void br_flood(struct net_bridge *br, struct sk_buff *skb,
if (skb0) {
skb = skb_clone(skb, GFP_ATOMIC);
if (!skb) {
br->dev->stats.tx_dropped++;
dev->stats.tx_dropped++;
goto out;
}
}
Expand Down

0 comments on commit 2475495

Please sign in to comment.