Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.209.48 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796101659; b=YZyQQOE6a5pE4x4FZfNi6IbQ4u1R5NhUjO8EnfRixzm2UCKio0HaCz9tgE0yxYmhKKYo h/XIrAv7FS6pgDfvpFslWxQtcZcsrf1Fa0tm74yZlXAiNgyda1Db0qEnSYxVDBYPcQBV/ cxb4RgFyOclfEgetGoJmyQNeGwKy6W95eTcKCtKHQFq9M0viam9h8xuFHeJJ6UyLtp95f K5ZprIsCvGS9HeLM3Ly2WyPyDv0oFZ/PZf2cc5+1Ldua9M+LBnBVGZ8m0U3Bo23zU3wKP WNS+ocqEXg/0T4FGnLBT6AGZCgJBi0GfmPU7BaWhmfnCX/inkIqtWfRqaue2Ry5dWsw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796101659; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy:X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=AsO+ACSz4bMCmHP8/1QKZ1/kZdh4JoGyZ9L+mYmDcGw=; b=ThIXHsD+tPeAu+uVHK4PGbMizML2otk+qeSIge9tl1yBH4H+V94HZM0SJzT2XMY4UrRE wwAU94/oUVW2MpLnKw1ljte+yXD/yJecLoiuS88J2tyGmi9KpzKhHq/5eHmphIAOuXjy2 XAB1/rHhhRQLb5DW9d2JGpQI7T/9UKhyF37V4r0cFf7ZJ3Tcgn5MvoHWnj1kiER80j/fC mguYseI6Bf5mB92iZsIP9dvYQbwbzdRrMvte5qEx6jw5PeHinGQjyjUXbLX2kyc5jV6BW 2g2Tm1n9nfytdXxrYko/x82LzuC8XuR14i89NAt2UDE81QwAJzFhD1ClmG6XYWcys4w== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=ii9TAylq; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.209.48 Received: from PH8PR06CU001.outbound.protection.outlook.com (mail-westus3azon11012048.outbound.protection.outlook.com [40.107.209.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49B59606A31A for ; Tue, 1 Dec 2026 05:07:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 49B59606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=ii9TAylq ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=w+kiC1As3uVFhCeWffahPsvHt8fAPSrhq2ayTsSEtZALqOBbJJBBVJFBh1xVHmkjHih+fDx59A/78WzfWxtX2WMqob1uiNtnp7H/tZW5I/5DFBzhx6v7BxEDOq1Q7eB2AjSc4MTY2/THQHQrLdDB3HaXc33+/Xtcml9wST3y6m9ceWuZMCcJEkZ9qLkETc4zJpglgFYItZL1uEAJl69mNByJ3KjAX4+UcwKxyekzGw0Z8eIgm0Q5WbQFp30cH9qpbwBowWxNgYUGuDvlKcM3eNVvnvs9InqJ7hUcOWBIURP4T9RF4sKYUiOGZkQnjY2JlKL9RlWQG3YfY6QeNQCdCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AsO+ACSz4bMCmHP8/1QKZ1/kZdh4JoGyZ9L+mYmDcGw=; b=YiaMVhlk3Jl54xs1O4SsA1Ni8SJSEWRzSLUEIZ6nWKah05ZRsbhr2OIbTvfMRt00bQlNuKtos7iCaG/Nd/aglf0CbvVKZTjWw7oidhtWbi5Go9Br9w5KNpqYCotF6o36F9Z4qcNZt3pkCRJwm2CjsSryXOyMKz9hV2B0ouqY2pMZ4ygDO01RIn0I5p2NR1yKuM7h08QKZyNnp37zam3PoERE9m65o+AX6UXKrfG91S499GrOxvdfLjtx6Sm2kDNDHalgNEJ3XpwXvBietIQBFj+SIpnxwRchRzATp7nJpcKTp4ypr54oIHn6+R5lDqkdb5zOBVdIp5ZIVpiAyR993w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.linux.dev smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AsO+ACSz4bMCmHP8/1QKZ1/kZdh4JoGyZ9L+mYmDcGw=; b=ii9TAylqItpYkDjpPcIVSVfykzyE+IHEjvS4ywYR90E0RCqEzQlMzpoQ/oiGQ973lJSQisE+ixkFlHOH1qRNsnkyn+3dU0PRCKgc6TrpbXg5dRf2znoOe/78O0MmoYPS9ZYQiu/n8WdTUIARkBCpNyMhhGpEwgCm9fgJaG2scmg= Received: from PH8P220CA0029.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:348::13) by SA1PR12MB999109.namprd12.prod.outlook.com (2603:10b6:806:4a1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Tue, 1 Dec 2026 05:07:34 +0000 Received: from SJ5PEPF000001D4.namprd05.prod.outlook.com (2603:10b6:510:348:cafe::6b) by PH8P220CA0029.outlook.office365.com (2603:10b6:510:348::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 05:07:34 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SJ5PEPF000001D4.mail.protection.outlook.com (10.167.242.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Tue, 1 Dec 2026 05:07:33 +0000 Received: from AUSALIEM01.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 23:07:32 -0600 From: Amanda Liem To: CC: , , , , Subject: [PATCH v5] virtio-net: Add VIRTIO_NET_F_LABEL for a per-instance label Date: Mon, 30 Nov 2026 23:07:26 -0600 Message-ID: <20261201050726.6049-1-Amanda.Liem@amd.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: virtio-comment@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001D4:EE_|SA1PR12MB999109:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ff502fa-97c0-458a-62fc-08df4f69025a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700016|1800799024|23010399003|11063799006|261009223027099003|18002099003|6133799003|13003099007|261026140227099003|10067099003|56012099006|261022105027099003|261022075727099003|261028144727099003|261026121527099003|261102123227099003|261022113327099003|261021121427099003|261021135927099003|261021123027099003; X-Microsoft-Antispam-Message-Info: Ah3x+acxaJgSBIX/pfgPOEOc6/0T83TXa7L99FHivPEJdUnqReRC+rsx/5hKTQF33s6YJSAVBLBHvqzWQWRzRKuYISJdT7SN31e0xWi7TDpKHsx9pKv5Rf5sjlD54STYT91eb1NtQQwausfNOtxZ08pfvE4G6F6AV2z/byiWhzk6Mkmd5bkcoJ2EwlivRcCDU70u/mkAQWAaE4MNyrUCsArEE+6CiL/BjKM7Z7p5XbPbvdActWOrJ7LiAT+TmVoAl5cKvkH8CVqlf9UoDGdrO9pUgZS/PgBajNEF33bKW9ahOX6BCtPEA9iLvwCq5MpOxVqB3sT9xmAckEVf82i8nEHXeOWdvAOrgp1/2pUeKyH5JFIG+Wkk3BxyYJ5xHN80foK6feREppIyBLDniKP6qfncgdesVRpZ6IbiHql7Gcv3aybaKM6ksCkNwDFx8DNy/H9D0wsQmV1U6VeQjqZQNxRkISF2RSMFFGHe2GPmYmmsKS0bPS3ouS92FUXrQ2e9XjL6J4smt074JZvYhMIitlOrmtngh6bkG7h5S5IatsakOnngxfo33ykVr0HcRrNMEdNI7EwdVWA6v7/H1J1fYLORfY6YIs67IkPPVSfdSvCIGThFzq7xovWCxm/E1YFITokRsZPv+JvxSH5811/ESg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700016)(1800799024)(23010399003)(11063799006)(261009223027099003)(18002099003)(6133799003)(13003099007)(261026140227099003)(10067099003)(56012099006)(261022105027099003)(261022075727099003)(261028144727099003)(261026121527099003)(261102123227099003)(261022113327099003)(261021121427099003)(261021135927099003)(261021123027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iIjYagQg9U32eSHklCRs2omcG8C5UtjapOW+8+KOOVbOsS9vJj+fsbLgZk7UKujV+FonIBV6gola9gRoOHxRnACDh9vthiXKeBrntPclXaNAiRHVrNBjGFP4HDaZCDWzyw7rBy7X740uO7euNoBur8TVy59pvFl5sCBqDnos1oS4xFbPx0/GwJVLK+Oz2X5rTTOqzmLL9KW353OzZyX8AzSLv8vuuf1hUfoWkzKU+OEkX0S304Pm9CkIqLwvaTTe2i+EH4stH3k43Fn7IK8zmW7zMjbEtd125DU0rZNWv3fsIao50fhHZ85CfQfE6gOdfBKVoXmd2ZcQplnk6G4v1z6HNlLxPx+CftZs8890ljd9XMUMqrAXKXSuQ33g8wMqH6kZAxlZfbyf5q3tLbIfLprfYqJ5ELRUMIof2qKVuqg03gqcqBpFsN3yaxR+cMxb X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 05:07:33.8758 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ff502fa-97c0-458a-62fc-08df4f69025a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001D4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB999109 From: Nathaniel McCallum Add an optional, feature-gated label to the virtio-net device configuration space: a short, read-only string describing a single device instance. This field is modeled on VIRTIO_NET_F_MTU - it is static and read at device initialization, without a control virtqueue. Two read-only fields are appended to struct virtio_net_config, present only when VIRTIO_NET_F_LABEL (net feature bit 71) is negotiated: label_len (1..VIRTIO_NET_LABEL_MAX) and a fixed VIRTIO_NET_LABEL_MAX (64) octet label buffer holding length-delimited, well-formed UTF-8 that is not NUL-terminated. Two reserved octets follow, keeping a later appended field 64-bit aligned. A fixed buffer (not a flexible array) keeps future fields appendable; existing offsets are unchanged. A guest with several virtio-net devices uses the label to find which one plays a role it requires - for example the device that receives inbound connections on port 443 from the internet, which it cannot tell from the device itself. The label names an out-of-band contract the guest expects. The guest matches the presented label against the one the contract calls for, so the label only locates a device and conveys no trust. A wrong label can only deny the guest its device, a denial of service that is always possible. It cannot make the guest trust a device the contract would reject. A contract and its enforcement are outside the scope of this specification. Signed-off-by: Nathaniel McCallum Signed-off-by: Amanda Liem --- Link: https://lore.kernel.org/virtio-comment/20260818170552.2127-1-Amanda.Liem@amd.com/ [v1] Link: https://lore.kernel.org/virtio-comment/20260924153024.3362-1-Amanda.Liem@amd.com/ [v2] Link: https://lore.kernel.org/virtio-comment/20261027154836.13778-1-Amanda.Liem@amd.com/ [v3] Link: https://lore.kernel.org/virtio-comment/20261105174308.11982-1-Amanda.Liem@amd.com/ [v4] v1 -> v2: add motivation and config-space-vs-CVQ rationale; fix the feature-bit note (Parav) v2 -> v3: require label_len 1..MAX; spell out the over-length error as a device error with FAILED (Matias) v3 -> v4: - Reframe: explain the purpose - the label names an out-of-band contract the guest expects and matches against to find its device - and that the label conveys no trust and need not be unique (Michael) - Drop the acknowledgements.tex change (Michael) - Remove "host" from the spec text; the device provides the label (Michael) - Pad struct virtio_net_config with 2 reserved octets so a field appended after the label stays 64-bit aligned (Michael) - Reword the comparison text as driver-side matching, drop "consumer" (Michael) - Note identical labels may occur in the same guest or in different guests (Matias) - Remove the informative security-considerations note; its one normative rule (no routing/identity/trust decision from the label) already lives in the driver requirements (Michael, Matias) v4 -> v5: - Drop "persists across reboot or migration" from both the label's descriptive text and the driver requirements; the existing no-config-change rule already covers it (Michael) - Resolve the matching-vs-normalization contradiction by dropping the octet-by-octet comparison sentence, leaving only that the device does not normalize or case-fold the label (Michael) - Change the over-length handling to say the driver MUST NOT read or use label, instead of bounding the read and separately forbidding use (Michael) - Drop "the driver MUST read exactly label_len octets"; the driver may read fewer octets (Michael) - Drop the driver's MUST NOT trust/routing/identity decision and MUST NOT derive the interface name from label; trust and naming are deployment choices outside conformance (Michael) device-types/net/description.tex | 83 ++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/device-types/net/description.tex b/device-types/net/description.tex index 9f85bf4..4c75a6e 100644 --- a/device-types/net/description.tex +++ b/device-types/net/description.tex @@ -146,6 +146,12 @@ \subsection{Feature bits}\label{sec:Device Types / Network Device / Feature bits when VIRTIO_NET_F_IPSEC is negotiated. When a device offers IPsec feature, it SHOULD also offer the VIRTIO_NET_F_OUT_NET_HEADER feature. +\item[VIRTIO_NET_F_LABEL(71)] The device provides a label for this + device instance through the \field{label_len} and \field{label} + configuration fields. A driver uses the label to identify which + device matches a value it expects. The label is human-readable, and + its meaning is defined outside this specification. + \end{description} \subsubsection{Feature bit requirements}\label{sec:Device Types / Network Device / Feature bits / Feature bit requirements} @@ -220,9 +226,16 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device le16 rss_max_indirection_table_length; le32 supported_hash_types; le32 supported_tunnel_types; + le16 label_len; + u8 label[VIRTIO_NET_LABEL_MAX]; + u8 padding[2]; }; \end{lstlisting} +\begin{lstlisting} +#define VIRTIO_NET_LABEL_MAX 64 +\end{lstlisting} + The \field{mac} address field always exists (although it is only valid if VIRTIO_NET_F_MAC is set). @@ -276,6 +289,42 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device Encapsulation types are defined in \ref{sec:Device Types / Network Device / Device Operation / Processing of Incoming Packets / Hash calculation for incoming packets / Encapsulation types supported/enabled for inner header hash}. +The following fields, \field{label_len}, \field{label}, and +\field{padding}, only exist if VIRTIO_NET_F_LABEL is set. +\field{label_len} and \field{label} together convey a human-readable +label that identifies this device instance, which a driver matches +against a value it expects. + +\field{label_len} specifies the length, in octets, of the label +value, between 1 and VIRTIO_NET_LABEL_MAX inclusive. A device with no +label for an instance does not offer VIRTIO_NET_F_LABEL for that +instance rather than offering an empty value. + +\field{label} contains the label value as exactly \field{label_len} +octets of well-formed UTF-8 text. The value is length-delimited and +is not NUL-terminated; octets of \field{label} beyond \field{label_len} +are unused and have no meaning. The remaining octets of the +VIRTIO_NET_LABEL_MAX-octet buffer are reserved. + +\field{padding} has no meaning and is reserved for future use. This is +set to zero by the device. It keeps a field appended after \field{label} +64-bit aligned. + +The specification defines no semantics for the label: it does not +name a network, identify a tenant, or establish trust, and the device +does not guarantee that it is unique. Two device instances can present +identical labels, whether in the same guest or in different guests. + +The device does not normalize or case-fold \field{label}. A driver +that requires Unicode normalization or case-insensitive matching +performs it itself. + +The value can contain bidirectional or zero-width characters, which +are legitimate in many scripts. The device does not emit control or +separator characters, but a driver that displays the label can render +it in isolation so that any bidirectional characters cannot reorder +surrounding text. + \devicenormative{\subsubsection}{Device configuration layout}{Device Types / Network Device / Device configuration layout} The device MUST set \field{max_virtqueue_pairs} to between 1 and 0x8000 inclusive, @@ -326,6 +375,27 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device The device SHOULD NOT offer VIRTIO_NET_F_CTRL_RX_EXTRA if it does not offer VIRTIO_NET_F_CTRL_VQ. +The device MUST NOT offer VIRTIO_NET_F_LABEL unless it populates +\field{label_len} and \field{label}. + +If it offers VIRTIO_NET_F_LABEL, the device MUST set \field{label_len} +to between 1 and VIRTIO_NET_LABEL_MAX inclusive. + +If it offers VIRTIO_NET_F_LABEL, the device MUST set the first +\field{label_len} octets of \field{label} to well-formed UTF-8. + +If it offers VIRTIO_NET_F_LABEL, the device MUST NOT include in the +first \field{label_len} octets of \field{label} any of the following: +the NUL character (U+0000); any C0 control character (U+0000 to +U+001F); the DEL character (U+007F) or any C1 control character +(U+0080 to U+009F); the line separator (U+2028); or the paragraph +separator (U+2029). + +The device MUST NOT modify \field{label_len} or \field{label} once +VIRTIO_NET_F_LABEL has been negotiated; the value is stable for the +lifetime of the device, and the device MUST NOT signal a configuration +change for these fields. + \drivernormative{\subsubsection}{Device configuration layout}{Device Types / Network Device / Device configuration layout} The driver MUST NOT write to any of the device configuration fields. @@ -367,6 +437,19 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device A driver SHOULD NOT negotiate VIRTIO_NET_F_CTRL_RX_EXTRA if it does not negotiate VIRTIO_NET_F_CTRL_VQ. +The driver MUST NOT read \field{label_len} or \field{label} unless +VIRTIO_NET_F_LABEL has been negotiated. + +If the driver negotiates VIRTIO_NET_F_LABEL, it MUST read +\field{label_len} before reading \field{label}. A compliant device +sets \field{label_len} within range, so a \field{label_len} greater +than VIRTIO_NET_LABEL_MAX indicates a device error: the driver MUST NOT +read or use \field{label}, and SHOULD set the FAILED +\field{device status} bit (see +\ref{sec:Basic Facilities of a Virtio Device / Device Status Field}). + +The driver MUST NOT assume that \field{label} is unique. + \subsubsection{Legacy Interface: Device configuration layout}\label{sec:Device Types / Network Device / Device configuration layout / Legacy Interface: Device configuration layout} \label{sec:Device Types / Block Device / Feature bits / Device configuration layout / Legacy Interface: Device configuration layout} When using the legacy interface, transitional devices and drivers -- 2.34.1