caif: performance bugfix - allow radio stack to prioritize packets.

In the CAIF Payload message the Packet Type indication must be set to
UNCLASSIFIED in order to allow packet prioritization in the modem's
network stack. Otherwise TCP-Ack is not prioritized in the modems
transmit queue.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sjur Brændeland and committed by
David S. Miller
4a9f65f6 0c184ed9

+5 -1
+5 -1
net/caif/cfdgml.c
··· 13 13 #include <net/caif/cfsrvl.h> 14 14 #include <net/caif/cfpkt.h> 15 15 16 + 16 17 #define container_obj(layr) ((struct cfsrvl *) layr) 17 18 18 19 #define DGM_CMD_BIT 0x80 ··· 84 83 85 84 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) 86 85 { 86 + u8 packet_type; 87 87 u32 zero = 0; 88 88 struct caif_payload_info *info; 89 89 struct cfsrvl *service = container_obj(layr); ··· 96 94 if (cfpkt_getlen(pkt) > DGM_MTU) 97 95 return -EMSGSIZE; 98 96 99 - cfpkt_add_head(pkt, &zero, 4); 97 + cfpkt_add_head(pkt, &zero, 3); 98 + packet_type = 0x08; /* B9 set - UNCLASSIFIED */ 99 + cfpkt_add_head(pkt, &packet_type, 1); 100 100 101 101 /* Add info for MUX-layer to route the packet out. */ 102 102 info = cfpkt_info(pkt);