net/qede: fix link change event notification
authorShahed Shaikh <shahed.shaikh@cavium.com>
Thu, 7 Jun 2018 16:30:52 +0000 (09:30 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commitcfab13aa93897524a4c8d4f6e30d91e7dd9e247b
treecfd0f3ec8e4209a309274ede651d3a1f8a3c5142
parentc6034a20d9e221dc6125db57e4378520af3a515d
net/qede: fix link change event notification

As per existing behavior, when firmware sends a link change
notification, PMD only updates the link structure but does
not notify applications about it.
This results in application sending packets even when link
status is down.

Fix this issue by issuing RTE_ETH_EVENT_INTR_LSC.

Fixes: ec94dbc57362 ("qede: add base driver")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
drivers/net/qede/qede_main.c