ath6kl: assign Tx packet drop threshold per endpoint on htc pipe layer
authorKevin Fang <chienf@qca.qualcomm.com>
Fri, 27 Apr 2012 01:18:02 +0000 (09:18 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 27 Apr 2012 06:50:00 +0000 (09:50 +0300)
On the htc mbox layer, it will assign each endpoint (AC) with a
different Tx-packet-drop threshold, so lower priority AC is more
likely to drop packets and the cookies become more available to higher
priority AC.

On the htc pipe layer, assign the tx packet drop threshold as well, it
will let AC to drop packets when cookies below the tx packet drop
threshold.

Signed-off-by: Kevin Fang <kevin.fang@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/htc_pipe.c

index b21a69fb7f0f3c3053dace5bd2699f8494238b64..f9626c723693ca84e7c3efbaccd0fa47de49916b 100644 (file)
@@ -1378,6 +1378,9 @@ static int ath6kl_htc_pipe_conn_service(struct htc_target *target,
        /* copy all the callbacks */
        ep->ep_cb = conn_req->ep_cb;
 
+       /* initialize tx_drop_packet_threshold */
+       ep->tx_drop_packet_threshold = MAX_HI_COOKIE_NUM;
+
        status = ath6kl_hif_pipe_map_service(ar, ep->svc_id,
                                             &ep->pipe.pipeid_ul,
                                             &ep->pipe.pipeid_dl);