From: Danny Kukawka Date: Thu, 9 Feb 2012 09:48:53 +0000 (+0000) Subject: eth: reset addr_assign_type if eth_mac_addr() called X-Git-Tag: v3.4-rc1~177^2~329 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8585bd89e2e3c87eab6ca711e09b3af20fd469b;p=pandora-kernel.git eth: reset addr_assign_type if eth_mac_addr() called If eth_mac_addr() get called, usually if SIOCSIFHWADDR was used to change the MAC of a ethernet device, reset the addr_assign_type to NET_ADDR_PERM if the state was NET_ADDR_RANDOM before. Reset the state since the MAC is no longer random at least not from the kernel side. v2: changed to bitops, removed if() Signed-off-by: Danny Kukawka Signed-off-by: David S. Miller --- Reading git-diff-tree failed