Home
last modified time | relevance | path

Searched hist:d0419551d96c8f995bdf6388a8e69684be33f9b5 (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/dev/ena/
H A Dena.cdiff d0419551d96c8f995bdf6388a8e69684be33f9b5 Wed Aug 07 08:24:22 CEST 2024 Osama Abboud <osamaabb@amazon.com> ena: Support max large LLQ depth from the device

Large LLQ depth size is currently calculated by dividing the maximum
possible size of LLQ by 2.
In newer paltforms, starting from r8g the size of BAR2,
which contains LLQ, will be increased, and the maximum depth of
wide LLQ will be set according to a value set by the device, instead of
hardcoded division by 2.

The new value will be stored by the device in max_wide_llq_depth field
for drivers that expose ENA_ADMIN_LLQ_FEATURE_VERSION_1 or higher to
the device.

There is an assumption that max_llq_depth >= max_wide_llq_depth, since
they both use the same bar, and if it is possible to have a wide LLQ
of size max_wide_llq_depth, it is possible to have a normal LLQ of the
same size, since it will occupy half of the space.

Also moved the large LLQ case calculation of max_tx_queue_size
before its rounddown.

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.