forked from Minki/linux
IB/hfi1: Remove rcvctrl from ctxtdata
It is only ever written. Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
b257843128
commit
b67bbc5923
@ -11952,9 +11952,8 @@ void hfi1_rcvctrl(struct hfi1_devdata *dd, unsigned int op,
|
|||||||
rcvctrl |= RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK;
|
rcvctrl |= RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK;
|
||||||
if (op & HFI1_RCVCTRL_NO_EGR_DROP_DIS)
|
if (op & HFI1_RCVCTRL_NO_EGR_DROP_DIS)
|
||||||
rcvctrl &= ~RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK;
|
rcvctrl &= ~RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK;
|
||||||
rcd->rcvctrl = rcvctrl;
|
|
||||||
hfi1_cdbg(RCVCTRL, "ctxt %d rcvctrl 0x%llx\n", ctxt, rcvctrl);
|
hfi1_cdbg(RCVCTRL, "ctxt %d rcvctrl 0x%llx\n", ctxt, rcvctrl);
|
||||||
write_kctxt_csr(dd, ctxt, RCV_CTXT_CTRL, rcd->rcvctrl);
|
write_kctxt_csr(dd, ctxt, RCV_CTXT_CTRL, rcvctrl);
|
||||||
|
|
||||||
/* work around sticky RcvCtxtStatus.BlockedRHQFull */
|
/* work around sticky RcvCtxtStatus.BlockedRHQFull */
|
||||||
if (did_enable &&
|
if (did_enable &&
|
||||||
|
@ -193,8 +193,6 @@ struct exp_tid_set {
|
|||||||
|
|
||||||
typedef int (*rhf_rcv_function_ptr)(struct hfi1_packet *packet);
|
typedef int (*rhf_rcv_function_ptr)(struct hfi1_packet *packet);
|
||||||
struct hfi1_ctxtdata {
|
struct hfi1_ctxtdata {
|
||||||
/* shadow the ctxt's RcvCtrl register */
|
|
||||||
u64 rcvctrl;
|
|
||||||
/* rcvhdrq base, needs mmap before useful */
|
/* rcvhdrq base, needs mmap before useful */
|
||||||
void *rcvhdrq;
|
void *rcvhdrq;
|
||||||
/* kernel virtual address where hdrqtail is updated */
|
/* kernel virtual address where hdrqtail is updated */
|
||||||
|
Loading…
Reference in New Issue
Block a user