kernel_samsung_a53x/drivers/net/ethernet/broadcom
Adrian Cinal 0955b3849f net: bcmgenet: Fix FCS generation for fragmented skbuffs
[ Upstream commit e584f2ff1e6cc9b1d99e8a6b0f3415940d1b3eb3 ]

The flag DMA_TX_APPEND_CRC was only written to the first DMA descriptor
in the TX path, where each descriptor corresponds to a single skbuff
fragment (or the skbuff head). This led to packets with no FCS appearing
on the wire if the kernel allocated the packet in fragments, which would
always happen when using PACKET_MMAP/TPACKET (cf. tpacket_fill_skb() in
net/af_packet.c).

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Adrian Cinal <adriancinal1@gmail.com>
Acked-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20231228135638.1339245-1-adriancinal1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:06 +01:00
..
bnx2x net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
bnxt net: bnxt: fix a potential use-after-free in bnxt_init_tc 2024-11-18 12:11:39 +01:00
genet net: bcmgenet: Fix FCS generation for fragmented skbuffs 2024-11-18 12:12:06 +01:00
b44.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
b44.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx_enet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx_enet.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcmsysport.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
bcmsysport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bgmac-bcma-mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bgmac-bcma.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
bgmac-platform.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
bgmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bgmac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnx2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnx2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnx2_fw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sb1250-mac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00