]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: rework how HOL_BLOCK handling is specified
authorAlex Elder <elder@linaro.org>
Wed, 24 Nov 2021 20:25:07 +0000 (14:25 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:37:34 +0000 (19:37 -0800)
commitecd37ffb0113b1476242a8199c55a17eb6e5c657
tree020ebcaefd996db198d8021c8af8baee411f5668
parent7e74abb11d91511ae4889a448b4746e76ec7eb24
net: ipa: rework how HOL_BLOCK handling is specified

The head-of-line block (HOLB) drop timer is only meaningful when
dropping packets due to blocking is enabled.  Given that, redefine
the interface so the timer is specified when enabling HOLB drop, and
use a different function when disabling.

To enable and disable HOLB drop, these functions will now be used:
  ipa_endpoint_init_hol_block_enable(endpoint, milliseconds)
  ipa_endpoint_init_hol_block_disable(endpoint)

The existing ipa_endpoint_init_hol_block_enable() becomes a helper
function, renamed ipa_endpoint_init_hol_block_en(), and used with
ipa_endpoint_init_hol_block_timer() to enable HOLB block on an
endpoint.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c