From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH 01/30] net/sfc: log port ID as 16-bit unsigned integer on panic Date: Fri, 8 Feb 2019 10:13:21 +0000 Message-ID: <2d03e53f-66a5-413a-66fd-6db2842c4a37@intel.com> References: <1549541873-17403-1-git-send-email-arybchenko@solarflare.com> <1549541873-17403-2-git-send-email-arybchenko@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Ivan Malov , stable@dpdk.org To: Andrew Rybchenko , dev@dpdk.org Return-path: In-Reply-To: <1549541873-17403-2-git-send-email-arybchenko@solarflare.com> Content-Language: en-US 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 2/7/2019 12:17 PM, Andrew Rybchenko wrote: > From: Ivan Malov > > Fixes: f8244c6399d9 ("ethdev: increase port id range") > Cc: stable@dpdk.org > > Signed-off-by: Ivan Malov > Signed-off-by: Andrew Rybchenko > --- > drivers/net/sfc/sfc_debug.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/sfc/sfc_debug.h b/drivers/net/sfc/sfc_debug.h > index 6b600ff4d..62f3937e8 100644 > --- a/drivers/net/sfc/sfc_debug.h > +++ b/drivers/net/sfc/sfc_debug.h > @@ -27,7 +27,8 @@ > do { \ > const struct sfc_adapter *_sa = (sa); \ > \ > - rte_panic("sfc " PCI_PRI_FMT " #%" PRIu8 ": " fmt "\n", \ > + rte_panic("sfc " PCI_PRI_FMT \ > + " #%" PRIu16 ": " fmt "\n", \ > _sa->pci_addr.domain, _sa->pci_addr.bus, \ > _sa->pci_addr.devid, _sa->pci_addr.function, \ > _sa->port_id, ##args); \ > Overall it may not be good idea to call rte_panic() from driver. rte_panic() cause the DPDK application to terminate, if a driver fails application may prefer to handle that error and continue to run, so terminate decision should be from application not library. Can you please double check if rte_panic() usages in the driver can be converted to error reporting?