mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Kernel: Make number of RTL8168 rx/tx descriptors constexpr
This commit is contained in:
parent
e235c2e21c
commit
2548ee4149
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// FIXME: should this be increased? (maximum allowed here is 1024) - memory usage vs packet loss chance tradeoff
|
// FIXME: should this be increased? (maximum allowed here is 1024) - memory usage vs packet loss chance tradeoff
|
||||||
static const size_t number_of_rx_descriptors = 64;
|
static constexpr size_t number_of_rx_descriptors = 64;
|
||||||
static const size_t number_of_tx_descriptors = 16;
|
static constexpr size_t number_of_tx_descriptors = 16;
|
||||||
|
|
||||||
RTL8168NetworkAdapter(PCI::Address, u8 irq, NonnullOwnPtr<KString>);
|
RTL8168NetworkAdapter(PCI::Address, u8 irq, NonnullOwnPtr<KString>);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue