]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4844c6787cd4aeae3e48cc9979c813aadb9f485a
treeefface1c55592c1eefb670ef1a5ab83bc76f9618
parent4a012320c7ae5ecdf18c8706537c80a7090b2fd1
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