Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265511
b: refs/heads/master
c: 7ae9ed8
h: refs/heads/master
i:
  265509: 21edc24
  265507: 82b8055
  265503: 98dc042
v: v3
  • Loading branch information
David S. Miller committed Aug 22, 2011
1 parent 88372dd commit 3c75a33
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 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: b38d355eaa223e420d0c45ff7a3279ea811552c5
refs/heads/master: 7ae9ed8d3221c9f7dd4bc2773ff58797487d5ed8
14 changes: 7 additions & 7 deletions trunk/drivers/net/wan/hdlc_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,37 +515,37 @@ static int ppp_rx(struct sk_buff *skb)
switch (cp->code) {
case CP_CONF_REQ:
ppp_cp_parse_cr(dev, pid, cp->id, len, skb->data);
goto out;
break;

case CP_CONF_ACK:
if (cp->id == proto->cr_id)
ppp_cp_event(dev, pid, RCA, 0, 0, 0, NULL);
goto out;
break;

case CP_CONF_REJ:
case CP_CONF_NAK:
if (cp->id == proto->cr_id)
ppp_cp_event(dev, pid, RCN, 0, 0, 0, NULL);
goto out;
break;

case CP_TERM_REQ:
ppp_cp_event(dev, pid, RTR, 0, cp->id, 0, NULL);
goto out;
break;

case CP_TERM_ACK:
ppp_cp_event(dev, pid, RTA, 0, 0, 0, NULL);
goto out;
break;

case CP_CODE_REJ:
ppp_cp_event(dev, pid, RXJ_BAD, 0, 0, 0, NULL);
goto out;
break;

default:
len += sizeof(struct cp_header);
if (len > dev->mtu)
len = dev->mtu;
ppp_cp_event(dev, pid, RUC, 0, 0, len, cp);
goto out;
break;
}
goto out;

Expand Down
7 changes: 3 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3236,10 +3236,9 @@ static int __netif_receive_skb(struct sk_buff *skb)
ret = deliver_skb(skb, pt_prev, orig_dev);
pt_prev = NULL;
}
if (vlan_do_receive(&skb)) {
ret = __netif_receive_skb(skb);
goto out;
} else if (unlikely(!skb))
if (vlan_do_receive(&skb))
goto another_round;
else if (unlikely(!skb))
goto out;
}

Expand Down

0 comments on commit 3c75a33

Please sign in to comment.