mirror of https://gitee.com/openkylin/linux.git
IB/hfi1: Rename hfi1_pio_header to hfi1_sdma_header.
hfi1_pio_header should really be called hfi1_sdma_header as it is only used for sdma transmits. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Dean Luick <dean.luick@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Don Hiatt <don.hiatt@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
a9b6b3bc29
commit
d4d602e9a3
|
@ -708,7 +708,7 @@ u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr,
|
|||
return sizeof(struct ib_grh) / sizeof(u32);
|
||||
}
|
||||
|
||||
#define BTH2_OFFSET (offsetof(struct hfi1_pio_header, hdr.u.oth.bth[2]) / 4)
|
||||
#define BTH2_OFFSET (offsetof(struct hfi1_sdma_header, hdr.u.oth.bth[2]) / 4)
|
||||
|
||||
/**
|
||||
* build_ahg - create ahg in s_ahg
|
||||
|
|
|
@ -820,7 +820,7 @@ static int build_verbs_tx_desc(
|
|||
u64 pbc)
|
||||
{
|
||||
int ret = 0;
|
||||
struct hfi1_pio_header *phdr = &tx->phdr;
|
||||
struct hfi1_sdma_header *phdr = &tx->phdr;
|
||||
u16 hdrbytes = tx->hdr_dwords << 2;
|
||||
|
||||
if (!ahg_info->ahgcount) {
|
||||
|
|
|
@ -185,7 +185,7 @@ struct hfi1_ahg_info {
|
|||
u8 ahgidx;
|
||||
};
|
||||
|
||||
struct hfi1_pio_header {
|
||||
struct hfi1_sdma_header {
|
||||
__le64 pbc;
|
||||
struct hfi1_ib_header hdr;
|
||||
} __packed;
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#include "iowait.h"
|
||||
|
||||
struct verbs_txreq {
|
||||
struct hfi1_pio_header phdr;
|
||||
struct hfi1_sdma_header phdr;
|
||||
struct sdma_txreq txreq;
|
||||
struct rvt_qp *qp;
|
||||
struct rvt_swqe *wqe;
|
||||
|
|
Loading…
Reference in New Issue