Skip to content

Commit 1df339f

Browse files
committed
Move server-specific configuration changes from the networking stack to the server implementation
So they don't affect the client.
1 parent ca84f11 commit 1df339f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/mica/network/dpdk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ struct BasicDPDKConfig {
4444
// static constexpr uint16_t kMaxBurstSize = 32;
4545

4646
// The number of RX/TX descriptors in each queue.
47-
static constexpr uint16_t kRXDescCount = 256;
47+
static constexpr uint16_t kRXDescCount = 128;
4848
static constexpr uint16_t kTXDescCount = 512;
4949

5050
// The number of spare packet buffer count per queue.
5151
static constexpr uint16_t kSpareMBufCount =
52-
6144 - kRXDescCount - kTXDescCount;
52+
4096 - kRXDescCount - kTXDescCount;
5353

5454
// The minimum required link speed (Gbps).
5555
static constexpr uint32_t kMinLinkSpeed = 10;

src/mica/test/server.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
struct DPDKConfig : public ::mica::network::BasicDPDKConfig {
66
static constexpr bool kVerbose = true;
7+
static constexpr uint16_t kRXDescCount = 256;
8+
static constexpr uint16_t kSpareMBufCount = 6144 - kRXDescCount - kTXDescCount;
79
};
810

911
struct PartitionsConfig : public ::mica::processor::BasicPartitionsConfig {

0 commit comments

Comments
 (0)