From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 47804A0526; Fri, 24 Jul 2020 20:05:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 498651C012; Fri, 24 Jul 2020 20:05:01 +0200 (CEST) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id CCE441BFE5 for ; Fri, 24 Jul 2020 20:04:59 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id b9so4910147plx.6 for ; Fri, 24 Jul 2020 11:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m4SRxLLy0+jw+Z9M9wEHZTlRqw9vVrb15kB++UWqn6E=; b=Pcen+HPBLWQyGKH/oVdzDcjuSyfZgKPKai6O9MmJCSsriO7jEWPjAQLMx5GH1X/UVn ER6vSMsn7yR2uU9oAb30x8bcLVxtk+M+eEg7thge6fp3LVVo47FGjmV9bQFlbga8l6/d jwAdVr4bTzSafENSI+SFxLJZHDM0EK7zmzV+nP9V0t4tkM3u4MqOu7hOcUghFCCSRNmB CLXHOUGgB9YN+Ky6h2giK65hLwSndrrFAg0ylS7S0mtE7btIRyZ8ARsU/SNBEpY/9Us1 WdDFjl3Fz9qp17dB2GrA1RYAiiz/FF7th3N9zNstfMmgCROWQHJCPTfgxmqm/lNG55EV D/cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m4SRxLLy0+jw+Z9M9wEHZTlRqw9vVrb15kB++UWqn6E=; b=MusVp/713O9Revpm/S8HWckrZQpQul2Ha1CzQSyynzQ7T8zMoKHFjKvJIcNPmD2lMH qVTrMcoS8dnrMU1tMtnWZYbN6lCx04m/H+PbZmkuXiBFqDtGwpFmfNPshc/EgBivK8Yr H329Ew7K6W6J2Cd3NUE2P5lNfMXgBKMxNuVgSE6esA6xDheGk18YYrkqUVuol5eF6LdU NI0zDxEDuteERYIJ7jYBOd7ztw5iXBnJJSK9DJCOCHZ3AMW0IhgNLop1B6yef0mgvNl6 ZYEbqKfJlO76WPbbDfOmKUXTBzJ08F3jSnwwSrV9oMNIdO0F07TXYH70aupjs8Idq+5I Kl1w== X-Gm-Message-State: AOAM531kJqXWctyutx0xdAB4BRzjLCfGFbB4KcOp9KWm2gJbOl3rio7R MdutAIwZpuRlfPO9dBrJxoTjYg== X-Google-Smtp-Source: ABdhPJzG8B0duwJqePZpDMMIhfbqEegyC4FNydf44kMR0lLlp8Vp2UZT9qVBFTYh6RafyPaiRoYS+Q== X-Received: by 2002:a17:902:9a47:: with SMTP id x7mr9138149plv.90.1595613898708; Fri, 24 Jul 2020 11:04:58 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v28sm7100789pgn.81.2020.07.24.11.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 11:04:58 -0700 (PDT) Date: Fri, 24 Jul 2020 11:04:50 -0700 From: Stephen Hemminger To: Ajit Khaparde Cc: dev@dpdk.org, ferruh.yigit@intel.com, Mike Baucom , Randy Schacher Message-ID: <20200724110450.2145e117@hermes.lan> In-Reply-To: <20200724053235.71069-2-ajit.khaparde@broadcom.com> References: <20200723115639.22357-1-somnath.kotur@broadcom.com> <20200724053235.71069-1-ajit.khaparde@broadcom.com> <20200724053235.71069-2-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 01/22] net/bnxt: add shadow and search capability to tcam X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 23 Jul 2020 22:32:14 -0700 Ajit Khaparde wrote: > +int > +tf_search_tcam_entry(struct tf *tfp, > + struct tf_search_tcam_entry_parms *parms) > +{ > + int rc; > + struct tf_session *tfs; > + struct tf_dev_info *dev; > + struct tf_tcam_alloc_search_parms sparms; > + > + TF_CHECK_PARMS2(tfp, parms); > + > + memset(&sparms, 0, sizeof(struct tf_tcam_alloc_search_parms)); FYI simpler way to initialize stack variable is: struct tf_tcam_alloc_search_parms sparms = { };