]> git.baikalelectronics.ru Git - kernel.git/commit
ibmveth: Identify ingress large send packets.
authorDavid Wilder <dwilder@us.ibm.com>
Tue, 13 Oct 2020 23:20:14 +0000 (16:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 Oct 2020 03:16:31 +0000 (20:16 -0700)
commit79bce5759acad88ec54c5770aa1503b15db2d246
tree0aee47ec3e5923f8c738c877d17b7efbc7a016a1
parentfc28496ee51d3b14a8575a96b2e06f4910a87dc4
ibmveth: Identify ingress large send packets.

Ingress large send packets are identified by either:
The IBMVETH_RXQ_LRG_PKT flag in the receive buffer
or with a -1 placed in the ip header checksum.
The method used depends on firmware version. Frame
geometry and sufficient header validation is performed by the
hypervisor eliminating the need for further header checks here.

Fixes: 3827ef45ff8a ("ibmveth: set correct gso_size and gso_type")
Signed-off-by: David Wilder <dwilder@us.ibm.com>
Reviewed-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Reviewed-by: Cristobal Forno <cris.forno@ibm.com>
Reviewed-by: Pradeep Satyanarayana <pradeeps@linux.vnet.ibm.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmveth.c