net/mrvl: allow changing MTU before port init
authorTomasz Duszynski <tdu@semihalf.com>
Thu, 18 Jan 2018 10:57:36 +0000 (11:57 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
commit59c796c889c7b1a001b1e3354750baa2ca9bdba9
tree0e78a1d66241178b092b830cfb66d92a0e3bf9a9
parentc78d280e88efa2da455adeeeeec7de57102a5933
net/mrvl: allow changing MTU before port init

DPDK updates MTU once mtu_set() callback returns success.
Since PMD changes port's MTU to dev->mtu every time device is
started it is safe to call mtu_set() before MUSDK ppio was initialized.

Fixes: c0511a8f741f ("net/mrvl: check if ppio is initialized")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
drivers/net/mrvl/mrvl_ethdev.c