Hello Ti,
Here is an additional question from the link below.
https://e2e.ti.com/support/processors/f/791/t/927724
eth1 was also used for further testing.
If you set up as below and continue to up/down eth0, you will not receive eth0 packets at all.
eth0/eth1 is connected to the switch hub and is listening to multicast IP.
[root@(none) ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 38:D2:69:5D:0D:C5
inet addr:10.254.254.100 Bcast:10.254.254.127 Mask:255.255.255.128
inet6 addr: fe80::3ad2:69ff:fe5d:dc5/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:290448 errors:0 dropped:0 overruns:0 frame:0
TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:411939372 (392.8 MiB) TX bytes:12438 (12.1 KiB)
Interrupt:173
eth1 Link encap:Ethernet HWaddr 38:D2:69:5D:0D:C7
inet addr:10.254.254.200 Bcast:10.254.254.255 Mask:255.255.255.128
inet6 addr: fe80::3ad2:69ff:fe5d:dc7/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1584198 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2246652148 (2.0 GiB) TX bytes:1068 (1.0 KiB)
eth2 Link encap:Ethernet HWaddr 9A:49:3F:C0:F8:17
inet addr:192.168.0.123 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::9849:3fff:fec0:f817/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5509 errors:0 dropped:2040 overruns:0 frame:0
TX packets:2427 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:432694 (422.5 KiB) TX bytes:619873 (605.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:358 errors:0 dropped:0 overruns:0 frame:0
TX packets:358 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:189024 (184.5 KiB) TX bytes:189024 (184.5 KiB)
[root@(none) ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth2
10.254.254.0 * 255.255.255.128 U 0 0 0 eth0
10.254.254.128 * 255.255.255.128 U 0 0 0 eth1
192.168.0.0 * 255.255.0.0 U 0 0 0 eth2
[root@(none) ~]#
When normal,
[root@(none) ~]# ethtool -S eth0
NIC statistics:
Good Rx Frames: 358624
Broadcast Rx Frames: 8
Multicast Rx Frames: 358616
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 510031260
Good Tx Frames: 30
Broadcast Tx Frames: 0
Multicast Tx Frames: 30
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 2256
Rx + Tx 64 Octet Frames: 28
Rx + Tx 65-127 Octet Frames: 39
Rx + Tx 128-255 Octet Frames: 10
Rx + Tx 256-511 Octet Frames: 0
Rx + Tx 512-1023 Octet Frames: 0
Rx + Tx 1024-Up Octet Frames: 358577
Net Octets: 510033516
Rx Start of Frame Overruns: 0
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan: head_enqueue: 1
Rx DMA chan: tail_enqueue: 332082
Rx DMA chan: pad_enqueue: 0
Rx DMA chan: misqueued: 0
Rx DMA chan: desc_alloc_fail: 0
Rx DMA chan: pad_alloc_fail: 0
Rx DMA chan: runt_receive_buf: 0
Rx DMA chan: runt_transmit_buf: 0
Rx DMA chan: empty_dequeue: 0
Rx DMA chan: busy_dequeue: 241006
Rx DMA chan: good_dequeue: 331955
Rx DMA chan: requeue: 0
Rx DMA chan: teardown_dequeue: 0
Tx DMA chan: head_enqueue: 30
Tx DMA chan: tail_enqueue: 0
Tx DMA chan: pad_enqueue: 0
Tx DMA chan: misqueued: 0
Tx DMA chan: desc_alloc_fail: 0
Tx DMA chan: pad_alloc_fail: 0
Tx DMA chan: runt_receive_buf: 0
Tx DMA chan: runt_transmit_buf: 14
Tx DMA chan: empty_dequeue: 30
Tx DMA chan: busy_dequeue: 0
Tx DMA chan: good_dequeue: 30
Tx DMA chan: requeue: 30
Tx DMA chan: teardown_dequeue: 0
When abnormal,
[root@(none) ~]# ethtool -S eth0
NIC statistics:
Good Rx Frames: 1347594
Broadcast Rx Frames: 39
Multicast Rx Frames: 1347555
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 1916559718
Good Tx Frames: 105
Broadcast Tx Frames: 0
Multicast Tx Frames: 105
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 8886
Rx + Tx 64 Octet Frames: 53
Rx + Tx 65-127 Octet Frames: 193
Rx + Tx 128-255 Octet Frames: 16
Rx + Tx 256-511 Octet Frames: 0
Rx + Tx 512-1023 Octet Frames: 0
Rx + Tx 1024-Up Octet Frames: 1347437
Net Octets: 1916568604
Rx Start of Frame Overruns: 169
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 169
Rx DMA chan: head_enqueue: 1
Rx DMA chan: tail_enqueue: 1320845
Rx DMA chan: pad_enqueue: 0
Rx DMA chan: misqueued: 2
Rx DMA chan: desc_alloc_fail: 0
Rx DMA chan: pad_alloc_fail: 0
Rx DMA chan: runt_receive_buf: 0
Rx DMA chan: runt_transmit_buf: 0
Rx DMA chan: empty_dequeue: 0
Rx DMA chan: busy_dequeue: 1448729
Rx DMA chan: good_dequeue: 1320718
Rx DMA chan: requeue: 1
Rx DMA chan: teardown_dequeue: 0
Tx DMA chan: head_enqueue: 105
Tx DMA chan: tail_enqueue: 0
Tx DMA chan: pad_enqueue: 0
Tx DMA chan: misqueued: 0
Tx DMA chan: desc_alloc_fail: 0
Tx DMA chan: pad_alloc_fail: 0
Tx DMA chan: runt_receive_buf: 0
Tx DMA chan: runt_transmit_buf: 22
Tx DMA chan: empty_dequeue: 105
Tx DMA chan: busy_dequeue: 0
Tx DMA chan: good_dequeue: 105
Tx DMA chan: requeue: 105
Tx DMA chan: teardown_dequeue: 0
Thank you,
Best regards.
Gyosun.