[Bug 263817] dwc: dwc driver will re-count the number of sent/received uni-cast mac address packets and multicast mac address packets

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 May 2022 21:36:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263817

--- Comment #1 from Jiahao LI <jiahali@blackberry.com> ---
Update the test result for showing the number of counting tx/rx packets is
doubled. The previous result did not show the doubled counting in rx, Ipkts.

In dwc driver's Freebsd terminal

root@generic:~ # arp -d 192.168.3.2
192.168.3.2 (192.168.3.2) deleted
root@generic:~ # netstat -nI dwc0
Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs
 Coll
dwc0   1500 <Link#1>      fa:97:92:f6:f1:09       20     0     0       42     0
    0
dwc0      - 192.168.3.0/2 192.168.3.129            2     -     -        2     -
    -
root@generic:~ # ping -c 1 192.168.3.2
PING 192.168.3.2 (192.168.3.2): 56 data bytes
64 bytes from 192.168.3.2: icmp_seq=0 ttl=64 time=0.606 ms

--- 192.168.3.2 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.606/0.606/0.606/0.000 ms
root@generic:~ # netstat -nI dwc0
Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs
 Coll
dwc0   1500 <Link#1>      fa:97:92:f6:f1:09       24     0     0       46     0
    0
dwc0      - 192.168.3.0/2 192.168.3.129            3     -     -        3     -
    -


Packets captured by the tcpdump at Host Terminal 1

$ sudo tcpdump -U -pi enp0s31f6 -en
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp0s31f6, link-type EN10MB (Ethernet), capture size 262144 bytes
17:33:20.682566 fa:97:92:f6:f1:09 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806),
length 60: Request who-has 192.168.3.2 tell 192.168.3.129, length 46
17:33:20.682597 8c:8c:aa:c1:2b:c3 > fa:97:92:f6:f1:09, ethertype ARP (0x0806),
length 42: Reply 192.168.3.2 is-at 8c:8c:aa:c1:2b:c3, length 28
17:33:20.682807 fa:97:92:f6:f1:09 > 8c:8c:aa:c1:2b:c3, ethertype IPv4 (0x0800),
length 98: 192.168.3.129 > 192.168.3.2: ICMP echo request, id 48389, seq 0,
length 64
17:33:20.682864 8c:8c:aa:c1:2b:c3 > fa:97:92:f6:f1:09, ethertype IPv4 (0x0800),
length 98: 192.168.3.2 > 192.168.3.129: ICMP echo reply, id 48389, seq 0,
length 64
^C
4 packets captured
4 packets received by filter
0 packets dropped by kernel

-- 
You are receiving this mail because:
You are the assignee for the bug.