net/mlx4_en: Set correct port parameters during device initialization
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 25 Jun 2012 00:24:11 +0000 (00:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2012 23:30:12 +0000 (16:30 -0700)
commit5c8e9046662889265c0ff390c144188721cb0844
tree50a9601197840e2cdf781c943404e655c8c0983a
parent6de0298ec9c1edaf330b71b57346241ece8f3346
net/mlx4_en: Set correct port parameters during device initialization

Set valid port parameters: MTU and flow control configuration when
configuring the port during HW device initialization,
prior to the net device open() being called.
Using  invalid parameters (such as all zeros)
could lead to bad firmware behavior.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c