Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd24ef5e authored by Dasaratharaman Chandramouli's avatar Dasaratharaman Chandramouli Committed by Doug Ledford
Browse files

IB/hfi1: Remove unused elements from struct ahg_ib_header

parent b5e71019
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -735,7 +735,6 @@ static inline void build_ahg(struct rvt_qp *qp, u32 npsn)
			qp->s_ahgpsn = npsn;
			qp->s_ahgpsn = npsn;
			priv->s_hdr->tx_flags |= SDMA_TXREQ_F_AHG_COPY;
			priv->s_hdr->tx_flags |= SDMA_TXREQ_F_AHG_COPY;
			/* save to protect a change in another thread */
			/* save to protect a change in another thread */
			priv->s_hdr->sde = priv->s_sde;
			priv->s_hdr->ahgidx = qp->s_ahgidx;
			priv->s_hdr->ahgidx = qp->s_ahgidx;
			qp->s_flags |= RVT_S_AHG_VALID;
			qp->s_flags |= RVT_S_AHG_VALID;
		}
		}
@@ -804,7 +803,6 @@ void hfi1_make_ruc_header(struct rvt_qp *qp, struct hfi1_other_headers *ohdr,
	priv->s_hdr->tx_flags = 0;
	priv->s_hdr->tx_flags = 0;
	priv->s_hdr->ahgcount = 0;
	priv->s_hdr->ahgcount = 0;
	priv->s_hdr->ahgidx = 0;
	priv->s_hdr->ahgidx = 0;
	priv->s_hdr->sde = NULL;
	if (qp->s_mig_state == IB_MIG_MIGRATED)
	if (qp->s_mig_state == IB_MIG_MIGRATED)
		bth0 |= IB_BTH_MIG_REQ;
		bth0 |= IB_BTH_MIG_REQ;
	else
	else
+0 −1
Original line number Original line Diff line number Diff line
@@ -433,7 +433,6 @@ int hfi1_make_ud_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
	priv->s_hdr->ahgcount = 0;
	priv->s_hdr->ahgcount = 0;
	priv->s_hdr->ahgidx = 0;
	priv->s_hdr->ahgidx = 0;
	priv->s_hdr->tx_flags = 0;
	priv->s_hdr->tx_flags = 0;
	priv->s_hdr->sde = NULL;
	/* pbc */
	/* pbc */
	ps->s_txreq->hdr_dwords = qp->s_hdrwords + 2;
	ps->s_txreq->hdr_dwords = qp->s_hdrwords + 2;


+0 −2
Original line number Original line Diff line number Diff line
@@ -179,12 +179,10 @@ struct hfi1_ib_header {
} __packed;
} __packed;


struct ahg_ib_header {
struct ahg_ib_header {
	struct sdma_engine *sde;
	u32 ahgdesc[2];
	u32 ahgdesc[2];
	u16 tx_flags;
	u16 tx_flags;
	u8 ahgcount;
	u8 ahgcount;
	u8 ahgidx;
	u8 ahgidx;
	struct hfi1_ib_header ibh;
};
};


struct hfi1_pio_header {
struct hfi1_pio_header {