gianfar ethernet driver losses Rx-Messages

From: Vishnu Motghare
Date: Mon Apr 11 2022 - 02:31:22 EST


I have Freescale LS1021A target with kernel version - 5.10.35-rt. The
device has 3 ethernet ports & one of the ports is used for EtherCAT.
The Samba service is running on the device, which configures on all
interfaces by default. We have observed that EtherCAT master losses RX
messages frequently. On analyzing the tcpdump messages, it is seen
that loss of RX message is seen immediately after NetBIOS packets
which are from the samba service. The loss of message counter reported
by EtherCat Master & Kernel driver is the same. To get the missed RX
error I've applied a patch from the mainline kernel -
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/drivers/net/ethernet/freescale/gianfar.c?id=14870b75fe0be5c565339f008ba25326f86a7ce8

How gianfar ethernet driver lose RX messages immediately after NetBios
packets? Any help is appreciated.

ifconfig output:

ETH1 Link encap:Ethernet HWaddr 70:B3:D5:AB:45:73
inet addr:192.168.137.248 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:737729 errors:0 dropped:8 overruns:0 frame:0
TX packets:737753 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96268280 (91.8 MiB) TX bytes:96273512 (91.8 MiB)
Base address:0x3000