bnxt_en: support hwrm_func_drv_unrgtr command
authorJeffrey Huang <huangjw@broadcom.com>
Sun, 27 Dec 2015 23:19:18 +0000 (18:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2015 05:57:27 +0000 (00:57 -0500)
commitbe58a0da1672391b246880450e990fe36d7ba24d
tree789b50a5ab22057ee35f5da579a72d39f93b1ba6
parentf45688280e19b61b5c15a17ebd8c3d9b60fa1252
bnxt_en: support hwrm_func_drv_unrgtr command

During remove_one, the driver should issue hwrm_func_drv_unrgtr
command to inform firmware that this function has been unloaded.
This is to let firmware keep track of driver present/absent state
when driver is gracefully unloaded. A keep alive timer is needed
later to keep track of driver state during abnormal shutdown.

Signed-off-by: Jeffrey Huang <huangjw@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c