af_iucv: change net_device handling for HS transport
authorUrsula Braun <ursula.braun@de.ibm.com>
Wed, 8 Feb 2012 00:19:47 +0000 (00:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2012 23:50:19 +0000 (18:50 -0500)
commit800c5eb7b5eba6cb2a32738d763fd59f0fbcdde4
tree870a32bb186b395c7e70da55a1d1b17e37342336
parent7f1b0ea42a800713a3d56e1e8ca1a845e0461ca2
af_iucv: change net_device handling for HS transport

This patch saves the net_device in the iucv_sock structure during
bind in order to fasten skb sending.
In addition some other small improvements are made for HS transport:
   - error checking when sending skbs
   - locking changes in afiucv_hs_callback_txnotify
   - skb freeing in afiucv_hs_callback_txnotify
And finally it contains code cleanup to get rid of iucv_skb_queue_purge.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/iucv/af_iucv.h
net/iucv/af_iucv.c