From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CE3046104; Sat, 25 Jan 2025 03:14:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 740EE4067E; Sat, 25 Jan 2025 03:14:05 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id E0B6640652 for ; Sat, 25 Jan 2025 03:13:31 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-21c2f1b610dso61692655ad.0 for ; Fri, 24 Jan 2025 18:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737771211; x=1738376011; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gXc6GdnGLjClOheepz36rNyvJcr3sEnmXYCrvGSLx7o=; b=BxrGO8KXSZ5iiNyK3g/TRZaEmemBHZonoFLD2cZp7HieKHBSy3DoLcHR9afW+bqqYc DDXvCkZN0R5b1I88MYkwvql5VrMHReCEKliT12uCXB1CDRZM6N9ojEQLA7C2cCFhcrCy ys7aJgd1VVcV5abhHNbdFKybHgAdk832PpQxq6aiv6UQvpdAPJxiCzlZRHMEoiKcFgJ0 54r8aQfZGYiqvNOQHP8qJ+QjKbJdOiRxmF/JrZnuEfF9bTZfchV6Wsk/XCBBpH8sCWfR NhPVHOXZ4kSDJJSQtRi9WUc0Py5iGv7TobKZWHm7/1qEZuMmz74rpGCrKusvK+Togqyi ku2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737771211; x=1738376011; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gXc6GdnGLjClOheepz36rNyvJcr3sEnmXYCrvGSLx7o=; b=GGh3riLJKa5T9Tis6e2E5gwdFZoU9oHPSboEsQs0nWi79Yy+uVeyqZMGdw5s5g0EtA S4Tmji0y56o8Xj0Yq9jInJjzKH4m65ENr48Y87UPfIn6byN2voO8+Ra1CXr+9DRWwaus H/Fx0EAMxY4U/w9uSTgxTDkc4WGupZ6zo9jET6xe4+0j+reIao1YGTVAq1Qd1u6qMvPB XVRY9vYUoL72lDOpzJbu1mzInhG09FqlA8zGrJA4zmcpYUqwFwww9DbpO9Zaa4fL6npK yAdbQDkxxn62SKN3ZJ7xtgctuU8A1EjpqIYCQLw1Q6wjK6AMpvnsdP48JToNu4WGsitb hX5Q== X-Gm-Message-State: AOJu0YxM02Oc6f9LA2FiF1cqV1/zysUcwdXY42v38k+lZ86Gt55DZW4G +uYqbC1pfB64x6vBkv2KiP2VCLz/RmHNU1C2TMva4VBn7gFZLdYBO47RbAXBwjY6wAZNoUlbo7b h X-Gm-Gg: ASbGncuBl3+0sSWpGzw15OQsvksj27KgFY4zP3vBA4QBqUMuzgPBMSfDGcybdsBhKNe ZoEJ25m0+CyU9azXGKW4mCxB+rlkkjzIAm8FzpORAlB5/trD8AH4mBs0aQaDhzZVzEaB1V7hKNW f575ninRqD9LjCeSttWNyWqI3hKV6qcf22ENjvOglvmqhWY72zdgEvlwiczx9ZPb5OhSgddKde9 SzbU5Ab2PRMuRm7DpLIRL1+osC18yaJRKWsaR+YzWTQuM+gWyVVNlymkItl5uRjJF9LmcGaVGsW rgqmSATxcgkFQm3b+Gvcc3TdVhQv+Vph8+1ObrMJLiAVWe7r7BJ2ThhwkA== X-Google-Smtp-Source: AGHT+IGQaRVgPnFR6L76XA/uGV7nQ9NlcbLhJrJrORswZdxps6HAhZNtmiqHGy3pmV/yHYFyha/Xqw== X-Received: by 2002:a05:6a20:6a1c:b0:1e0:ca33:8ccf with SMTP id adf61e73a8af0-1eb215ec290mr63376196637.34.1737771211277; Fri, 24 Jan 2025 18:13:31 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ac48e84e199sm2345256a12.11.2025.01.24.18.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 18:13:30 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 16/16] doc: add release note about allocation attributes Date: Fri, 24 Jan 2025 18:11:29 -0800 Message-ID: <20250125021305.76485-17-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250125021305.76485-1-stephen@networkplumber.org> References: <20250110170603.538756-1-stephen@networkplumber.org> <20250125021305.76485-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Since many functions now have allocation attribute, add a release note to inform users. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/release_25_03.rst | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/guides/rel_notes/release_25_03.rst b/doc/guides/rel_notes/release_25_03.rst index 85986ffa61..95ccc01133 100644 --- a/doc/guides/rel_notes/release_25_03.rst +++ b/doc/guides/rel_notes/release_25_03.rst @@ -63,6 +63,36 @@ New Features and even substantial part of its code. It can be viewed as an extension of rte_ring functionality. +* **Hardened of more allocation functions.** + + Added allocation attributes to functions that allocate data: + * ``rte_stats_bitrate_create()`` + * ``rte_sched_port_config()`` + * ``rte_ring_create()`` + * ``rte_tel_data_alloc()`` + * ``rte_rib_create()`` + * ``rte_rib6_create()`` + * ``rte_reorder_create()`` + * ``rte_mempool_create()`` + * ``rte_member_create()`` + * ``rte_acl_create()`` + * ``rte_comp_op_pool_create()`` + * ``rte_event_ring_create()`` + * ``rte_fib_create()`` + * ``rte_fib6_create()`` + * ``rte_lpm_create()`` + * ``rte_lpm6_create()`` + * ``rte_fbk_hash_create()`` + * ``rte_hash_create()`` + * ``rte_port_in_action_profile_create()`` + * ``rte_port_in_action_create()`` + * ``rte_table_in_action_profile_create()`` + * ``rte_table_in_action_create()`` + + This can catch some obvious bugs at compile time (with GCC 11.0 or later). + For example, calling ``free`` on a pointer that was allocated with one + of those functions (and vice versa); freeing the same pointer twice + in the same routine or freeing an object that was not created by allocation. Removed Items ------------- -- 2.45.2