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 4E1934601A; Mon, 20 Jan 2025 19:30:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE60642707; Mon, 20 Jan 2025 19:30:43 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 03138427A4 for ; Mon, 20 Jan 2025 19:30:41 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2ef8c012913so6067571a91.3 for ; Mon, 20 Jan 2025 10:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737397841; x=1738002641; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Gqa6Kd4Ao7RG6m1qR91iAvEqyTLBmuRQum/yiBc4y04=; b=WdtD6/P4EQ0C+f2/G8t2TeE0XfQPfwsdCTMWiqiP4nplJnJa1T3Lnlg/17qTGnSE5P 11akEbnNFTJy4znJue8/NUG6xL/n1glEpFRBDBgMZhoRdN9fL0pwYeT99oQKmXXMvmN1 +W8HZtf2aU1ppDTbhYl1az0ywfXM1SsHmE+zFhnm0FF0YmFTTdsHUXSRVmhwabNt8Onz XTZ9EwjNDlS3k8hl5eehJinHTdhrlkXcZ+cxemBWXCcHmaYrnWCZR9vqW9fFMkqFcsmU zF3w0u9aPZgxPWOnv0exSDWMp84AdjgSGz39MS6mI3YZLT0+kSgj6WN4B8NaczVvEeje z5Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737397841; x=1738002641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gqa6Kd4Ao7RG6m1qR91iAvEqyTLBmuRQum/yiBc4y04=; b=LxwEmPDVBUwcxgHKoY+9iNqxdQTpMg9UVfmlxq9ITp02BYWY8Kh7xllmMZ/FEf562R ZPMCyAp0bl64JOde8mX+Dqs+f5gDVUQk1G+hiaDUhgIfRJsyPlADdSkbyajWdlZ0GBms /bCycuJ7p6Qz5ZOPpX0EBWJzrlutAbn4K5+qPlSPPg9T3tbB4cmAYgiuy2g80fr26xbk h3YC/jhwCskUoio26tRaGNzECnOKui1yF/lAfypoVxb1w3KAbtN9PVPg68e75oBNsles ZdD87VqpaR9mSVwo58yS/kBFzI+4Fi702wxh8Xz6NQyNRhkyErGYrKvuk+NTxpJ41P8m zMzg== X-Gm-Message-State: AOJu0YyJgyF25mtqk/BwJSP2/up/Rv8bS4rFihJ7Pnq+D5EmSkZ+tSRU TVbxjU+OQWED+1YopRNHMfAbnpwnX6hrNRuRjP16cROE0tYq8vTScJLG976X43Y= X-Gm-Gg: ASbGncthdKQNQq0kFb+6N/RmlAi9tAOxL6Rhs6HwSf08TVg9m+6dZHh9u/yCWc0BcoZ AogVLiH+Zd2kADHFxTcugyOSYNqlxBcABaxV8/4RrUht6qdXHeGMybKsVnYLd/DcCbqAS6CAZSM URnOQ3ceplyhRBrbmXg6sARhNtv7z+DnJOOA923DHZsAFODDFHLedh6vtrFDtja/sctNudPRAix 9UJ9oF/ptQq0tsbRXHXP+1wPmzE/vbDVD6g9xlGO4TulJZfApaMRAm9UMnmXbe26+zAMf+LlSO9 oyxlz/LHfYPYt7RQkLri+uq/Qaibkdl5KPLPkv+cZpYSyqs= X-Google-Smtp-Source: AGHT+IGVBQQYL7F7ZowU11l6kozMeSXFCv0NKph+w4an1l1qrZPBMqPb6WDYxBmS8qHkcbUa08gM8A== X-Received: by 2002:a17:90a:c888:b0:2f4:43ce:dcea with SMTP id 98e67ed59e1d1-2f782d2e551mr19325906a91.25.1737397841079; Mon, 20 Jan 2025 10:30:41 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f7c6c079fasm2361777a91.5.2025.01.20.10.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 10:30:40 -0800 (PST) Date: Mon, 20 Jan 2025 10:19:24 -0800 From: Stephen Hemminger To: "WanRenyong" Cc: , , , , , , , , Subject: Re: [PATCH v6 03/15] net/xsc: add xsc mailbox Message-ID: <20250120101924.5ff437c3@hermes.local> In-Reply-To: <20250120111436.1048479-4-wanry@yunsilicon.com> References: <20250120111431.1048479-1-wanry@yunsilicon.com> <20250120111436.1048479-4-wanry@yunsilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Mon, 20 Jan 2025 19:14:37 +0800 "WanRenyong" wrote: > +static struct xsc_cmdq_req_msg * > +xsc_cmdq_req_msg_alloc(struct xsc_dev *xdev, int len) > +{ > + struct xsc_cmdq_req_msg *msg; > + struct xsc_cmdq_mbox *head = NULL; > + int cmd_len, nb_mbox; > + > + msg = (struct xsc_cmdq_req_msg *)malloc(sizeof(*msg)); Malloc returns void *, so cast here is unnecessary in C