net: Correctly sync addresses from multiple sources to single device
net: Correctly sync addresses from multiple sources to single device

When we have multiple devices attempting to sync the same address
to a single destination, each device should be permitted to sync
it once.  To accomplish this, pass the 'sync_cnt' of the source
address when adding the addresss to the lower device.  'sync_cnt'
tracks how many time a given address has been succefully synced.
This way, we know that if the 'sync_cnt' passed in is 0, we should
sync this address.

Also, turn 'synced' member back into the counter as was originally
done in
   commit 4543fbefe6e06a9e40d9f2b28d688393a299f079.
   net: count hw_addr syncs so that unsync works properly.
It tracks how many time a given address has been added via a
'sync' operation.  For every successfull 'sync' the counter is
incremented, and for ever 'unsync', the counter is decremented.
This makes sure that the address will be properly removed from
the the lower device when all the upper devices have removed it.

Reported-by: Andrey Dmitrov <d560e774dce19682f5477c73737b7e9e6780f795@oktetlabs.ru>
CC: Andrey Dmitrov <d560e774dce19682f5477c73737b7e9e6780f795@oktetlabs.ru>
CC: Alexandra N. Kossovsky <1e7a30605a9dc546f64219118b134194bb42c018@oktetlabs.ru>
CC: Konstantin Ushakov <6aabbb94396b1221040510bf37739c56b7168599@oktetlabs.ru>
Signed-off-by: Vlad Yasevich <cbd80080413a7dff621bc5de2d3d61903bde20a2@redhat.com>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs