diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2008-10-22 15:49:49 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-10-22 15:49:49 -0700 |
commit | 83bb63f62bda28be88b21216fbb59838a10f2348 (patch) | |
tree | b5e4ab80cf230d663d398ff52c7e71fb594110fb /drivers/infiniband/ulp/ipoib/ipoib.h | |
parent | 70c9c0db549245a49cabf42d5a74688077254d46 (diff) | |
download | blackbird-op-linux-83bb63f62bda28be88b21216fbb59838a10f2348.tar.gz blackbird-op-linux-83bb63f62bda28be88b21216fbb59838a10f2348.zip |
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>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 68ba5c3482e4..e0c7dfabf2b4 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h @@ -507,6 +507,7 @@ int ipoib_pkey_dev_delay_open(struct net_device *dev); void ipoib_drain_cq(struct net_device *dev); void ipoib_set_ethtool_ops(struct net_device *dev); +int ipoib_set_dev_features(struct ipoib_dev_priv *priv, struct ib_device *hca); #ifdef CONFIG_INFINIBAND_IPOIB_CM |