summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2021-05-14 06:25:09 +0300
committerDavid S. Miller <davem@davemloft.net>2021-05-15 01:07:33 +0300
commit796640778c26f3d99fde173bb7b1d726b5f0d816 (patch)
treed13f9583f86564eb5bf49d509d04ee3adb0c3b07 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentfc25f9f631acad4f4d0089fc400f2943c989522c (diff)
downloadlinux-796640778c26f3d99fde173bb7b1d726b5f0d816.tar.xz
net: hns3: support RXD advanced layout
Currently, the driver gets packet type by parsing the L3_ID/L4_ID/OL3_ID/OL4_ID from RX descriptor, it's time-consuming. Now some new devices support RXD advanced layout, which combines previous OL3_ID/OL4_ID to 8bit ptype field, so the driver gets packet type by looking up only one table, and L3_ID/L4_ID become reserved fields. Considering compatibility, the firmware will report capability of RXD advanced layout, the driver will identify and enable it by default. This patch provides basic function: identify and enable the RXD advanced layout, and refactor out hns3_rx_checksum() by using ptype table to handle RX checksum if supported. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions