diff options
| author | Yunsheng Lin <[email protected]> | 2019-06-07 10:03:04 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-06-09 13:20:58 -0700 |
| commit | e2ee1c5a5944231a79cf6d64c2a703ea08a2e411 (patch) | |
| tree | a7db21af809d332aa5c76a098dfbcad809272384 /tools/perf/scripts/python | |
| parent | f5d20e396abf7f8b665b05bf906079084426681a (diff) | |
net: hns3: make HW GRO handling compliant with SW GRO
Currently when a GRO packet is assembled by HW, the checksum is
modified to reflect the entire packet by HW and skb->ip_summed is
set to CHECKSUM_UNNECESSARY, which is not compliant with SW GRO.
This patch sets up skb's network and transport header, sets the
GRO packet's checksum according to pseudo header and set the
skb->ip_summed to CHECKSUM_PARTIAL.
This patch also use gso_size to distinguish GRO packet from
normal packet, use eth_type_vlan to check the VLAN type and set
the SKB_GSO_TCP_FIXEDID according to BD info during HW GRO info
processing.
Signed-off-by: Yunsheng Lin <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions