diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2011-11-21 11:25:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-22 22:15:42 +0100 |
commit | 4e55f5785825f18b1eb6c5cc5a9717e276925805 (patch) | |
tree | 31a7c44400e598e82e1de0a7326952d00b28767d /net/atm/pppoatm.c | |
parent | atm: clip: move clip_devs check to clip_push (diff) | |
download | linux-4e55f5785825f18b1eb6c5cc5a9717e276925805.tar.xz linux-4e55f5785825f18b1eb6c5cc5a9717e276925805.zip |
atm: Introduce vcc_process_recv_queue
This function moves the implementation found in the clip and br2684
modules to common code, correctly unlinks the skb from the queue
before pushing it and makes pppoatm use it.
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/pppoatm.c')
-rw-r--r-- | net/atm/pppoatm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/atm/pppoatm.c b/net/atm/pppoatm.c index db4a11c61d15..df35d9a3b5fe 100644 --- a/net/atm/pppoatm.c +++ b/net/atm/pppoatm.c @@ -303,6 +303,10 @@ static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) atmvcc->push = pppoatm_push; atmvcc->pop = pppoatm_pop; __module_get(THIS_MODULE); + + /* re-process everything received between connection setup and + backend setup */ + vcc_process_recv_queue(atmvcc); return 0; } |