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

Commit 06fa7d94 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Added an option to enable NAPI in 11ad"

parents ac332c0b e99481e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ static void wil_ipa_rx(struct wil_ipa *ipa, struct sk_buff *skb)

	stats = &wil->sta[cid].stats;

	wil_netif_rx(skb, ndev, cid, stats, false);
	wil_netif_rx(skb, ndev, cid, stats, ipa->lan_rx_napi);

	return;

@@ -901,6 +901,7 @@ static int wil_ipa_wigig_init(struct wil_ipa *ipa)
	}

	ipa->uc_db_pa = out.uc_db_pa;
	ipa->lan_rx_napi = out.lan_rx_napi_enable;

	return 0;

+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ struct wil_ipa {
	struct wil_ipa_rx_buf rx_buf; /* contiguous memory split into rx bufs */
	struct msi_msg orig_msi_msg;
	atomic_t outstanding_pkts;
	u8 lan_rx_napi;
};

static inline bool wil_ipa_offload(void) {return ipa_offload; }
+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;
};

/*