DragonFly commits List (threaded) for 2007-05
DragonFly BSD
DragonFly commits List (threaded) for 2007-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/dev/netif/xl if_xl.c


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 May 2007 23:21:43 -0700 (PDT)

sephe       2007/05/18 23:21:43 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/xl     if_xl.c 
  Log:
  - Turn on VLAN_MTU for 905B typed cards.
  - Adjust SIOCSIFCAP logic, after turning on VLAN_MTU.
  
  Tested-with: 3c905C-TX, 3c575C, 3c905-TX
  
  #
  # Non-905B cards were claimed to work with VLAN_MTU, but
  # it turns out my 3c905-TX can't hear packets, whose size
  # are > 1514 (excluding CRC).
  #
  # I conducted the following two 'ping' tests:
  #
  # 192.168.4.2 vlan iface, whose parent device is a 3c905-TX
  # based xl(4)
  # 192.168.4.1 vlan iface, whose parent device is a 3c575
  # based xl(4)
  #
  # TEST1:
  # On 192.168.4.1
  # Run 'tcpdump -e -ni xl1' when 'ping -s 1468 192.168.4.2':
  # 14:09:06.049912 00:10:5a:9f:bc:d5 > 00:01:02:e3:dd:b5,
  # ethertype 802.1Q (0x8100), length 1514: vlan 11, p 0,
  # ethertype IPv4, 192.168.4.2 > 192.168.4.1: ICMP echo reply,
  # id 1283, seq 4352, length 1476
  # 14:09:07.069522 00:01:02:e3:dd:b5 > 00:10:5a:9f:bc:d5,
  # ethertype 802.1Q (0x8100), length 1514: vlan 11, p 0,
  # ethertype IPv4, 192.168.4.1 > 192.168.4.2: ICMP echo request,
  # id 1283, seq 4608, length 1476
  #
  # Above test shows 3c905 still works when packets size is 1514.
  #
  #
  # TEST2:
  # Run 'tcpdump -e -ni xl1' when 'ping -s 1469 192.168.4.2':
  # 14:12:07.119839 00:01:02:e3:dd:b5 > 00:10:5a:9f:bc:d5,
  # ethertype 802.1Q (0x8100), length 1515: vlan 11, p 0,
  # ethertype IPv4, 192.168.4.1 > 192.168.4.2: ICMP echo request,
  # id 2563, seq 2048, length 1477
  # 14:12:08.140366 00:01:02:e3:dd:b5 > 00:10:5a:9f:bc:d5,
  # ethertype 802.1Q (0x8100), length 1515: vlan 11, p 0,
  # ethertype IPv4, 192.168.4.1 > 192.168.4.2: ICMP echo request,
  # id 2563, seq 2304, length 1477
  #
  # Tcpdump is also run on 192.168.4.2 during the second test,
  # nothing pops up at all.
  #
  # Above test shows 3c905 does NOT work when packets size is 1515,
  # i.e. > 1514
  #
  
  Revision  Changes    Path
  1.48      +9 -9      src/sys/dev/netif/xl/if_xl.c


http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/xl/if_xl.c.diff?r1=1.47&r2=1.48&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]