]> git.baikalelectronics.ru Git - kernel.git/commit
enic: do not call enic_change_mtu in enic_probe
authorGovindarajulu Varadarajan <gvaradar@cisco.com>
Mon, 30 Jul 2018 16:56:54 +0000 (09:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Jul 2018 21:42:49 +0000 (14:42 -0700)
commit4180af9bc75f7b963aa256c179dadc935e90c55d
tree3748398fddd87e28c8cec4952f22458c48bdf0bf
parent3eebb265c4492f28616546546983fdd3c66b7936
enic: do not call enic_change_mtu in enic_probe

In commit 74961f965c5a ("enic: handle mtu change for vf properly")
ASSERT_RTNL() is added to _enic_change_mtu() to prevent it from being
called without rtnl held. enic_probe() calls enic_change_mtu()
without rtnl held. At this point netdev is not registered yet.
Remove call to enic_change_mtu and assign the mtu to netdev->mtu.

Fixes: 74961f965c5a ("enic: handle mtu change for vf properly")
Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c