caif: set traffic class for caif packets
authorDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
Thu, 12 Apr 2012 08:27:24 +0000 (08:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 15:37:36 +0000 (11:37 -0400)
commit447648128ec22e294604674ffe1064aa3ec3b767
tree1dfb671203f989a8612704674bbe59c78cf27109
parente65ac4d54546b7d7514a9e8be1484c758f2b7ba3
caif: set traffic class for caif packets

Set traffic class for CAIF packets, based on socket
priority, CAIF protocol type, or type of message.

Traffic class mapping for different packet types:
 - control:       TC_PRIO_CONTROL;
 - flow control:  TC_PRIO_CONTROL;
 - at:            TC_PRIO_CONTROL;
 - rfm:           TC_PRIO_INTERACTIVE_BULK;
 - other sockets: equals to socket's TC;
 - network data:  no change.

Signed-off-by: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/caif/cfpkt.h
net/caif/caif_socket.c
net/caif/cfctrl.c
net/caif/cfpkt_skbuff.c
net/caif/cfsrvl.c