IB/ipoib: Fix inconsistency with free_netdev and free_rdma_netdev
authorAlex Vesker <valex@mellanox.com>
Sun, 24 Sep 2017 18:46:33 +0000 (21:46 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 25 Sep 2017 15:47:24 +0000 (11:47 -0400)
commit7c9d9662103ae1c11acc7bfc47d988466cff23cf
tree1bf5b71801a8895c4fc14c8df5c395aab5e8dac3
parent9c6f42e9254150d2772242d9f8bd8d0b7b7431ff
IB/ipoib: Fix inconsistency with free_netdev and free_rdma_netdev

Call free_rdma_netdev instead of free_netdev each time we want to
release a netdevice. This call is also relevant for future freeing
of offloaded child interfaces.

This patch also adds a missing call for free netdevice when releasing
a parent interface that has child interfaces using ipoib_remove_one.

Fixes: cd565b4b51e5 ('IB/IPoIB: Support acceleration options callbacks')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c