Changeset 3757 in Sophya for trunk/AddOn/TAcq/brparam.cc
- Timestamp:
- Apr 30, 2010, 12:54:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brparam.cc
r3704 r3757 4 4 #include "strutilxx.h" 5 5 #include "bracqvers.h" 6 7 #ifndef BRSPORTID 8 #define BRSPORTID 6912 9 #endif 6 10 7 11 /* --Methode-- */ … … 129 133 reducoffset=0; 130 134 135 tcpportid=BRSPORTID; 136 pci2eth_fgdirect=false; 137 ethr_nlink = 0; 138 131 139 skysource=""; 132 140 … … 181 189 redpqsize=p.redpqsize; 182 190 reducoffset=p.reducoffset; 191 192 pci2eth_fgdirect=p.pci2eth_fgdirect; 193 eths_targets=p.eths_targets; 194 ethr_nlink=p.ethr_nlink; 183 195 184 196 skysource=p.skysource; … … 215 227 reducoffset=(uint_4)conf.IParam("reducpaqsz",1,0); 216 228 } 229 // Mot cle pour le mode envoi-reception sur ethernet 230 tcpportid=conf.IParam("tcpportid",0,BRSPORTID); 231 if (conf.HasKey("pci2ethdirect")) pci2eth_fgdirect = true; // Transfer direct DMA -> Ethernet 232 if (conf.HasKey("ethrtargets")) { // Machines destinations des paquets 233 for(int it=0; it<conf.NbParam("ethrtargets"); it++) 234 eths_targets.push_back(conf.SParam("ethrtargets",it)); 235 } 236 ethr_nlink=conf.IParam("ethrnlink",0,0); // Nombre de sources de paquets en reception ethernet 237 238 217 239 if (conf.HasKey("monitor")) { 218 240 fgdoProc=true; … … 222 244 } 223 245 nopciLossRate=conf.DParam("nopcilossrate",0,0.); 224 225 246 fg_hard_ctrlc=conf.HasKey("hard_ctrlc"); 226 247 if (conf.HasKey("nosavesigfits")) savesigfits=false; … … 322 343 os << " PaquetSize Reduction, ReducedSize=" << redpqsize << " Offset=" << reducoffset << endl; 323 344 } 345 if (eths_targets.size()>0) { 346 cout << " DMA->Ethernet NbTargets=" << eths_targets.size() << ((pci2eth_fgdirect)?" (DirectTransferMode) " : " " ) << " :" << endl; 347 for(size_t it=0; it<eths_targets.size(); it++) cout << eths_targets[it] << " , "; 348 cout << endl; 349 } 350 cout << " EthernetRead NbSources (=NbLinks)= " << ethr_nlink << endl; 324 351 if (fgdoProc>0) 325 352 os << " Monitoring NMeanProc=" << nmeanProc << " StepProc=" << stepProc << " NMaxProc=" << nmaxProc << endl;
Note:
See TracChangeset
for help on using the changeset viewer.