ipoib.h (0b6c404a07e3240b95aa5682fb8fd57c41609d7a) ipoib.h (9baa0b0364103dd726384c71db30b74044754743)
1/*
2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
4 * Copyright (c) 2004 Voltaire, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

--- 90 unchanged lines hidden (view full) ---

99
100 IPOIB_MCAST_FLAG_FOUND = 0, /* used in set_multicast_list */
101 IPOIB_MCAST_FLAG_SENDONLY = 1,
102 IPOIB_MCAST_FLAG_BUSY = 2, /* joining or already joined */
103 IPOIB_MCAST_FLAG_ATTACHED = 3,
104
105 MAX_SEND_CQE = 16,
106 IPOIB_CM_COPYBREAK = 256,
1/*
2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
4 * Copyright (c) 2004 Voltaire, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

--- 90 unchanged lines hidden (view full) ---

99
100 IPOIB_MCAST_FLAG_FOUND = 0, /* used in set_multicast_list */
101 IPOIB_MCAST_FLAG_SENDONLY = 1,
102 IPOIB_MCAST_FLAG_BUSY = 2, /* joining or already joined */
103 IPOIB_MCAST_FLAG_ATTACHED = 3,
104
105 MAX_SEND_CQE = 16,
106 IPOIB_CM_COPYBREAK = 256,
107
108 IPOIB_NON_CHILD = 0,
109 IPOIB_LEGACY_CHILD = 1,
110 IPOIB_RTNL_CHILD = 2,
107};
108
109#define IPOIB_OP_RECV (1ul << 31)
110#ifdef CONFIG_INFINIBAND_IPOIB_CM
111#define IPOIB_OP_CM (1ul << 30)
112#else
113#define IPOIB_OP_CM (0)
114#endif

--- 230 unchanged lines hidden (view full) ---

345
346 struct list_head dead_ahs;
347
348 struct ib_event_handler event_handler;
349
350 struct net_device *parent;
351 struct list_head child_intfs;
352 struct list_head list;
111};
112
113#define IPOIB_OP_RECV (1ul << 31)
114#ifdef CONFIG_INFINIBAND_IPOIB_CM
115#define IPOIB_OP_CM (1ul << 30)
116#else
117#define IPOIB_OP_CM (0)
118#endif

--- 230 unchanged lines hidden (view full) ---

349
350 struct list_head dead_ahs;
351
352 struct ib_event_handler event_handler;
353
354 struct net_device *parent;
355 struct list_head child_intfs;
356 struct list_head list;
357 int child_type;
353
354#ifdef CONFIG_INFINIBAND_IPOIB_CM
355 struct ipoib_cm_dev_priv cm;
356#endif
357
358#ifdef CONFIG_INFINIBAND_IPOIB_DEBUG
359 struct list_head fs_list;
360 struct dentry *mcg_dentry;

--- 143 unchanged lines hidden (view full) ---

504void ipoib_transport_dev_cleanup(struct net_device *dev);
505
506void ipoib_event(struct ib_event_handler *handler,
507 struct ib_event *record);
508
509int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
510int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
511
358
359#ifdef CONFIG_INFINIBAND_IPOIB_CM
360 struct ipoib_cm_dev_priv cm;
361#endif
362
363#ifdef CONFIG_INFINIBAND_IPOIB_DEBUG
364 struct list_head fs_list;
365 struct dentry *mcg_dentry;

--- 143 unchanged lines hidden (view full) ---

509void ipoib_transport_dev_cleanup(struct net_device *dev);
510
511void ipoib_event(struct ib_event_handler *handler,
512 struct ib_event *record);
513
514int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
515int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
516
517int __ipoib_vlan_add(struct ipoib_dev_priv *ppriv, struct ipoib_dev_priv *priv,
518 u16 pkey, int child_type);
519
520int __init ipoib_netlink_init(void);
521void __exit ipoib_netlink_fini(void);
522
523void ipoib_setup(struct net_device *dev);
524
512void ipoib_pkey_poll(struct work_struct *work);
513int ipoib_pkey_dev_delay_open(struct net_device *dev);
514void ipoib_drain_cq(struct net_device *dev);
515
516void ipoib_set_ethtool_ops(struct net_device *dev);
517int ipoib_set_dev_features(struct ipoib_dev_priv *priv, struct ib_device *hca);
518
519#ifdef CONFIG_INFINIBAND_IPOIB_CM

--- 225 unchanged lines hidden ---
525void ipoib_pkey_poll(struct work_struct *work);
526int ipoib_pkey_dev_delay_open(struct net_device *dev);
527void ipoib_drain_cq(struct net_device *dev);
528
529void ipoib_set_ethtool_ops(struct net_device *dev);
530int ipoib_set_dev_features(struct ipoib_dev_priv *priv, struct ib_device *hca);
531
532#ifdef CONFIG_INFINIBAND_IPOIB_CM

--- 225 unchanged lines hidden ---