net/bnxt: fix link during port toggle
authorSantoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Sat, 21 Dec 2019 02:29:35 +0000 (18:29 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
commit074cacb9907aaae240a69eafc80018c873881d82
tree4457ef38082613bfaa86199e10870283ddd5ed75
parent34e7360960687c1e99fd693d7a72e3be3a019a36
net/bnxt: fix link during port toggle

We need to wait for up to 500ms to receive async event notification
after forcing link down. Similarly we need to wait for up to 10s for
link to come up after configuring the hardware for link up.

Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations")
Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_cpr.c
drivers/net/bnxt/bnxt_ethdev.c