From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nWQBg-0002wS-Mj for mharc-grub-devel@gnu.org; Mon, 21 Mar 2022 18:07:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWQBe-0002pd-MY for grub-devel@gnu.org; Mon, 21 Mar 2022 18:07:38 -0400 Received: from [2607:f8b0:4864:20::729] (port=33321 helo=mail-qk1-x729.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWQBc-0004d3-Ny for grub-devel@gnu.org; Mon, 21 Mar 2022 18:07:37 -0400 Received: by mail-qk1-x729.google.com with SMTP id k125so12806994qkf.0 for ; Mon, 21 Mar 2022 15:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P0oxHCdJa/RQZdtJVLRRu+lu+gMovQAXtESx4uY9YjM=; b=Aww9QdHaaiJuM+WVn9mMM8LLt+xqC1lOuMr30kxpr2eoWKKegq5MHxclnh1hinW68x v275Rx3QVL888Li1mUlN1v61gcEuUntTl0LnlnRGqM66+/NObrH7+TG3dDZ5ipLCm1Gv F0gPXULY+NwA474QybEWOA2gBt+rpsvvDPO1bdP5omKw474wg00Re45mjtRYqo/z5cJT vUJ7RuQYJ0QoHEt/H///n03VRCNtk19zOQkZW9YDA1drmh0vIoMzudDzb8nC/zSV/SK2 B/kMpqJpQo+b3u6i7wgWGT+PY/T/4RGJl0uXadV0FzrLzRwGkhebxbwhdHlS2F0+F6qo Q2SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P0oxHCdJa/RQZdtJVLRRu+lu+gMovQAXtESx4uY9YjM=; b=yNampa8ckwM5V4TfvraETnFbPnU3+GsqMBcHRwbUootFTOWeMyTFSFLBtRT9nW/RnM ZC3U0ASh+9wl4g3DW67UMRv8WMCEdESoF+lVfDPjnh1GWuKPMlAxJIgm1VCRzRAoEY/m nYCyeXIpRyKDLiug9ozM1YKG9V2BBX6w1JwstgTcLRNey4MP5DmP8U0+iblY/0s+8oyt zXpSehNq57d9ElfPqud8BNow4Rt3LbLzEyVlY7By20eLJ028+QNl0u/biCA7ImLLtfww Q9+qc/a3o7e76CgetGXPih/1sIOZjqWbhx8stmUZuF6d8ZuK5gKDPdQMHWieoyjqQoeV RCsQ== X-Gm-Message-State: AOAM530ll9EhKoxrbcMnMORPrkYa796+4iyIlrKLWo/mTwCDNuAxXE9o E1vrLRVugBAkINzcE5TbilMUnmh8KxNxcCPHIXdUsnIXGZyFddKf9xgHUXJw/dDtMJ00qThzzm2 8HImiADo/Y1EuaZlOo0fck8SBExKeIfeZemuY7AQJ7kMXHmMFznLCDKWJ74hNfg== X-Google-Smtp-Source: ABdhPJzXQa3bPGCGQwi5LkFXheD5r0ZzRVeCyXlO7CGY9LWQ/RJX/hfpFPU4HeaPOwOitIlDnF2Zwg== X-Received: by 2002:a37:9487:0:b0:67e:81c3:506b with SMTP id w129-20020a379487000000b0067e81c3506bmr6122025qkd.254.1647900455464; Mon, 21 Mar 2022 15:07:35 -0700 (PDT) Received: from a-Virtual-Machine.mshome.net ([136.56.89.57]) by smtp.gmail.com with ESMTPSA id w1-20020ac857c1000000b002e1e899badesm12546529qta.72.2022.03.21.15.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:07:34 -0700 (PDT) From: Chad Kimes To: grub-devel@gnu.org Cc: Chad Kimes Subject: [PATCH v2 0/2] Automatically configure VLAN from PXE on UEFI Date: Mon, 21 Mar 2022 18:07:30 -0400 Message-Id: <20220321220732.557752-1-chkimes@github.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::729 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=chkimes@github.com; helo=mail-qk1-x729.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2022 22:07:39 -0000 This patch series introduces automatic configuration of 802.1Q VLAN identifiers if the interface used for PXE booting on UEFI hardware was configured with a VLAN. The first patch adds the necessary types for parsing VLAN info from UEFI device paths, and uses that to produce a Vlan(x) device in the grub_efi_print_device_path output. The second patch handles automatic configuration of VLAN when booting from PXE on UEFI hardware. This patch depends on types introduced in the first patch. Chad Kimes (2): Print VLAN info in EFI device path Configure VLAN from UEFI device used for PXE grub-core/kern/efi/efi.c | 7 ++++++ grub-core/net/drivers/efi/efinet.c | 38 ++++++++++++++++++++++++++---- include/grub/efi/api.h | 9 +++++++ 3 files changed, 49 insertions(+), 5 deletions(-) -- 2.25.1