hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/infiniband/ulp/ipoib/ipoib.h
....@@ -502,8 +502,10 @@
502502 struct ipoib_path *__path_find(struct net_device *dev, void *gid);
503503 void ipoib_mark_paths_invalid(struct net_device *dev);
504504 void ipoib_flush_paths(struct net_device *dev);
505
-struct ipoib_dev_priv *ipoib_intf_alloc(struct ib_device *hca, u8 port,
506
- const char *format);
505
+struct net_device *ipoib_intf_alloc(struct ib_device *hca, u8 port,
506
+ const char *format);
507
+int ipoib_intf_init(struct ib_device *hca, u8 port, const char *format,
508
+ struct net_device *dev);
507509 void ipoib_ib_tx_timer_func(struct timer_list *t);
508510 void ipoib_ib_dev_flush_light(struct work_struct *work);
509511 void ipoib_ib_dev_flush_normal(struct work_struct *work);
....@@ -525,7 +527,7 @@
525527
526528 void ipoib_mcast_restart_task(struct work_struct *work);
527529 void ipoib_mcast_start_thread(struct net_device *dev);
528
-int ipoib_mcast_stop_thread(struct net_device *dev);
530
+void ipoib_mcast_stop_thread(struct net_device *dev);
529531
530532 void ipoib_mcast_dev_down(struct net_device *dev);
531533 void ipoib_mcast_dev_flush(struct net_device *dev);
....@@ -533,6 +535,8 @@
533535 int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req);
534536 void ipoib_dma_unmap_tx(struct ipoib_dev_priv *priv,
535537 struct ipoib_tx_buf *tx_req);
538
+
539
+struct rtnl_link_ops *ipoib_get_link_ops(void);
536540
537541 static inline void ipoib_build_sge(struct ipoib_dev_priv *priv,
538542 struct ipoib_tx_buf *tx_req)
....@@ -780,12 +784,12 @@
780784 #ifdef CONFIG_INFINIBAND_IPOIB_DEBUG
781785 void ipoib_create_debug_files(struct net_device *dev);
782786 void ipoib_delete_debug_files(struct net_device *dev);
783
-int ipoib_register_debugfs(void);
787
+void ipoib_register_debugfs(void);
784788 void ipoib_unregister_debugfs(void);
785789 #else
786790 static inline void ipoib_create_debug_files(struct net_device *dev) { }
787791 static inline void ipoib_delete_debug_files(struct net_device *dev) { }
788
-static inline int ipoib_register_debugfs(void) { return 0; }
792
+static inline void ipoib_register_debugfs(void) { }
789793 static inline void ipoib_unregister_debugfs(void) { }
790794 #endif
791795
....@@ -837,7 +841,5 @@
837841 #endif /* CONFIG_INFINIBAND_IPOIB_DEBUG_DATA */
838842
839843 #define IPOIB_QPN(ha) (be32_to_cpup((__be32 *) ha) & 0xffffff)
840
-
841
-extern const char ipoib_driver_version[];
842844
843845 #endif /* _IPOIB_H */