mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[infiniband] Remove concept of whole-device owner data
Remove the implicit assumption that the IPoIB protocol owns the whole Infiniband device. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -450,8 +450,6 @@ struct ib_device {
|
||||
|
||||
/** Driver private data */
|
||||
void *drv_priv;
|
||||
/** Owner private data */
|
||||
void *owner_priv;
|
||||
};
|
||||
|
||||
/** An Infiniband upper-layer driver */
|
||||
@@ -695,26 +693,4 @@ ib_get_drvdata ( struct ib_device *ibdev ) {
|
||||
return ibdev->drv_priv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Infiniband device owner-private data
|
||||
*
|
||||
* @v ibdev Infiniband device
|
||||
* @v priv Private data
|
||||
*/
|
||||
static inline __always_inline void
|
||||
ib_set_ownerdata ( struct ib_device *ibdev, void *priv ) {
|
||||
ibdev->owner_priv = priv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Infiniband device owner-private data
|
||||
*
|
||||
* @v ibdev Infiniband device
|
||||
* @ret priv Private data
|
||||
*/
|
||||
static inline __always_inline void *
|
||||
ib_get_ownerdata ( struct ib_device *ibdev ) {
|
||||
return ibdev->owner_priv;
|
||||
}
|
||||
|
||||
#endif /* _IPXE_INFINIBAND_H */
|
||||
|
||||
Reference in New Issue
Block a user