net/sfc: do not panic if alarms are not supported
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 19 Jan 2017 11:12:20 +0000 (11:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commit323706ab8b574acf4c069e3d1671819d4db2a8ec
tree351edd4b48ff53fb25ae7679f8316beda073b3d0
parent0603df73a077e66f8eef27a5df71aed6135cda3f
net/sfc: do not panic if alarms are not supported

Alarms are not supported on the FreeBSD.
Application must poll link status periodically itself using
rte_eth_link_get_nowait() to avoid management event queue overflow.

Fixes: 2de39f4e1310 ("net/sfc: periodic management EVQ polling using alarm")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andrew Lee <alee@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
drivers/net/sfc/sfc_ev.c