IPoIB: Set netdev offload features properly for child (VLAN) interfaces
authorOr Gerlitz <ogerlitz@voltaire.com>
Wed, 22 Oct 2008 22:49:49 +0000 (15:49 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 22 Oct 2008 22:49:49 +0000 (15:49 -0700)
commit83bb63f62bda28be88b21216fbb59838a10f2348
treeb5e4ab80cf230d663d398ff52c7e71fb594110fb
parent70c9c0db549245a49cabf42d5a74688077254d46
IPoIB: Set netdev offload features properly for child (VLAN) interfaces

Child devices were created without any offload features set, fix this by
moving the code that computes the features into generic function which is
now called through non-child and child device creation.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
-- v1 has a bug where the 'result' flag in ipoib_vlan_add may be used uninitialized
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c