netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cpsw_ale clobbers learned addresses?
@ 2015-05-13 19:38 Richard Cochran
  2015-05-18  9:12 ` Mugunthan V N
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Cochran @ 2015-05-13 19:38 UTC (permalink / raw)
  To: netdev; +Cc: mugunthanvnm


It appears to me that cpsw_ale.c will possibly clobber addresses
learned by the switch.   When adding a new entry, the code reads the
table until it finds an empty entry.  Then, it writes the new value to
that same index.  However, nothing prevents the switch from using that
same index between the read and the write.

Or am I missing something?

Thanks,
Richard

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cpsw_ale clobbers learned addresses?
  2015-05-13 19:38 cpsw_ale clobbers learned addresses? Richard Cochran
@ 2015-05-18  9:12 ` Mugunthan V N
  0 siblings, 0 replies; 2+ messages in thread
From: Mugunthan V N @ 2015-05-18  9:12 UTC (permalink / raw)
  To: Richard Cochran, netdev

On Thursday 14 May 2015 01:08 AM, Richard Cochran wrote:
> 
> It appears to me that cpsw_ale.c will possibly clobber addresses
> learned by the switch.   When adding a new entry, the code reads the
> table until it finds an empty entry.  Then, it writes the new value to
> that same index.  However, nothing prevents the switch from using that
> same index between the read and the write.
> 
> Or am I missing something?
> 

There are chances that driver might overwrite address learnt by hardware
which was learnt between the instance getting free index and writing
table. Though the same software overwritten mac id will be updated on
the next packet received with same mac id.

Once driver updates the ALE table with valid entry hardware wont be
updating.

Regards
Mugunthan V N

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-18  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 19:38 cpsw_ale clobbers learned addresses? Richard Cochran
2015-05-18  9:12 ` Mugunthan V N

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).