From: Qingmin Liu Date: Tue, 1 May 2018 01:06:05 +0000 (-0700) Subject: net/bnxt: add support for LSC interrupt event X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c2faa1d1969ec53cfa9aa7f079ea7f1372ffddcd;p=dpdk.git net/bnxt: add support for LSC interrupt event Add support to bnxt driver to register RTE_ETH_EVENT_INTR_LSC event and monitor physical link status. Signed-off-by: Qingmin Liu Signed-off-by: Scott Branden Signed-off-by: Ajit Khaparde Reviewed-by: Randy Schacher --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 7c29bff8cb..2190a2e50e 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -780,6 +780,11 @@ out: new.link_speed != eth_dev->data->dev_link.link_speed) { memcpy(ð_dev->data->dev_link, &new, sizeof(struct rte_eth_link)); + + _rte_eth_dev_callback_process(eth_dev, + RTE_ETH_EVENT_INTR_LSC, + NULL); + bnxt_print_link_info(eth_dev); }