diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2010-01-04 02:02:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-07 00:24:54 -0800 |
commit | fc6a110754476362f9f4fa3199a637f2331c5993 (patch) | |
tree | 2b1457da4758751121ec396767e200dc2a28c2ed /net/phonet/pep.c | |
parent | f6de7acc42de909ccc7f00916ddb4d2064f42b67 (diff) |
Phonet: zero-copy aligned GPRS RX
Newer Nokia cellular modems can use aligned payload for their GPRS pipe.
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/pep.c')
-rw-r--r-- | net/phonet/pep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/phonet/pep.c b/net/phonet/pep.c index b6356f3832f..e23e30907d3 100644 --- a/net/phonet/pep.c +++ b/net/phonet/pep.c @@ -354,6 +354,9 @@ static int pipe_do_rcv(struct sock *sk, struct sk_buff *skb) queue = &pn->ctrlreq_queue; goto queue; + case PNS_PIPE_ALIGNED_DATA: + __skb_pull(skb, 1); + /* fall through */ case PNS_PIPE_DATA: __skb_pull(skb, 3); /* Pipe data header */ if (!pn_flow_safe(pn->rx_fc)) { |