aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index 0af216d21f87..196eb52f0035 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -104,6 +104,10 @@ enum {
104 104
105 MAX_SEND_CQE = 16, 105 MAX_SEND_CQE = 16,
106 IPOIB_CM_COPYBREAK = 256, 106 IPOIB_CM_COPYBREAK = 256,
107
108 IPOIB_NON_CHILD = 0,
109 IPOIB_LEGACY_CHILD = 1,
110 IPOIB_RTNL_CHILD = 2,
107}; 111};
108 112
109#define IPOIB_OP_RECV (1ul << 31) 113#define IPOIB_OP_RECV (1ul << 31)
@@ -353,6 +357,7 @@ struct ipoib_dev_priv {
353 struct net_device *parent; 357 struct net_device *parent;
354 struct list_head child_intfs; 358 struct list_head child_intfs;
355 struct list_head list; 359 struct list_head list;
360 int child_type;
356 361
357#ifdef CONFIG_INFINIBAND_IPOIB_CM 362#ifdef CONFIG_INFINIBAND_IPOIB_CM
358 struct ipoib_cm_dev_priv cm; 363 struct ipoib_cm_dev_priv cm;
@@ -512,6 +517,17 @@ void ipoib_event(struct ib_event_handler *handler,
512int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey); 517int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
513int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey); 518int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
514 519
520int __ipoib_vlan_add(struct ipoib_dev_priv *ppriv, struct ipoib_dev_priv *priv,
521 u16 pkey, int child_type);
522
523int __init ipoib_netlink_init(void);
524void __exit ipoib_netlink_fini(void);
525
526void ipoib_set_umcast(struct net_device *ndev, int umcast_val);
527int ipoib_set_mode(struct net_device *dev, const char *buf);
528
529void ipoib_setup(struct net_device *dev);
530
515void ipoib_pkey_poll(struct work_struct *work); 531void ipoib_pkey_poll(struct work_struct *work);
516int ipoib_pkey_dev_delay_open(struct net_device *dev); 532int ipoib_pkey_dev_delay_open(struct net_device *dev);
517void ipoib_drain_cq(struct net_device *dev); 533void ipoib_drain_cq(struct net_device *dev);