]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d7609c339e290c5e080e30bc462f17380fa6461
treeb5e4ab80cf230d663d398ff52c7e71fb594110fb
parentb9a8c789643676eaa13fd815cbd15b239fdd18fb
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