opnsense-src/sys/dev/hyperv/netvsc
Gleb Smirnoff d74b7baeb0 ifnet_byindex() actually requires network epoch
Sweep over potentially unsafe calls to ifnet_byindex() and wrap them
in epoch.  Most of the code touched remains unsafe, as the returned
pointer is being used after epoch exit.  Mark that with a comment.

Validate the index argument inside the function, reducing argument
validation requirement from the callers and making V_if_index
private to if.c.

Reviewed by:		melifaro
Differential revision:	https://reviews.freebsd.org/D33263
2021-12-06 09:32:31 -08:00
..
hn_nvs.c Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver 2021-03-12 04:35:16 +00:00
hn_nvs.h hyperv: Update copyright for the files changed in 2017 2017-08-14 06:00:50 +00:00
hn_rndis.c netvsc: Fix a typo in a comment 2021-10-02 10:42:18 +02:00
hn_rndis.h hyperv/hn: Fix MTU setting 2017-09-19 06:38:57 +00:00
if_hn.c ifnet_byindex() actually requires network epoch 2021-12-06 09:32:31 -08:00
if_hnreg.h Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver 2021-03-12 04:35:16 +00:00
if_hnvar.h Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver 2021-03-12 04:35:16 +00:00
ndis.h Hyper-V: hn: Enable vSwitch RSC support in hn netvsc driver 2021-03-12 04:35:16 +00:00