[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADSoG1uRgX2CtNa-sXoXBP5uCj3y5EnEspis_FYy+3YPY7upZA@mail.gmail.com>
Date: Mon, 10 May 2021 15:01:18 +0100
From: Nick Lowe <nick.lowe@...il.com>
To: "Nguyen, Anthony L" <anthony.l.nguyen@...el.com>
Cc: "kuba@...nel.org" <kuba@...nel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"Siwik, Grzegorz" <grzegorz.siwik@...el.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"sassmann@...hat.com" <sassmann@...hat.com>,
"Switzer, David" <david.switzer@...el.com>
Subject: Re: [PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210
and i211
Or better, make attempt increment instead of the original decrement:
+ int i;
+ int attempt;
+ for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) {
+ for (attempt = 1; attempt <= 3; attempt++) {
+ if (array_rd32(E1000_MTA, i) != hw->mac.mta_shadow[i]) {
+ array_wr32(E1000_MTA, i, hw->mac.mta_shadow[i]);
+ wrfl();
+
+ if (attempt == 3 && array_rd32(E1000_MTA, i) !=
hw->mac.mta_shadow[i]) {
+ hw_dbg("Failed to update MTA_REGISTER %d,
too many retries\n", i);
+ }
+ }
+ }
+ }
Powered by blists - more mailing lists