Skip to content

Commit

Permalink
make kSessionCredits configurable at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
hodsdon committed Jan 20, 2023
1 parent 05856c8 commit 4472dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eRPC/src/sm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace erpc {
// Proxies always use 16
// Corfu's sequencer and servers use 8
// CorfuMason/ZK-Mason uses 4 for servers and the sequencer
static constexpr size_t kSessionCredits = 128;
static constexpr size_t kSessionCredits = SESSION_CREDITS;
static_assert(is_power_of_two(kSessionCredits), "");

/// Request window size. This must be a power of two for fast multiplication and
Expand Down
2 changes: 1 addition & 1 deletion ltomake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cp ../bitmap.h $APPS_DIR # not needed for client
cd $ERPC_DIR
echo $COMPONENT > scripts/autorun_app_file

cmake . -DPERF=ON -DTRANSPORT=dpdk -DCOMMON_DIR=$COMMON_DIR -DLOGGER_DIR=$LOGGER_DIR -DLOG_LEVEL="warn" #-DSESSION_CREDITS=$SESSION_CREDITS -DLOG_LEVEL="warn"
cmake . -DPERF=ON -DTRANSPORT=dpdk -DCOMMON_DIR=$COMMON_DIR -DLOGGER_DIR=$LOGGER_DIR -DLOG_LEVEL="warn" -DSESSION_CREDITS=$SESSION_CREDITS #-DLOG_LEVEL="warn"
make -j -I /usr/include/boost/ -lboost_serialization

cp build/$COMPONENT $SRC_DIR

0 comments on commit 4472dd4

Please sign in to comment.