diff options
author | Yuval Shaia <yuval.shaia@oracle.com> | 2017-06-14 23:13:33 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-24 08:44:46 -0400 |
commit | 44b0b7455f7a6c4bff3cda804719d2ed4494b4da (patch) | |
tree | 9086d316a581717dfa965d0a3edb2a67dadded15 /drivers/infiniband/hw/usnic/usnic_ib_main.c | |
parent | f201777a5382e0a4152342365e928c1de99815ad (diff) | |
download | linux-44b0b7455f7a6c4bff3cda804719d2ed4494b4da.tar.bz2 |
IB/usnic: Implement get_netdev hook
usnic's get_netdev hook for struct ib_device is missing - add it.
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Christian Benvenuti <benve@cisco.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/usnic/usnic_ib_main.c')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_ib_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniband/hw/usnic/usnic_ib_main.c index c0c1e8b027b1..80577b9d2796 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_main.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c @@ -409,6 +409,7 @@ static void *usnic_ib_device_add(struct pci_dev *dev) us_ibdev->ib_dev.query_port = usnic_ib_query_port; us_ibdev->ib_dev.query_pkey = usnic_ib_query_pkey; us_ibdev->ib_dev.query_gid = usnic_ib_query_gid; + us_ibdev->ib_dev.get_netdev = usnic_get_netdev; us_ibdev->ib_dev.get_link_layer = usnic_ib_port_link_layer; us_ibdev->ib_dev.alloc_pd = usnic_ib_alloc_pd; us_ibdev->ib_dev.dealloc_pd = usnic_ib_dealloc_pd; |