Commit 8f8b937f authored by shengjh's avatar shengjh 🇨🇳
Browse files

tags must add to no empty chunk.

parent eebba37e
......@@ -972,7 +972,7 @@ HomaTransport::OutboundMessage::prepareRequestAndUnsched()
packet->addTag<FragmentationReq>()->setDontFragment(true);
const auto &unschedDataPart = makeShared<HomaPkt>();
unschedDataPart->addTag<Homa>()->setHomaTransport(sxController->transport);//SJH: is it right to add tag to chunk?
unschedDataPart->setPktType(pktType);
// set homa fields
......@@ -981,7 +981,7 @@ HomaTransport::OutboundMessage::prepareRequestAndUnsched()
unschedDataPart->setMsgId(this->msgId);
unschedDataPart->setPriority(unschedPrioVec[i]);
// EV_DEBUG << "Attaching UserPriorityReq" << EV_FIELD(packet) << EV_ENDL;
packet->addTagIfAbsent<UserPriorityReq>()->setUserPriority(unschedPrioVec[i]);
// fill up unschedFields
UnschedFields unschedFields;
......@@ -1009,7 +1009,9 @@ HomaTransport::OutboundMessage::prepareRequestAndUnsched()
}
unschedDataPart->setUnschedFields(unschedFields);
unschedDataPart->setChunkLength(b(B(HomaPktHelper::getHeaderSize(unschedDataPart) + HomaPktHelper::getDataBytes(unschedDataPart) )));
unschedDataPart->addTagIfAbsent<Homa>()->setHomaTransport(sxController->transport);//SJH: is it right to add tag to chunk?
packet->insertAtBack(unschedDataPart);
packet->addTagIfAbsent<UserPriorityReq>()->setUserPriority(unschedPrioVec[i]);
txPkts.push(packet);
/**
EV << "Unsched pkt with msgId " << this->msgId << " ready for"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment