Skip to content
Commit 0266ac45 authored by Keller, Jacob E's avatar Keller, Jacob E Committed by David S. Miller
Browse files

i40e: don't truncate match_method assignment



The .match_method field is a u8, so we shouldn't be casting to a u16,
and because it is only one byte, we do not need to byte swap anything.
Just assign the value directly. This avoids issues on Big Endian
architectures which would have byte swapped and then incorrectly
truncated the value.

Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Bimmy Pujari <bimmy.pujari@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6246168b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment