net/mlx4_en: Change loopback only upon feature change
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:07 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:24:51 +0000 (16:24 -0400)
commit241a08c3a767ca2f6ab1c99c4db4c3ff867de8aa
treeb2b8e83c8e11a80fbe9edb954becf374ebf38af5
parent802f42a8d99254b8602bf65cc50e8333bf479f13
net/mlx4_en: Change loopback only upon feature change

Currently any change of netdev features results in a call to
mlx4_en_update_loopback_state(). Those calls are unnecessary,
and should be called only upon loopback feature change.

Also moved some of the logic into mlx4_en_update_loopback_state().

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c