Vincenzo Maffione e0e1240528 netmap: fix LOR in iflib_netmap_register
In iflib_device_register(), the CTX_LOCK is acquired first and then
IFNET_WLOCK is acquired by ether_ifattach(). However, in netmap_hw_reg()
we do the opposite: IFNET_RLOCK is acquired first, and then CTX_LOCK
is acquired by iflib_netmap_register(). Fix this LOR issue by wrapping
the CTX_LOCK/UNLOCK calls in iflib_device_register with an additional
IFNET_WLOCK. This is safe since the IFNET_WLOCK is recursive.

MFC after:	1 month
2022-01-14 21:09:04 +00:00
..
2021-09-04 17:26:10 +02:00
2021-12-17 12:38:35 +01:00
2021-08-26 11:23:44 +02:00
2021-01-29 21:43:20 +00:00
2021-11-08 12:00:00 +01:00
2021-11-19 22:01:27 +01:00
2020-12-29 17:35:06 +01:00
2021-12-06 09:32:31 -08:00
2021-12-17 12:38:35 +01:00
2021-11-30 17:35:15 +01:00
2021-12-17 12:38:34 +01:00
2021-12-06 09:32:31 -08:00
2022-01-06 15:04:24 -05:00
2021-06-24 13:00:56 +02:00
2020-11-20 14:45:45 +00:00
2021-04-02 07:01:20 +00:00
2020-10-16 11:22:29 +00:00
2022-01-14 10:30:33 +01:00
2021-02-11 16:12:29 +01:00