From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH] i40e: fix handling of HW ATR eviction
Date: Thu, 04 May 2017 14:53:04 -0700 [thread overview]
Message-ID: <1493934784.48207.0.camel@intel.com> (raw)
In-Reply-To: <20170504211636.21192-1-jacob.e.keller@intel.com>
On Thu, 2017-05-04 at 14:16 -0700, Jacob Keller wrote:
> A recent commit to refactor the driver and remove the
> hw_disabled_flags
> field accidentally introduced two regressions. First, we overwrote
> pf->flags which removed various key flags including the MSI-X
> settings.
>
> Additionally, it was intended that we have now two flags,
> HW_ATR_EVICT_CAPABLe and HW_ATR_EVICT_ENABLED, but this was not done,
> and we accidentally were mis-using HW_ATR_EVICT_CAPABLE everywhere.
>
> This patch adds the missing piece, HW_ATR_EVICT_ENABLED, and safely
> updates pf->flags instead of overwriting it.
>
> Without this patch we will have many problems including disabling
> MSI-X
> support, and we'll attempt to use HW ATR eviction on devices which do
> not support it.
>
> Fixes: 47994c119a36 ("i40e: remove hw_disabled_flags in favor of
> using separate flag bits", 2017-04-19)
> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> ---
> Ok. For real, this actually cleans up and adds the missing feature
> that
> we should have had. I'm working on the rest, but this should fix the
> issue you were seeing without introducing other regressions.
>
> ?drivers/net/ethernet/intel/i40e/i40e.h???????? | 1 +
> ?drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ++--
> ?drivers/net/ethernet/intel/i40e/i40e_main.c??? | 7 ++++---
> ?drivers/net/ethernet/intel/i40e/i40e_txrx.c??? | 4 ++--
> ?4 files changed, 9 insertions(+), 7 deletions(-)
Ok is this the "final" version of the fix???
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20170504/743c07a7/attachment.asc>
next prev parent reply other threads:[~2017-05-04 21:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 21:16 [Intel-wired-lan] [PATCH] i40e: fix handling of HW ATR eviction Jacob Keller
2017-05-04 21:53 ` Jeff Kirsher [this message]
2017-05-04 23:29 ` Keller, Jacob E
2017-05-04 22:40 ` Bowers, AndrewX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1493934784.48207.0.camel@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox