diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-03-27 19:50:00 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-27 19:50:00 -0700 |
commit | da954ae18cdbff77b8dec4be544221f6860355c2 (patch) | |
tree | e3596032b7a79c5c42996c06c163a76afb3b033e /net/unix/unix_bpf.c | |
parent | 2bcc74ffd21a748fb310135175a1f6b271397e0f (diff) | |
parent | 060cdac218eaf3650d7556e4ed8b6d2bd79d4a0c (diff) |
Merge branch 'add-tx-push-buf-len-param-to-ethtool'
Shay Agroskin says:
====================
Add tx push buf len param to ethtool
This patchset adds a new sub-configuration to ethtool get/set queue
params (ethtool -g) called 'tx-push-buf-len'.
This configuration specifies the maximum number of bytes of a
transmitted packet a driver can push directly to the underlying
device ('push' mode). The motivation for pushing some of the bytes to
the device has the advantages of
- Allowing a smart device to take fast actions based on the packet's
header
- Reducing latency for small packets that can be copied completely into
the device
This new param is practically similar to tx-copybreak value that can be
set using ethtool's tunable but conceptually serves a different purpose.
While tx-copybreak is used to reduce the overhead of DMA mapping and
makes no sense to use if less than the whole segment gets copied,
tx-push-buf-len allows to improve performance by analyzing the packet's
data (usually headers) before performing the DMA operation.
The configuration can be queried and set using the commands:
$ ethtool -g [interface]
# ethtool -G [interface] tx-push-buf-len [number of bytes]
This patchset also adds support for the new configuration in ENA driver
for which this parameter ensures efficient resources management on the
device side.
====================
Link: https://lore.kernel.org/r/20230323163610.1281468-1-shayagr@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions