liquidio: fix ndo_change_mtu to always return correct status to the caller
authorVeerasenareddy Burru <veerasenareddy.burru@cavium.com>
Sat, 10 Mar 2018 08:17:35 +0000 (00:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 15:00:42 +0000 (11:00 -0400)
commit87a7c4b3c3570feed2edb9478c3bdd474f43a239
treeefface1c55592c1eefb670ef1a5ab83bc76f9618
parent8b4c6ed2ed0e3d53e93e20e3f20cadf0d1a47483
liquidio: fix ndo_change_mtu to always return correct status to the caller

In a scenario where the command queued to firmware get dropped or times
out, MTU change from host will not propagate to firmware. So, it is
required for host driver to wait for response from firmware or timeout
and then return correct status to caller of ndo_change_mtu.

Also moved the common code for MTU change from PF and VF driver files to
common file lio_core.c

Signed-off-by: Veerasenareddy Burru <veerasenareddy.burru@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_core.c
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
drivers/net/ethernet/cavium/liquidio/octeon_network.h