mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D29364
(cherry picked from commit a29bbfe6c6)
This commit is contained in:
parent
19807ebec6
commit
436c7e3ad1
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ roce_gid_delete_all_event(struct net_device *ndev)
|
|||
static int
|
||||
inetaddr_event(struct notifier_block *this, unsigned long event, void *ptr)
|
||||
{
|
||||
struct net_device *ndev = ptr;
|
||||
struct net_device *ndev = netdev_notifier_info_to_dev(ptr);
|
||||
|
||||
switch (event) {
|
||||
case NETDEV_UNREGISTER:
|
||||
|
|
|
|||
Loading…
Reference in a new issue