IB/hfi1: Unify access to GUID entries
This patch consolidates the node GUIDs and the port GUID handling and unifies access to these items. The knowledge of hfi1 GUIDs' design and their location are kept in accessors to centralize access. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Brian Welty <brian.welty@intel.com> Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
此提交包含在:
@@ -73,7 +73,6 @@ struct hfi1_packet;
|
||||
#include "iowait.h"
|
||||
|
||||
#define HFI1_MAX_RDMA_ATOMIC 16
|
||||
#define HFI1_GUIDS_PER_PORT 5
|
||||
|
||||
/*
|
||||
* Increment this value if any changes that break userspace ABI
|
||||
@@ -169,8 +168,6 @@ struct hfi1_ibport {
|
||||
struct rvt_qp __rcu *qp[2];
|
||||
struct rvt_ibport rvp;
|
||||
|
||||
__be64 guids[HFI1_GUIDS_PER_PORT - 1]; /* writable GUIDs */
|
||||
|
||||
/* the first 16 entries are sl_to_vl for !OPA */
|
||||
u8 sl_to_sc[32];
|
||||
u8 sc_to_sl[32];
|
||||
|
新增問題並參考
封鎖使用者