From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Kirsher Subject: Re: [PATCH net] ixgbe: check return value of napi_complete_done() Date: Thu, 20 Sep 2018 14:01:37 -0700 Message-ID: <2ca0e823642d232092017f66e8151652e22e74a1.camel@intel.com> References: <20180920190113.490005-1-songliubraving@fb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-chIYJbtTU7pEpbbFIwgU" Cc: intel-wired-lan@lists.osuosl.org, kernel-team@fb.com, stable@vger.kernel.org To: Eric Dumazet , Song Liu , netdev@vger.kernel.org Return-path: Received: from mga11.intel.com ([192.55.52.93]:22490 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726582AbeIUCrC (ORCPT ); Thu, 20 Sep 2018 22:47:02 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: --=-chIYJbtTU7pEpbbFIwgU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2018-09-20 at 13:35 -0700, Eric Dumazet wrote: > On 09/20/2018 12:01 PM, Song Liu wrote: > > The NIC driver should only enable interrupts when napi_complete_done() > > returns true. This patch adds the check for ixgbe. > >=20 > > Cc: stable@vger.kernel.org # 4.10+ > > Cc: Jeff Kirsher > > Suggested-by: Eric Dumazet > > Signed-off-by: Song Liu > > --- >=20 >=20 > Well, unfortunately we do not know why this is needed, > this is why I have not yet sent this patch formally. >=20 > netpoll has correct synchronization : >=20 > poll_napi() places into napi->poll_owner current cpu number before > calling poll_one_napi() >=20 > netpoll_poll_lock() does also use napi->poll_owner >=20 > When netpoll calls ixgbe poll() method, it passed a budget of 0, > meaning napi_complete_done() is not called. >=20 > As long as we can not explain the problem properly in the changelog, > we should investigate, otherwise we will probably see coming dozens of > patches > trying to fix a 'potential hazard'. Agreed, which is why I have our validation and developers looking into it, while we test the current patch from Song. --=-chIYJbtTU7pEpbbFIwgU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEiTyZWz+nnTrOJ1LZ5W/vlVpL7c4FAlukCrIACgkQ5W/vlVpL 7c4urQ//eSikQjrA9IorvhfilxJXKXBi6it7+LrXkbBmpCDbSaKcu86XQUkuiF3a sShgL8FA5m4+ew8dSFm/4pGjVCgxbdQg67kbWV8gd+dcbedf+75a4jFHDd8Lk2Ho 01PZBKnOrtxOvSwAhPRzMOKkBV7fn6CgNTWHgUOPqYPPHRF2NcE+E4rGhZ3Sq/mc +GqSI/amBHlIWcsAEoa6jJ06KW0TEzKRuVZ455D3rRJcrrDDVypvo+HvMkk5QSnB +4puamUVOIkAfMFdY0GzBDFYNuERdWjJDCh0aN2DexwZTx9wF4KmXhNNSiGm6Peb fzQB/yIbid5+pACWNPktr6PYgncXvBH86MJpflYZU4YgANlCfMi8vxAK6WbR5I0B J+9obi/sXtKbRd14nXaDfTaoDru0JnFnJkpSmmIrS2yG8vkbBiEI5SNP9/3e/5JL 84N7XWLZAPb2fSjqyPVjEAex6JFQgqm2OKwohja7eDUEQCS5aFPd1WWrp7Rk+gRO z18Kv4gMjwnK0tejwGj3/TX/bOtEbMSY5GEgpgFpltDsYOv1IU2U75z9FdgLmpVx X9XFRuOyHZ+Obi2BRaneiHZA55eBft1Rn1id+XeYL909vkUJVgLUk3eA2DQQ+GaP VzFGvbEbsqQ0MNwfzF5WX38hoj/Sv34wkHTFMjmxY+nnOZShhY4= =1gVA -----END PGP SIGNATURE----- --=-chIYJbtTU7pEpbbFIwgU--