Searched hist:"4668 ae1fbcab89af5ffbb161d4c70b25ce4c50f4" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bgmac.c | diff 4668ae1fbcab89af5ffbb161d4c70b25ce4c50f4 Tue Apr 14 05:08:01 CDT 2015 Felix Fietkau <nbd@openwrt.org> bgmac: fix DMA rx corruption
The driver needs to inform the hardware about the first invalid (not yet filled) rx slot, by writing its DMA descriptor pointer offset to the BGMAC_DMA_RX_INDEX register.
This register was set to a value exceeding the rx ring size, effectively allowing the hardware constant access to the full ring, regardless of which slots are initialized.
To fix this issue, always mark the last filled rx slot as invalid.
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|