From nobody Tue Feb 11 01:13:54 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YsNkZ6Nvhz5n890 for ; Tue, 11 Feb 2025 01:13:58 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YsNkZ5lsfz3nLh; Tue, 11 Feb 2025 01:13:58 +0000 (UTC) (envelope-from rpokala@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739236438; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OB5IPMCACvmH70BN5fjjIolu1WU+1TJRsDops1bCXeg=; b=lTZUALabSa+0M9pgkpCOATtf3SLmO8wL1gE6kJbkRxr70pm6uxkPdo7Ep4XQmbCu8nL1iu wurpCyn7NOwKKNcEdOQZ57YVudyfKzQiDFwPufedAhw6y3cBBLI2xRtpOArb7zOzEdOrb7 sIeRvtyrpCmXAy6Q4IHII4z5hf+3LrO9Wziehk6e7tWk85N/eMl4COhewbWRR8+xmxeOMD sce0PVyGMVBZl/tgtGuyTqjtb3rOGKy3rKbF2DsgRBdoEz61ZlRa3Kw+ciOYnpLfdww/+P qqKDcAb6tqE02IHodrMhWHay99x+eiJiSgiRFCO8Ab2WaT4qei+phAXxUdq96w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739236438; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OB5IPMCACvmH70BN5fjjIolu1WU+1TJRsDops1bCXeg=; b=XdcF2tVknnWHxIzzKMNsHgcpIx2oiSoSb7G9TISuFEamsWVnJdQakFhNLEL0ROh/wzomJy trz0gJ1FeFGlZrvGl33SrY1Kfh14MCTZS1kkkYZWrX7yRGCaWtO6DOUZTaSBWRvdv4dixx 3JAPBYaM+SA9184OESrA8mHVxr9xrYqKZ8bAzTiKirVI+xBq699qN4Psg1xjcJQPgkDT+E D7bUYIzrdLQU4eeX2PQQjVLqa9BL33udeNu6HxxrQlH3NEYyjGfeFr9ozMyHKj9eRTZ388 BAtcgUa9WymO8q/k9LADuhPx75HDvVE8q1+OuGel2hnaSXrVlAiq6K6xEgwtQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739236438; a=rsa-sha256; cv=none; b=HbtbBuXJ33tSfFte/5ywBYD3dkqptLrqIGbFunAz8SbJfMod2e5fwVwHau4KSac3WxQGK5 McI58fqd10hUoy4BvVU9QPD1ViTwjOVQNSNYZovVONRWHLt8T1s00ri6XpV+20hEM4NJCX W1kNZ0g/FcBbCoNFd8kR7Y+b+Jszs2FMiUskSaBWjGJT7T06yYkKpH/A8USc9xzV+HBB50 /VzeFCOEwZruroUZTGNROd58zCCDLFiTcOuZ+H2JcdqQHn+J+xn3AunA+S6nN8ftzvDIh6 +P+N3Mi85tLJKUl9hriVmHNO4vvP/oIeU+A89dHLFBEW0Em3wcJydyU0ME7IYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [192.168.1.52] (c-73-231-46-254.hsd1.ca.comcast.net [73.231.46.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rpokala) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YsNkZ2dLWz11MF; Tue, 11 Feb 2025 01:13:58 +0000 (UTC) (envelope-from rpokala@freebsd.org) User-Agent: Microsoft-MacOutlook/16.93.25012611 Date: Mon, 10 Feb 2025 17:13:54 -0800 Subject: PR 1591: if_infiniband: Support BPF write for broadcast frames From: Ravi Pokala To: , "Dance, Nick" Message-ID: <2E2A77F8-C758-487A-AA80-6F4EB8BA4921@freebsd.org> Thread-Topic: PR 1591: if_infiniband: Support BPF write for broadcast frames List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit Hi folks, Vdura (you might know of us as Panasas; we renamed ourselves last year) is starting to use InfiniBand on our FreeBSD-based platforms. One of our first issues was getting DHCP to work with InfiniBand, because we use DHCP for not just assigning addresses, but also for passing other configuration information using the standard mechanism for optional data. A Linux IP-over-IB client was able to send DHCDISCOVER, and our FreeBSD server was able to set up BPF and receive it. But when the server tried to send an ARP to make sure that the address it wanted to DHCPOFFER was available, nothing went over the wire. It turns out that if_infiniband interfaces don't transmit link-layer broadcasts. My colleague Nick was able to solve this, and the rest of the bring-up went smoothly. The fix passes muster internally, but we were hoping to get some more eyes on it before committing it to the main repo. If anyone wants to take a look: https://github.com/freebsd/freebsd-src/pull/1591 If I don't hear any objections by the end of the week, I'll go ahead and submit it. Thanks, Ravi (rpokala@ , wearing my Vdura hat)