From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E47C17CC2 for ; Wed, 24 May 2017 13:45:48 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2017 04:45:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,385,1491289200"; d="scan'208";a="90987619" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.81]) ([10.237.220.81]) by orsmga004.jf.intel.com with ESMTP; 24 May 2017 04:45:46 -0700 To: Hemant Agrawal , dev@dpdk.org Cc: shreyansh.jain@nxp.com References: <1494851864-26029-1-git-send-email-hemant.agrawal@nxp.com> <1495445969-29199-1-git-send-email-hemant.agrawal@nxp.com> <1495445969-29199-9-git-send-email-hemant.agrawal@nxp.com> From: Ferruh Yigit Message-ID: <0bc56526-722a-1b14-80d4-d64745cd1c54@intel.com> Date: Wed, 24 May 2017 12:45:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <1495445969-29199-9-git-send-email-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 08/20] net/dpaa2: add support for congestion notification 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: , X-List-Received-Date: Wed, 24 May 2017 11:45:49 -0000 On 5/22/2017 10:39 AM, Hemant Agrawal wrote: > In case of HW egress FQ is congested, skip further > transmission of frames. > > Signed-off-by: Hemant Agrawal > --- > drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 5 +- > drivers/net/dpaa2/dpaa2_ethdev.c | 62 ++++++++++++++- > drivers/net/dpaa2/dpaa2_ethdev.h | 14 ++++ > drivers/net/dpaa2/dpaa2_rxtx.c | 4 + > drivers/net/dpaa2/mc/dpni.c | 47 ++++++++++++ > drivers/net/dpaa2/mc/fsl_dpni.h | 129 +++++++++++++++++++++++++++++++- > drivers/net/dpaa2/mc/fsl_dpni_cmd.h | 36 +++++++++ > 7 files changed, 289 insertions(+), 8 deletions(-) <...> > > +int dpni_set_congestion_notification(struct fsl_mc_io *mc_io, > + uint32_t cmd_flags, > + uint16_t token, > + enum dpni_queue_type qtype, > + uint8_t tc_id, > + const struct dpni_congestion_notification_cfg *cfg) > +{ > + struct mc_command cmd = { 0 }; > + > + /* prepare command */ > + cmd.header = mc_encode_cmd_header( > + DPNI_CMDID_SET_CONGESTION_NOTIFICATION, > + cmd_flags, > + token); > + DPNI_CMD_SET_CONGESTION_NOTIFICATION(cmd, qtype, tc_id, cfg); > + > + /* send command to mc*/ > + return mc_send_command(mc_io, &cmd); > +} > + > +int dpni_get_congestion_notification(struct fsl_mc_io *mc_io, > + uint32_t cmd_flags, > + uint16_t token, > + enum dpni_queue_type qtype, > + uint8_t tc_id, > + struct dpni_congestion_notification_cfg *cfg) > +{ Since there will be a new version already, can you also fix above syntax please?