diff options
author | Shannon Nelson <shannon.nelson@amd.com> | 2023-09-18 15:21:34 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-20 10:52:31 +0100 |
commit | 4d9d72200d4c69710e8371c872449c46bcab646f (patch) | |
tree | 5573031c0dff51a8aa904999e1a6cef13defae33 /tools/testing/selftests/tc-testing/plugin-lib/nsPlugin.py | |
parent | 4fa7011d4f22d5b2e14cba19b524a4f90268b5c1 (diff) |
ionic: count SGs in packet to minimize linearize
There are some cases where an skb carries more frags than the
number of SGs that ionic can support per descriptor - this
forces the driver to linearize the skb. However, if this
is a TSO packet that is going to become multiple descriptors
(one per MTU-sized packet) and spread the frags across them,
this time-consuming linearization is likely not necessary.
We scan the frag list and count up the number of SGs that
would be created for each descriptor that would be generated,
and only linearize if we hit the SG limit on a descriptor.
In most cases, we won't even get to the frag list scan, so
this doesn't affect typical traffic.
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/nsPlugin.py')
0 files changed, 0 insertions, 0 deletions