Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 096797ab authored by Kevin Fang's avatar Kevin Fang Committed by Kalle Valo
Browse files

ath6kl: assign Tx packet drop threshold per endpoint on htc pipe layer



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: default avatarKevin Fang <kevin.fang@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent f5f7ba25
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1378,6 +1378,9 @@ static int ath6kl_htc_pipe_conn_service(struct htc_target *target,
	/* copy all the callbacks */
	/* copy all the callbacks */
	ep->ep_cb = conn_req->ep_cb;
	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,
	status = ath6kl_hif_pipe_map_service(ar, ep->svc_id,
					     &ep->pipe.pipeid_ul,
					     &ep->pipe.pipeid_ul,
					     &ep->pipe.pipeid_dl);
					     &ep->pipe.pipeid_dl);