From patchwork Thu Apr 16 17:53:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel M. Weeks" X-Patchwork-Id: 1271821 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4936P25WNLz9sWM for ; Fri, 17 Apr 2020 03:56:54 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=rpi.edu Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4936P22ZmvzDsGv for ; Fri, 17 Apr 2020 03:56:54 +1000 (AEST) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=rpi.edu (client-ip=128.113.2.229; helo=smtp9.server.rpi.edu; envelope-from=weeksd2@rpi.edu; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=rpi.edu Received: from smtp9.server.rpi.edu (smtp9.server.rpi.edu [128.113.2.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4936K16bVPzDrGq for ; Fri, 17 Apr 2020 03:53:24 +1000 (AEST) Received: from smtp-auth2.server.rpi.edu (route.canit.rpi.edu [128.113.2.232]) by smtp9.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id 03GHrK9X115543 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 16 Apr 2020 13:53:21 -0400 Received: from smtp-auth2.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth2.server.rpi.edu (Postfix) with ESMTP id A20B21A0F0 for ; Thu, 16 Apr 2020 13:53:20 -0400 (EDT) Received: from dev.danweeks.net (cpe-74-70-107-6.nycap.res.rr.com [74.70.107.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: weeksd2) by smtp-auth2.server.rpi.edu (Postfix) with ESMTPSA id 8059E1A0EF for ; Thu, 16 Apr 2020 13:53:20 -0400 (EDT) Date: Thu, 16 Apr 2020 13:53:16 -0400 From: "Daniel M. Weeks" To: petitboot@lists.ozlabs.org Subject: [PATCH 00/11] IB netboot 1/3: flexible hwaddrs Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 022rtRk7b X-CanIt-Geo: ip=74.70.107.6; country=US; region=New York; city=Troy; latitude=42.7273; longitude=-73.6696; http://maps.google.com/maps?q=42.7273,-73.6696&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" This is the first of three series of patches to petitboot 1.7.x to support network booting over Infiniband. This series makes all the changes necessary to support different sized hardware addresses in the data structures. It also begins with minor additions for debugging that were useful while developing support for Infiniband. Beyond those logging additions there should be no functional changes to petitboot. Daniel M. Weeks (11): Debug parsing hwaddr in NVRAM config read Debug failure to find device during requery Use hwsize rather than HWADDR_SIZE Make MAC address length requirement explicit Add hwaddr length field to interface config Add hwaddr length field to interface Set hwaddr_len field when hwaddr is set New function to compare hardware addresses Use hwaddr_len over sizeof hwaddr Use helper when comparing hardware addresses Rename HWADDR_SIZE for clarity discover/ipmi.c | 3 +- discover/network.c | 55 +++++++++++++++++++---------------- discover/platform-powerpc.c | 12 +++++--- discover/sysinfo.c | 11 ++----- discover/udev.c | 6 ++-- lib/pb-config/pb-config.c | 1 + lib/pb-protocol/pb-protocol.c | 24 +++++++++------ lib/types/types.h | 7 +++-- lib/util/util.c | 13 +++++++++ lib/util/util.h | 3 ++ test/parser/network.c | 4 +-- ui/ncurses/nc-config.c | 6 ++-- ui/ncurses/nc-sysinfo.c | 2 +- 13 files changed, 89 insertions(+), 58 deletions(-)