]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ofed/linuxkpi: use proper accessor function
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 21 Mar 2021 21:07:45 +0000 (21:07 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 24 Mar 2021 22:23:34 +0000 (22:23 +0000)
commita29bbfe6c6e41691bdd3bd0e5be89089523485d6
tree0dfd4bb2187c7b10eb7e6a58f28a0ce1385e61d0
parentde8a7cc703f1d3eab293d53fbc8269e1aca3a6ab
ofed/linuxkpi: use proper accessor function

In the notifier event callback function rather than casting directly
to the expected type use the proper accessor function as the mlx drivers
already do.
This is preparational work to allow us to improve the struct net_device
is struct ifnet compat code shortcut in the future.

Obtained-from: bz_iwlwifi
Sponsored-by: The FreeBSD Foundation
MFC-after: 2 weeks
Reviewed-by: hselasky
Differential Revision: https://reviews.freebsd.org/D29364
sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c