mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
msm: ipa: Added an option to enable NAPI in 11ad
Added a flag in the 11ad driver to indicate if NAPI is enabled in the LAN RX Datapath. In case the flag is true the 11ad driver will now use napi_gro_receive instead of netif_rx_ni, meaning the GRO feature is also enabled with this change. Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com> Change-Id: I5c6cb3e08c29c4b79cdcbc9e4d3acb485156a607 Signed-off-by: Amir Levy <alevy@codeaurora.org>
This commit is contained in:
parent
7db9be171f
commit
b4a0d6f786
2 changed files with 6 additions and 0 deletions
|
|
@ -173,6 +173,10 @@ int ipa_wigig_init(struct ipa_wigig_init_in_params *in,
|
|||
|
||||
out->is_uc_ready = inout.is_uC_ready;
|
||||
|
||||
out->lan_rx_napi_enable = ipa_get_lan_rx_napi();
|
||||
IPA_WIGIG_DBG("LAN RX NAPI enabled = %s\n",
|
||||
out->lan_rx_napi_enable ? "True" : "False");
|
||||
|
||||
IPA_WIGIG_DBG("exit\n");
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -39,10 +39,12 @@ struct ipa_wigig_init_in_params {
|
|||
*
|
||||
* @is_uC_ready: is uC ready. No API should be called until uC is ready.
|
||||
* @uc_db_pa: physical address of IPA uC doorbell
|
||||
* @lan_rx_napi_enable: if we use NAPI in the LAN rx
|
||||
*/
|
||||
struct ipa_wigig_init_out_params {
|
||||
bool is_uc_ready;
|
||||
phys_addr_t uc_db_pa;
|
||||
bool lan_rx_napi_enable;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue