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

Commit 1e8f4a47 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

mhi: devices: mhi_netdev: Print budget value for NAPI poll



Printing budget value with which NAPI poll is called helps
to identify if napi_complete() is getting called. Also reduce
the length of strings getting printed in the poll function.

Change-Id: Ic57bd0ce50dff3d3c874c7e0e2634c8351ff37cb
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent f74668f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ static int mhi_netdev_poll(struct napi_struct *napi, int budget)
	struct mhi_net_chain *chain = mhi_netdev->chain;
	int rx_work = 0;

	MSG_VERB("Entered\n");
	MSG_VERB("Entr:%d\n", budget);

	rx_work = mhi_poll(mhi_dev, budget);

@@ -501,7 +501,7 @@ static int mhi_netdev_poll(struct napi_struct *napi, int budget)
	if (rx_work < budget)
		napi_complete(napi);

	MSG_VERB("polled %d pkts\n", rx_work);
	MSG_VERB("polled %d\n", rx_work);

	return rx_work;
}