Note that the arithmetics here is SMP-unsafe: we only hold the hash bucket
so if two errors hit at once on two CPUs then the error tracking variables
can be accessed at once.
I'd suggest a simple global lock for this error case (taken inside the
hash bucket lock), to be on the safe side.
Also, please dont use a macro for this - printk details can be passed in
to helper inlines/functions too.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html