Skip to content

Commit 4f5ef89

Browse files
committed
[bench-dma] Remove obsolete --links option
1 parent 953931c commit 4f5ef89

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/CommandLineUtilities/ProgramDmaBench.cxx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ constexpr auto PACKET_COUNTER_INITIAL_VALUE = std::numeric_limits<uint32_t>::max
6868
/// Initial value for link event counters
6969
constexpr auto EVENT_COUNTER_INITIAL_VALUE = std::numeric_limits<uint32_t>::max();
7070
/// Maximum supported links
71-
constexpr auto MAX_LINKS = 32;
71+
constexpr auto MAX_LINKS = 12;
7272
/// Interval for low priority thread (display updates, etc)
7373
constexpr auto LOW_PRIORITY_INTERVAL = 10ms;
7474
/// Fields: Time(hour:minute:second), Pages pushed, Pages read, Errors, °C
@@ -145,9 +145,6 @@ class ProgramDmaBench : public Program
145145
po::bool_switch(&mOptions.fastCheckEnabled),
146146
"Enable fast error checking");
147147
Options::addOptionCardId(options);
148-
options.add_options()("links",
149-
po::value<std::string>(&mOptions.links)->default_value("0"),
150-
"Links to open. A comma separated list of integers or ranges, e.g. '0,2,5-10'");
151148
options.add_options()("max-rdh-packetcount",
152149
po::value<size_t>(&mOptions.maxRdhPacketCounter)->default_value(255),
153150
"Maximum packet counter expected in the RDH");
@@ -269,7 +266,6 @@ class ProgramDmaBench : public Program
269266
params.setChannelNumber(mOptions.dmaChannel);
270267
params.setBufferParameters(buffer_parameters::Memory{ mMemoryMappedFile->getAddress(),
271268
mMemoryMappedFile->getSize() });
272-
params.setLinkMask(Parameters::linkMaskFromString(mOptions.links));
273269

274270
mInfinitePages = (mOptions.maxBytes <= 0);
275271
mSuperpageLimit = mOptions.maxBytes / mSuperpageSize;
@@ -1141,7 +1137,6 @@ class ProgramDmaBench : public Program
11411137
bool noRemovePagesFile = false;
11421138
std::string fileOutputPathBin;
11431139
std::string fileOutputPathAscii;
1144-
std::string links;
11451140
bool bufferFullCheck = false;
11461141
size_t dmaPageSize;
11471142
std::string dataSourceString;

0 commit comments

Comments
 (0)