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 9AAAC46114; Sat, 25 Jan 2025 19:41:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2E1440698; Sat, 25 Jan 2025 19:40:45 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id B9E014065F for ; Sat, 25 Jan 2025 19:40:34 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2ee786b3277so4294436a91.1 for ; Sat, 25 Jan 2025 10:40:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737830434; x=1738435234; 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=3gMzn6mKykIKrMlo6jnbbiLBEeH8TIieB3Yfs0gO/+geI1a+8yXxv+h6JDqy3kKroq nl319EJ4dr1OJKA17yUNWTU5lnDKfvlaIDnR0bsa+/ZkAoIaN6ehzM4x/rYehKvhN+8X ftjm1dyhfu7gEaoKD+0dW1IH53JlT8dP9hX4MEMGMs1hJun4kPPTV1IOzt0uxijBIURk MvMwGJ8J2I90dleittOKwp+O0XDfTX/3I52rPMI4en8ISh5GsFvthER4octFHe35xmj1 MYQlcBABOTPsVWM5YDdwT0g1aJLGoc4+F9GCWQ8juky4ZheKI2ZwNKMYqzc29+oiOwZ2 wqSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737830434; x=1738435234; 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=tuzDpTL0wcOdqmIs2uCH/5e2xsu5uMBMFNLdeZG/u1i7dPZfcwqveWCl4qD9mQtiv1 ivHEvruCwqok6APDjJeCmwZOT9sDv9ecyir64gd8bzzq+X2CS6WFIrYSPuCSp4zdpga0 Wl1AngByYcEZnAqyvQ+ykHKT39YDQOdXUGrOi4TVkXoUm9GfqQraCeVB/+QYqBanew4W cJVVUiZNKtxkBSYQWLjozYNxTNnws+Oq0Krgx3vWMhTlcEq/VI7JuIM86RT6ib6uZ27U 5vfNpTUXFukBCgoOnYISeArosSTf9vl9c6mEL4BXvbM9OKJjv6g0Wn4527xIgFZYX/jI 5NbQ== X-Gm-Message-State: AOJu0Yz1pDtacIr3j1nnVZVQWU/NmrveiD8j/41jYvwqL1f5PSEZDt/Z 1mtjyEF3LyH5xSnC61iLohS/xx2ShwOxdffGc06L+G0mqFD8bzE/sxX5FO5/DrOvmzcw6kbwJId 4 X-Gm-Gg: ASbGnctu2gWzQPZTM8fBpKqOZHN8IgiOdkwue5rCZyoDVVMc34NUd0JH9jKu7O0ihJs KTc9giSjZXYnlbSsrY8fPmyJ5/M3uQBV26+qnyr+DoUEfUIPUAgMZdaNtpmI2pnXh5Je1UXX0HJ 5F9YjHEWPdzgkTuD9255b2StPSymfrtrnRvlqs+q1/jujNqY9E/Hgn8L033fmLShjhnK3Ubm3A2 Wc7o2kM+M8sA9MiruH27BUNPfaSHjK3lMBeADSs88ZzikdFxkRzpTIHUDOoPd1OZebXMCzJ0lcs EKK1YSzSokX/CiNvBZWyAb55Vn/jyqIu5GtGbz3aiBQrtYzBB19s94tm8XbmOb/E+4CX X-Google-Smtp-Source: AGHT+IFX6LmX2fW9A/gLAg5hXuriF7WfTxEUthadQCfZ2Ed5I/rmOz5X6NhiJ93szqdYpYjqlmEgDA== X-Received: by 2002:a05:6a00:21c8:b0:727:64c8:2c44 with SMTP id d2e1a72fcca58-72dafa68820mr52634113b3a.19.1737830433363; Sat, 25 Jan 2025 10:40:33 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72f8a7614f4sm4100547b3a.97.2025.01.25.10.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jan 2025 10:40:32 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v6 15/15] doc: add release note about allocation attributes Date: Sat, 25 Jan 2025 10:36:49 -0800 Message-ID: <20250125184010.782330-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250125184010.782330-1-stephen@networkplumber.org> References: <20250120180550.198121-1-stephen@networkplumber.org> <20250125184010.782330-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