net: hns3: make hw gro handling compliant with sw gro
driver inclusion category: bugfix bugzilla: NA CVE: NA 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 gso 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. Feature or Bugfix:Bugfix Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录