aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorAlexander Duyck <[email protected]>2018-05-07 11:08:34 -0700
committerDavid S. Miller <[email protected]>2018-05-08 22:30:06 -0400
commit9a0d41b3598ff62ecb26661bbfb1d523586cdea3 (patch)
treeee974ce5c61f56a2b9f64ed3b39fe2159308f049 /lib/mpi/mpiutil.c
parentb21c034b3df833b5d9db1cfdc3938dbb0d7995c6 (diff)
udp: Do not pass checksum as a parameter to GSO segmentation
This patch is meant to allow us to avoid having to recompute the checksum from scratch and have it passed as a parameter. Instead of taking that approach we can take advantage of the fact that the length that was used to compute the existing checksum is included in the UDP header. Finally to avoid the need to invert the result we can just call csum16_add and csum16_sub directly. By doing this we can avoid a number of instructions in the loop that is handling segmentation. Signed-off-by: Alexander Duyck <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions