aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorNoah Goldstein <[email protected]>2023-09-24 09:35:49 -0500
committerLinus Torvalds <[email protected]>2024-01-04 15:33:14 -0800
commit5d4acb62853abac1da2deebcb1c1c5b79219bf3b (patch)
treee8a8ec3331bbf87243bf233c425be341f5ee031a /drivers/net/ethernet/intel/ice/ice_common.c
parent5eff55d725a4e0dc6fc7709c4b1ca4fe40588d07 (diff)
x86/csum: Remove unnecessary odd handling
The special case for odd aligned buffers is unnecessary and mostly just adds overhead. Aligned buffers is the expectations, and even for unaligned buffer, the only case that was helped is if the buffer was 1-byte from word aligned which is ~1/7 of the cases. Overall it seems highly unlikely to be worth to extra branch. It was left in the previous perf improvement patch because I was erroneously comparing the exact output of `csum_partial(...)`, but really we only need `csum_fold(csum_partial(...))` to match so its safe to remove. All csum kunit tests pass. Signed-off-by: Noah Goldstein <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Reviewed-by: David Laight <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions