From owner-freebsd-bugs@freebsd.org Mon Oct 1 16:34:12 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DECCA109E212 for ; Mon, 1 Oct 2018 16:34:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6562580BEB for ; Mon, 1 Oct 2018 16:34:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2AAF4109E209; Mon, 1 Oct 2018 16:34:11 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08CA4109E208 for ; Mon, 1 Oct 2018 16:34:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB29980BE9 for ; Mon, 1 Oct 2018 16:34:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id EEFEF7574 for ; Mon, 1 Oct 2018 16:34:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w91GY9jB090746 for ; Mon, 1 Oct 2018 16:34:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w91GY97Z090745 for bugs@FreeBSD.org; Mon, 1 Oct 2018 16:34:09 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 231859] ipoib datagram mode: unicast packets are received as multicast packets Date: Mon, 01 Oct 2018 16:34:09 +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: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bmueller@panasas.com 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.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2018 16:34:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231859 Bug ID: 231859 Summary: ipoib datagram mode: unicast packets are received as multicast packets Product: Base System Version: 11.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bmueller@panasas.com When using the ipoib driver built without IPOIB_CM option, simple commands = such ping do not work. The problem is packets received by the ipoib driver are being tagged as M_MCAST. Higher layers in the network stack process the pa= cket as a multicast packet and may ignore it. In the case of 'ping ', = ICMP will not respond unless the net.inet.icmp.bmcastecho sysctl is set to 0. Adding debugging to ipoib_input(), the received packet has the following hwaddr: 0:ff:ff:ff:ff:12:40:1b:ff:ff:0:0:0:0:0:0:ff:ff:ff:ff The address is a IB multicast address. When I look at the ibdump output on= the sender, the ICMP ECHO packet looks like a unicast packet sent from source L= ID 15 to destination LID 2. Extensible Record Format Timestamp: 0x5bb2469255113055 Record type: 0x15 (Type 21: INFINIBAND) .001 0101 =3D Type: INFINIBAND (21) 0... .... =3D Extension header present: 0 Flags: 0x04 (Capture Interface: 0) .... ..00 =3D Capture interface: 0 .... .1.. =3D Varying record length: 1 .... 0... =3D Truncated: 0 ...0 .... =3D RX error: 0 ..0. .... =3D DS error: 0 00.. .... =3D Reserved: 0x0 Record length: 138 Loss counter: 0 Wire length: 122 InfiniBand Local Route Header 0000 .... =3D Virtual Lane: 0x0 .... 0000 =3D Link Version: 0 0000 .... =3D Service Level: 0 .... 00.. =3D Reserved (2 bits): 0 .... ..10 =3D Link Next Header: 0x2 Destination Local ID: 2 0000 0... .... .... =3D Reserved (5 bits): 0 .... .000 0001 1110 =3D Packet Length: 30 Source Local ID: 15 Base Transport Header Opcode: Unreliable Datagram (UD) - SEND only (100) 0... .... =3D Solicited Event: False .1.. .... =3D MigReq: True ..00 .... =3D Pad Count: 0 .... 0000 =3D Header Version: 0 Partition Key: 65535 Reserved: 00 Destination Queue Pair: 0x000228 0... .... =3D Acknowledge Request: False .000 0000 =3D Reserved (7 bits): 0 Packet Sequence Number: 203633 DETH - Datagram Extended Transport Header Queue Key: 0x0000000000000b1b Reserved: 00 Source Queue Pair: 0x00000210 IBA Payload - appears to be EtherType encapsulated Ethertype: IPv4 (0x0800) Reserved: 0000 Invariant CRC: 0x29a166b6 Variant CRC: 0x39c8 Internet Protocol Version 4, Src: 192.168.1.204, Dst: 192.168.1.116 0100 .... =3D Version: 4 .... 0101 =3D Header Length: 20 bytes (5) Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT) 0000 00.. =3D Differentiated Services Codepoint: Default (0) .... ..00 =3D Explicit Congestion Notification: Not ECN-Capable Tra= nsport (0) Total Length: 84 Identification: 0xd946 (55622) Flags: 0x4000, Don't fragment 0... .... .... .... =3D Reserved bit: Not set .1.. .... .... .... =3D Don't fragment: Set ..0. .... .... .... =3D More fragments: Not set ...0 0000 0000 0000 =3D Fragment offset: 0 Time to live: 64 Protocol: ICMP (1) Header checksum: 0xdcd1 [validation disabled] [Header checksum status: Unverified] Source: 192.168.1.204 Destination: 192.168.1.116 Internet Control Message Protocol Type: 8 (Echo (ping) request) Code: 0 Checksum: 0x1ea9 [correct] [Checksum Status: Good] Identifier (BE): 10727 (0x29e7) Identifier (LE): 59177 (0xe729) Sequence number (BE): 1 (0x0001) Sequence number (LE): 256 (0x0100) Timestamp from icmp data: Oct 1, 2018 16:08:50.000000000 GMT [Timestamp from icmp data (relative): 0.332293530 seconds] Data (48 bytes) 0000 a7 f9 04 00 00 00 00 00 10 11 12 13 14 15 16 17 ................ 0010 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 ........ !"#$%&' 0020 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 ()*+,-./01234567 Data: a7f9040000000000101112131415161718191a1b1c1d1e1f... [Length: 48] --=20 You are receiving this mail because: You are the assignee for the bug.=