Subject: Re: driver for webgear aviator 2.4 card
To: Christian E. Hopps <chopps@merit.edu>
From: Johan Danielsson <joda@pdc.kth.se>
List: current-users
Date: 01/27/2000 16:14:31
I see duplicate packets when pinging another host, occasionally *many*
dups (like more than 10). Unless the hardware is doing this by itself,
my guess is that it's the receiver side that does something
funny. This is some kernel output what sending a single icmp packet to
this host (ping -c 1). As you can see two packets are handled in each
direction. My guess is that the driver fails to remove the packet from
the receive buffer on the card.

Any ideas?

:818681 0:000124: ray0: ray_rccs_intr idx 78 cmd 0x80 stat 1
:818805 0:000108: ray0: recv pktlen 116 nofrag -265416488
:818913 0:000123: ray0: recv ccs index 78
:819036 0:000093: ray0: recv frag index 78 len 116 bufp 0x9bf3 ni 255
:819129 0:000351: ray0: recv frag count 0
:819480 0:000085: ray0: recv got packet pktlen 116 actual 116
:819565 0:000123: ray0: interrupt handled 1
:819688 0:000094: ray0: ray_intr
:819782 0:000082: ray0: ray_rccs_intr idx 78 cmd 0x80 stat 0
:819864 0:000103: ray0: recv pktlen 116 nofrag -265416488
:819967 0:000118: ray0: recv ccs index 78
:820085 0:000093: ray0: recv frag index 78 len 116 bufp 0x9bf3 ni 255
:820178 0:000348: ray0: recv frag count 0
:820526 0:000086: ray0: recv got packet pktlen 116 actual 116
:820612 0:000114: ray0: interrupt handled 1
:820726 0:00012948984697:822374 0:002266: ray0: ray_intr
:824640 0:000106: ray0: ray_ccs_done idx 0 cmd 0x9 stat 2
:824746 0:000100: ray0: ray_check_scheduled enter schd 0x8 running 0x0 ready 1
:824846 0:000126: ray0: start free 14 qlen 1 qmax 50
:824972 0:000096: ray0: ray_cmd_cancel 0x8
:825068 0:000086: ray0: gotmbuf 0xf0615088
:825154 0:000081: ray0: mbuf.m_pkthdr.len 98
:825235 0:000084: ray0: got pulled up mbuf 0xf0615088
:825319 0:000091: ray0: i 0 previ 255
:825410 0:000096: ray0: ray_alloc_tx_ccs bufp 0x1020 idx 0 pidx 255 
:825506 0:000108: ray0: bufp 0x1024 new pktlen 116
:825614 0:000094: ray0: copying mbuf 0xf0615088 bufp 0x1024 len 32
:825708 0:000151: ray0: copying mbuf 0xf0615788 bufp 0x1044 len 84
:825859 0:000233: ray0: ray_start issueing 0 
:826092 0:000088: ray0: ray_check_scheduled exit sched 0x0 running 0x0 ready 0
:826180 0:000118: ray0: i948984697:826298 0:003017: ray0: ray_intr
:829315 0:000098: ray0: ray_ccs_done idx 0 cmd 0x9 stat 2
:829413 0:000096: ray0: ray_check_scheduled enter schd 0x0 running 0x0 ready 1
:829509 0:000119: ray0: ray_check_scheduled exit sched 0x0 running 0x0 ready 1
:829628 0:000117: ray0: interrupt handled 1
:829745 4:339199: ray0: ioctl: cmd 0x80206910 data 0xf7f9dda4
:168944 0:000140: ray0: ioctl: cmd SIOCSIFFLAGS
:169084 0:000088: ray0: ray_cmd_cancel 0x400
:169172 0:000084: ray0: ray_cmd_is_running 0x1
:169256 0:000086: ray0: alloc_ccs cmd 2
:169342 0:000093: ray0: ray_cmd_issue 0x400
:169435 0:000087: ray0: ray_cmd_ran 0x400
:169522 0:000082: ray0: ioctl: returns 0
:169604 0:000849: ray0: ray_intr
:170453 0:000094: ray0: ray_ccs_done idx 14 cmd 0x2 stat 2
:170547 0:000098: ray0: ray_update_params_done stat 2
:170645 0:000092: ray0: ray_cmd_done 0x400
:170737 0:000087: ray0: new promisc value 0
:170824 0:000083: ray0: free_ccs idx 14
:170907 0:000082: ray0: ray_check_scheduled enter schd 0x0 running 0x0 ready 1
:170989 0:000117: ray0: ray_check_scheduled exit sched 0x0 running 0x0 ready 1
:171106 0:000118: ray0: interrupt handled 1


Dumps of the incoming packets:

15:51:37.819677 e3:4a:8:0:45:0 e3:66:0:0:8f:48 0:54:a:2:0:0 0/488f/1ff 90: 
                         9f42 0800 cc6f 0dc9 0000 ba5a 9038 e230
                         0600 0809 0a0b 0c0d 0e0f 1011 1213 1415
                         1617 1819 1a1b 1c1d 1e1f 2021 2223 2425
                         2627 2829 2a2b 2c2d 2e2f 3031 3233 3435
15:51:37.820719 e3:4a:8:0:45:0 e3:66:0:0:8f:48 0:54:a:2:0:0 0/488f/1ff 90: 
                         9f42 0800 cc6f 0dc9 0000 ba5a 9038 e230
                         0600 0809 0a0b 0c0d 0e0f 1011 1213 1415
                         1617 1819 1a1b 1c1d 1e1f 2021 2223 2425
                         2627 2829 2a2b 2c2d 2e2f 3031 3233 3435

/Johan