mpipe: fix link initialization ordering
authorLiming Sun <lsun@ezchip.com>
Fri, 8 Jan 2016 14:30:38 +0000 (09:30 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 15:44:51 +0000 (16:44 +0100)
commit6069d815bc4dd73e82396a607882fe8395e592ed
treeb303d5a9df3ae676ed4122d39b0f888bc859889f
parentca7e25e63284ce88f98dfda13715090434a51f2a
mpipe: fix link initialization ordering

Mpipe link structure is initialized in function mpipe_link_init().
Currently it's only called from the eth_dev_ops.dev_start, which
caused crashes when link mgmt APIs (like promiscuous_enable)
was called before eth_dev_ops.dev_start(). This submit fixed it
by calling mpipe_link_init() in rte_pmd_mpipe_devinit().

Fixes: a8dd50513dea ("mpipe: add TILE-Gx mPIPE poll mode driver")

Signed-off-by: Liming Sun <lsun@ezchip.com>
Acked-by: Zhigang Lu <zlu@ezchip.com>
drivers/net/mpipe/mpipe_tilegx.c