diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2021-05-14 11:25:10 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-14 15:07:33 -0700 |
commit | 1ddc028ac84988b6b1c9ceb9d15acbf321735ca3 (patch) | |
tree | e8fb978c0232ab1df6a6b25a36fcdce310710f87 /drivers/sh/superhyway | |
parent | 796640778c26f3d99fde173bb7b1d726b5f0d816 (diff) |
net: hns3: refactor out RX completion checksum
Only when RXD advanced layout is enabled, in some cases
(e.g. ip fragments), the checksum of entire packet will be
calculated and filled in the least significant 16 bits of
the unused addr field.
So refactor out the handling of RX completion checksum: adjust
the location of the checksum in RX descriptor, and use ptype table
to identify whether this kind of checksum is calculated.
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sh/superhyway')
0 files changed, 0 insertions, 0 deletions