summaryrefslogtreecommitdiff
path: root/drivers/scsi/ppa.h
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2021-04-08 20:39:04 -0400
committerJakub Kicinski <kuba@kernel.org>2021-04-09 12:49:38 -0700
commit3bc41d6d2721d5168a8f7fea34028a5332068f5e (patch)
tree49f60782ab19f86874a50804a9f7d07addba04fb /drivers/scsi/ppa.h
parent864db232dc7036aa2de19749c3d5be0143b24f8f (diff)
lan743x: fix ethernet frame cutoff issue
The ethernet frame length is calculated incorrectly. Depending on the value of RX_HEAD_PADDING, this may result in ethernet frames that are too short (cut off at the end), or too long (garbage added to the end). Fix by calculating the ethernet frame length correctly. For added clarity, use the ETH_FCS_LEN constant in the calculation. Many thanks to Heiner Kallweit for suggesting this solution. Suggested-by: Heiner Kallweit <hkallweit1@gmail.com> Fixes: 3e21a10fdea3 ("lan743x: trim all 4 bytes of the FCS; not just 2") Link: https://lore.kernel.org/lkml/20210408172353.21143-1-TheSven73@gmail.com/ Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com> Reviewed-by: George McCollister <george.mccollister@gmail.com> Tested-by: George McCollister <george.mccollister@gmail.com> Link: https://lore.kernel.org/r/20210409003904.8957-1-TheSven73@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/scsi/ppa.h')
0 files changed, 0 insertions, 0 deletions