IB/core: Save the device attributes on the device structure
This way both the IB core and upper level drivers can access these cached device attributes rather than querying or caching them on their own. Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -1823,6 +1823,7 @@ struct ib_device {
|
||||
u16 is_switch:1;
|
||||
u8 node_type;
|
||||
u8 phys_port_cnt;
|
||||
struct ib_device_attr attrs;
|
||||
|
||||
/**
|
||||
* The following mandatory functions are used only at device
|
||||
|
Reference in New Issue
Block a user