From owner-freebsd-bugs@freebsd.org Wed Jun 10 15:02:14 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BEC73336EC8 for ; Wed, 10 Jun 2020 15:02:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49hqw64kznz470s for ; Wed, 10 Jun 2020 15:02:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A29C5336EC7; Wed, 10 Jun 2020 15:02:14 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A2605337100 for ; Wed, 10 Jun 2020 15:02:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49hqw63w4jz46qZ for ; Wed, 10 Jun 2020 15:02:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 81DDE8C91 for ; Wed, 10 Jun 2020 15:02:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 05AF2EZg038946 for ; Wed, 10 Jun 2020 15:02:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05AF2Eus038922 for bugs@FreeBSD.org; Wed, 10 Jun 2020 15:02:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247147] smsc driver VLAN packet reception does not work Date: Wed, 10 Jun 2020 15:02:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: iz-rpi03@hs-karlsruhe.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2020 15:02:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247147 Bug ID: 247147 Summary: smsc driver VLAN packet reception does not work Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: iz-rpi03@hs-karlsruhe.de Hello, while setting up a service on a smsc driver based VLAN I discovered that the interface does not receive any VLAN tagged packet but is able to send such. The system with the smsc interface is a RPi 3B hardware. The other system is a standard desktop. Both systems are connected via a unmanaged switch and running CURRENT. The RPi is at r361822, the desktop at r361721. To reproduce the bug, I set up a VLAN 1510 with a IPv4 address 10.151.15.25= 3/20 on the RPi 3B and 10.151.15.250/20 on the desktop.=20 Then I pinged the base interface addresses vice versa. Which worked as expected. After that I pinged the VLAN IPv4 addresses. Which does not work. As you can see by the following tcpdump output, the desktop gets the ARP requests from the RPi 3B and generates ARP replys, but the RPi 3B does not get them. Experimenting with static ARP entries does not fix the problem as the ICMP echo (replys) were not printed by tcpdump. At the moment it looks to me like the VLAN transmit path in the smsc driver is fine while, while the VLAN reception path is not working. Meanwhile a colleague tried the same with his RPi 3B+ (muge driver) successfully. Because of that I think it is smsc related. Directly following are two screen(1) logs from the RPi 3B and from the desktop, to show what I have tried and what the results were. Regards, Ralf +++ On the RPi 3B +++ # ifconfig ue0 ue0: flags=3D8843 metric 0 mtu 1500 options=3D80009 ether b8:27:eb:ee:12:27 inet 192.168.178.30 netmask 0xffffff00 broadcast 192.168.178.255 media: Ethernet autoselect (100baseTX ) status: active nd6 options=3D23 # ifconfig ue0.1510 create vlan 1510 vlandev ue0 inet 10.151.15.253/20 # ifconfig ue0.1510 ue0.1510: flags=3D8843 metric 0 mtu= 1500 options=3D80000 ether b8:27:eb:ee:12:27 inet 10.151.15.253 netmask 0xfffff000 broadcast 10.151.15.255 groups: vlan vlan: 1510 vlanpcp: 0 parent interface: ue0 media: Ethernet autoselect (100baseTX ) status: active nd6 options=3D21 # ping -c3 192.168.178.20 PING 192.168.178.20 (192.168.178.20): 56 data bytes 64 bytes from 192.168.178.20: icmp_seq=3D0 ttl=3D64 time=3D1.583 ms 64 bytes from 192.168.178.20: icmp_seq=3D1 ttl=3D64 time=3D0.859 ms 64 bytes from 192.168.178.20: icmp_seq=3D2 ttl=3D64 time=3D0.724 ms --- 192.168.178.20 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 0.724/1.056/1.583/0.377 ms # ping -c3 10.151.15.250 PING 10.151.15.250 (10.151.15.250): 56 data bytes --- 10.151.15.250 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss # ping -c3 10.151.15.250 PING 10.151.15.250 (10.151.15.250): 56 data bytes --- 10.151.15.250 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss # (sleep 10; ping -c3 10.151.15.250 ) & tcpdump -i ue0.1510 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ue0.1510, link-type EN10MB (Ethernet), capture size 262144 byt= es PING 10.151.15.250 (10.151.15.250): 56 data bytes 14:12:26.457851 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 28 14:12:27.460115 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 28 14:12:28.462050 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 28 ^C 3 packets captured 3 packets received by filter 0 packets dropped by kernel #=20 --- 10.151.15.250 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss #=20 # arp -a ? (10.151.15.253) at b8:27:eb:ee:12:27 on ue0.1510 permanent [vlan] rpi3b.fritz.box (192.168.178.30) at b8:27:eb:ee:12:27 on ue0 permanent [ethernet] #=20 --- On the RPi 3b --- +++ On the desktop +++ # ifconfig em0 em0: flags=3D8863 metric 0 mtu 1500= =20 options=3D481249b ether 78:24:af:40:71:b7 inet 192.168.178.20 netmask 0xffffff00 broadcast 192.168.178.255 media: Ethernet autoselect (100baseTX ) status: active nd6 options=3D23 # ifconfig em0.1510 create vlan 1510 vlandev em0 inet 10.151.15.250/20 # ifconfig em0.1510 em0.1510: flags=3D8843 metric 0 mtu= 1500 options=3D4000403 ether 78:24:af:40:71:b7 inet 10.151.15.250 netmask 0xfffff000 broadcast 10.151.15.255 groups: vlan vlan: 1510 vlanpcp: 0 parent interface: em0 media: Ethernet autoselect (100baseTX ) status: active nd6 options=3D21 # ping -c3 192.168.178.30 PING 192.168.178.30 (192.168.178.30): 56 data bytes 64 bytes from 192.168.178.30: icmp_seq=3D0 ttl=3D64 time=3D0.748 ms 64 bytes from 192.168.178.30: icmp_seq=3D1 ttl=3D64 time=3D0.696 ms 64 bytes from 192.168.178.30: icmp_seq=3D2 ttl=3D64 time=3D0.695 ms --- 192.168.178.30 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 0.695/0.713/0.748/0.025 ms # ping -c3 10.151.15.253 PING 10.151.15.253 (10.151.15.253): 56 data bytes --- 10.151.15.253 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss # ping -c3 10.151.15.253 PING 10.151.15.253 (10.151.15.253): 56 data bytes --- 10.151.15.253 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss # ping -c3 10.151.15.253 PING 10.151.15.253 (10.151.15.253): 56 data bytes --- 10.151.15.253 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss # tcpdump -i em0.1510 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on em0.1510, link-type EN10MB (Ethernet), capture size 262144 byt= es 14:10:17.401100 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 42 14:10:17.401108 ARP, Reply 10.151.15.250 is-at 78:24:af:40:71:b7 (oui Unkno= wn), length 28 14:10:18.427268 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 42 14:10:18.427275 ARP, Reply 10.151.15.250 is-at 78:24:af:40:71:b7 (oui Unkno= wn), length 28 14:10:19.453012 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 42 14:10:19.453020 ARP, Reply 10.151.15.250 is-at 78:24:af:40:71:b7 (oui Unkno= wn), length 28 14:12:26.458965 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 42 14:12:26.458972 ARP, Reply 10.151.15.250 is-at 78:24:af:40:71:b7 (oui Unkno= wn), length 28 14:12:27.461071 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 42 14:12:27.461079 ARP, Reply 10.151.15.250 is-at 78:24:af:40:71:b7 (oui Unkno= wn), length 28 14:12:28.463073 ARP, Request who-has 10.151.15.250 tell 10.151.15.253, leng= th 42 14:12:28.463082 ARP, Reply 10.151.15.250 is-at 78:24:af:40:71:b7 (oui Unkno= wn), length 28 ^C 12 packets captured 12 packets received by filter 0 packets dropped by kernel # # arp -a ? (10.151.15.250) at 78:24:af:40:71:b7 on em0.1510 permanent [vlan] ? (10.151.15.253) at b8:27:eb:ee:12:27 on em0.1510 expires in 10 seconds [v= lan] desktop.fritz.box (192.168.178.20) at 78:24:af:40:71:b7 on em0 permanent [ethernet] # --- On the desktop --- --=20 You are receiving this mail because: You are the assignee for the bug.=