diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2017-12-22 16:46:57 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2017-12-22 21:38:05 +0100 |
commit | 0c5d5155463cf08492a97b596c5c24636762c310 (patch) | |
tree | 0db8f25b9364c71da6ed7050d011f7107fcf3b61 /drivers/infiniband/hw/i40iw/i40iw.h | |
parent | i40iw: Correct Q1/XF object count equation (diff) | |
download | linux-0c5d5155463cf08492a97b596c5c24636762c310.tar.xz linux-0c5d5155463cf08492a97b596c5c24636762c310.zip |
i40iw: Add notifier for network device events
Register a netdevice notifier for netdev UP/DOWN
notification events and report the appropriate ib event.
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw.h')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw.h b/drivers/infiniband/hw/i40iw/i40iw.h index 4ae9131b6350..bcddd7061fc0 100644 --- a/drivers/infiniband/hw/i40iw/i40iw.h +++ b/drivers/infiniband/hw/i40iw/i40iw.h @@ -587,5 +587,8 @@ int i40iw_inet6addr_event(struct notifier_block *notifier, int i40iw_net_event(struct notifier_block *notifier, unsigned long event, void *ptr); +int i40iw_netdevice_event(struct notifier_block *notifier, + unsigned long event, + void *ptr); #endif |