Re: [PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210 and i211

2021-04-20 Thread Nguyen, Anthony L
On Fri, 2021-04-16 at 14:12 -0700, Jakub Kicinski wrote: > On Fri, 16 Apr 2021 13:44:56 -0700 Tony Nguyen wrote: > > + bool is_failed; > > + int i; > > + > > + do { > > + is_failed = false; > > + for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) { > > + if

Re: [PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210 and i211

2021-04-16 Thread Jakub Kicinski
On Fri, 16 Apr 2021 13:44:56 -0700 Tony Nguyen wrote: > + bool is_failed; > + int i; > + > + do { > + is_failed = false; > + for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) { > + if (array_rd32(E1000_MTA, i) != hw->mac.mta_shadow[i]) { > +

[PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210 and i211

2021-04-16 Thread Tony Nguyen
From: Grzegorz Siwik Add new function which checks MTA_REGISTER if its filled correctly. If not then writes again to same register. There is possibility that i210 and i211 could not accept MTA_REGISTER settings, specially when you add and remove many of multicast addresses in short time. Without