net: ipa: replenish after delivering payload
Replenishing is now solely driven by whether transactions are available for a channel, and it doesn't really matter whether we replenish before or after we deliver received packets to the network stack. Replenishing before delivering the payload adds a little latency. Eliminate that by requesting a replenish after the payload is delivered. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
09b337deda
Коммит
5d6ac24fb1
|
@ -1341,10 +1341,8 @@ static void ipa_endpoint_rx_complete(struct ipa_endpoint *endpoint,
|
|||
{
|
||||
struct page *page;
|
||||
|
||||
ipa_endpoint_replenish(endpoint);
|
||||
|
||||
if (trans->cancelled)
|
||||
return;
|
||||
goto done;
|
||||
|
||||
/* Parse or build a socket buffer using the actual received length */
|
||||
page = trans->data;
|
||||
|
@ -1352,6 +1350,8 @@ static void ipa_endpoint_rx_complete(struct ipa_endpoint *endpoint,
|
|||
ipa_endpoint_status_parse(endpoint, page, trans->len);
|
||||
else if (ipa_endpoint_skb_build(endpoint, page, trans->len))
|
||||
trans->data = NULL; /* Pages have been consumed */
|
||||
done:
|
||||
ipa_endpoint_replenish(endpoint);
|
||||
}
|
||||
|
||||
void ipa_endpoint_trans_complete(struct ipa_endpoint *endpoint,
|
||||
|
|
Загрузка…
Ссылка в новой задаче