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

Commit b4a0d6f7 authored by Amir Levy's avatar Amir Levy
Browse files

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: default avatarTal Gelbard <tgelbard@qti.qualcomm.com>
Change-Id: I5c6cb3e08c29c4b79cdcbc9e4d3acb485156a607
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent 7db9be17
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -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;
};

/*