commit | 241a08c3a767ca2f6ab1c99c4db4c3ff867de8aa | [log] [tgz] |
---|---|---|
author | Ido Shamay <idos@mellanox.com> | Thu Apr 02 16:31:07 2015 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 02 16:24:51 2015 -0400 |
tree | b2b8e83c8e11a80fbe9edb954becf374ebf38af5 | |
parent | 802f42a8d99254b8602bf65cc50e8333bf479f13 [diff] |
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>