ethtool: set addr_assign_type to NET_ADDR_SET when addr is passed on create
authorJiri Pirko <jiri@resnulli.us>
Sun, 6 Jan 2013 12:41:57 +0000 (12:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2013 05:05:02 +0000 (21:05 -0800)
commit2afb9b533423a9b97f84181e773cf9361d98fed6
tree9fa30187fe1c2e6275e2b7d00f52095b8bef5629
parentefc61a3442da9fd17a61fcabef445534598f54a8
ethtool: set addr_assign_type to NET_ADDR_SET when addr is passed on create

In case user passed address via netlink during create, NET_ADDR_PERM was set.
That is not correct so fix this by setting NET_ADDR_SET.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c