Changeset 3897 in Sophya for trunk/AddOn/TAcq/brparam.cc


Ignore:
Timestamp:
Oct 4, 2010, 4:19:59 PM (15 years ago)
Author:
ansari
Message:

Amelioration des classes PCIEToEthernet et EthernetReader pour eviter des situations de blocage lorsque lecture avec ForceSameFrameCounter, Reza 04/10/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brparam.cc

    r3883 r3897  
    135135  tcpportid=BRSPORTID;
    136136  pci2eth_fgdirect=false;
    137   ethr_nlink = 0;
    138   ethr_forcesamefc_ = false;
     137  ethr_nlink=0;
     138  ethr_forcesamefc_=false;
     139  ethr_sfc_maxdpc_=50;
     140  ethr_sfc_maxresync_=50;
    139141
    140142  skysource="";
     
    208210  ethr_nlink=p.ethr_nlink;
    209211  ethr_forcesamefc_=p.ethr_forcesamefc_;
     212  ethr_sfc_maxdpc_=p.ethr_sfc_maxdpc_;
     213  ethr_sfc_maxresync_=p.ethr_sfc_maxresync_;
    210214
    211215  skysource=p.skysource;
     
    254258  }
    255259  ethr_nlink=conf.IParam("ethrnlink",0,0);   // Nombre de sources de paquets en reception ethernet
    256   if (conf.HasKey("ethrforcesamefc"))   ethr_forcesamefc_=true;   // force SAME FrameCounter   on all links
     260  if (conf.HasKey("ethrforcesamefc"))  {
     261    ethr_forcesamefc_=true;   // force SAME FrameCounter   on all links
     262    ethr_sfc_maxdpc_=conf.IParam("ethrforcesamefc",0,50);
     263    ethr_sfc_maxresync_=conf.IParam("ethrforcesamefc",1,50);
     264  }
    257265
    258266  //  Parametre de controle du monitoring
     
    387395    cout << endl;
    388396  }
    389   cout << " TCP-PortId=" << tcpportid << " EthernetRead NbSources (=NbLinks)= " << ethr_nlink
    390        << ((ethr_forcesamefc_)?" ForceSameFrameCounter read mode":" AllOKPaquets read mode ") << endl;
     397  cout << " TCP-PortId=" << tcpportid << " EthernetRead NbSources (=NbLinks)= " << ethr_nlink << endl;
     398  if (ethr_forcesamefc_)
     399    cout << "EthernetReader mode: ForceSameFrameCounter read mode with Max_PaquetCounterDiff= "
     400         << ethr_sfc_maxdpc_ << " MaxNbResync=" << ethr_sfc_maxresync_ << endl;
     401  else
     402    cout << "EthernetReader mode: AllOKPaquets read mode " << endl;
    391403
    392404  if (fgdoProc>0)
Note: See TracChangeset for help on using the changeset viewer.