Re: [PATCH RESEND v2 02/11] net/tap: check if name is null

2023-01-18 Thread Sinan Kaya
On Wed, 2023-01-18 at 10:57 +, Ferruh Yigit wrote: > I assume this is highlighted by a tool but in practice > > 'rte_vdev_device_name()' should not return NULL, and there are many > > other location this check is missing. That's correct. Warning was found by codeql static analysis tool. When

Re: [PATCH RESEND v2 01/11] ethdev: check return result of rte_eth_dev_info_get

2023-01-18 Thread Sinan Kaya
On Wed, 2023-01-18 at 09:42 +0100, Thomas Monjalon wrote: > 22/11/2022 16:30, > ok...@kernel.org > : > > > rte_class_eth: eth_mac_cmp: The status of this call to > > rte_eth_dev_info_get > > is not checked, potentially leaving dev_info uninitialized. > > [...] > > >/* Return 0 if devarg

Re: [PATCH v3 00/10] codeql fixes for various subsystems

2023-02-06 Thread Sinan Kaya
On Thu, 2023-01-19 at 23:41 -0500, ok...@kernel.org wrote: > From: Sinan Kaya > > Following up the codeql reported problems first submitted > by Stephen Hemminger here: > > https://lore.kernel.org/all/20220527161210.77212d0b@hermes.local/t/ > > Posting a series of fi

Re: [PATCH v3 10/10] bus/vdev: check result of rte_vdev_device_name

2023-02-06 Thread Sinan Kaya
On Sun, 2023-01-22 at 21:51 +0100, Thomas Monjalon wrote: > 20/01/2023 17:47, Stephen Hemminger: > > On Thu, 19 Jan 2023 23:41:40 -0500 > > ok...@kernel.org wrote: > > > > > diff --git a/lib/ethdev/ethdev_vdev.h b/lib/ethdev/ethdev_vdev.h > > > index 364f140f91..6d94a65d97 100644 > > > --- a/lib/e

Re: [PATCH v3 00/10] codeql fixes for various subsystems

2023-07-19 Thread Sinan Kaya
On Thu, 2023-07-06 at 15:43 -0700, Stephen Hemminger wrote: > > lib/eal/common/eal_common_memalloc.c | 5 - > > lib/eal/common/eal_common_memzone.c | 10 +- > > lib/eal/common/malloc_elem.c | 14 +++--- > > lib/eal/common/malloc_heap.c | 9 - > >

Re: [PATCH v1 0/7] support reinit flow

2023-08-14 Thread Sinan Kaya
On Mon, 2023-08-14 at 19:12 -0700, Stephen Hemminger wrote: > On Mon, 14 Aug 2023 21:38:19 -0400 > > ok...@kernel.org wrote: > > > > > From: Sinan Kaya > > We want to be able to call rte_eal_init() and rte_eal_cleanup() > > APIs back to back for maintan

Re: [PATCH v4 2/8] eal: fixes for re-initialization issues

2023-08-15 Thread Sinan Kaya
On Tue, 2023-08-15 at 10:49 -0700, Stephen Hemminger wrote: > > > > + __atomic_store_n(&run_once, 0, __ATOMIC_RELAXED); > >return 0; > > > Interesting, other flags don't use atomic. Why here? > > > > And is already set elsewhere? Looking at the history, this variable used to be

Re: [PATCH v4 8/8] eal: initialize worker threads once

2023-08-15 Thread Sinan Kaya
On Tue, 2023-08-15 at 10:46 -0700, Stephen Hemminger wrote: > > static uint32_t run_once; > > +static bool worker_initialized; > > > > > I see a pattern here. Many places are using static to > > only initialize once. Could you name these variables the > > same; suggest using run_once every

Re: [PATCH v4 0/8] support reinit flow

2023-08-15 Thread Sinan Kaya
On Tue, 2023-08-15 at 10:45 -0700, Stephen Hemminger wrote: > > Why? > > It is not always ideal to reinitialize a DPDK process. Memory needs > > to be reinitialized, hugetables need to warm up etc. > > > > > I am familiar with the backstory of why this is desirable in your > case. > > But othe

Re: [PATCH 02/11] net/tap: check if name is null

2022-11-21 Thread Sinan Kaya
On Mon, 2022-11-21 at 22:41 +0100, Thomas Monjalon wrote: > 21/11/2022 21:40, ok...@kernel.org: > > --- a/drivers/net/tap/rte_eth_tap.c+++ > > b/drivers/net/tap/rte_eth_tap.c@@ -2340,6 +2340,10 @@ > > rte_pmd_tun_probe(struct rte_vdev_device *dev) struct > > rte_eth_dev *eth_dev; name =

Re: [PATCH v2 00/11] codeql fixes for various subsystems

2022-11-22 Thread Sinan Kaya
On Tue, 2022-11-22 at 16:24 +0100, David Marchand wrote: > Thanks for the fixes, but it looks like the v2 series is truncated. > > Can you resend it so it passes through the CI? Sure

Re: [PATCH RESEND v2 00/11] codeql fixes for various subsystems

2022-12-13 Thread Sinan Kaya
On Tue, 2022-11-22 at 10:30 -0500, ok...@kernel.org wrote: > From: Sinan Kaya > Following up the codeql reported problems first submittedby Stephen > Hemminger here: > https://lore.kernel.org/all/20220527161210.77212d0b@hermes.local/t/ > > Posting a series of fixes about pote

Re: [PATCH RESEND v2 00/11] codeql fixes for various subsystems

2022-12-13 Thread Sinan Kaya
On Tue, 2022-12-13 at 19:59 +0300, Dmitry Kozlyuk wrote: > 2022-12-13 11:43 (UTC-0500), Sinan Kaya: > > Checking to see if I need to cover any feedback. > > There was some feedback to pre-resend v2 that is not visible on > patchwork: > > h

Re: [PATCH RESEND v2 00/11] codeql fixes for various subsystems

2022-12-16 Thread Sinan Kaya
On Tue, 2022-12-13 at 12:02 -0500, Sinan Kaya wrote: > On Tue, 2022-12-13 at 19:59 +0300, Dmitry Kozlyuk wrote: > > 2022-12-13 11:43 (UTC-0500), Sinan Kaya: > > > Checking to see if I need to cover any feedback. > > > > There was some feedback to pre-resend v2 that i

[dpdk-dev] [PATCH] ethdev: support PCI domains

2016-07-22 Thread Sinan Kaya
numbers to device naming so that we can uniquely identify devices. Signed-off-by: Sinan Kaya --- lib/librte_ether/rte_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 0a6e3f1..929240f 100644 --- a/lib

[dpdk-dev] [PATCH] ethdev: support PCI domains

2016-07-22 Thread Sinan Kaya
On 7/22/2016 5:12 PM, Stephen Hemminger wrote: > On Fri, 22 Jul 2016 11:34:10 -0400 > Sinan Kaya wrote: > >> The current code is enumerating devices based on bus, device and function >> pairs. This does not work well for architectures with multiple PCI >> segments/do

[dpdk-dev] [PATCH] ethdev: support PCI domains

2016-10-04 Thread Sinan Kaya
On 10/4/2016 4:15 AM, Thomas Monjalon wrote: > 2016-07-22 18:56, Sinan Kaya: >> On 7/22/2016 5:12 PM, Stephen Hemminger wrote: >>> On Fri, 22 Jul 2016 11:34:10 -0400 >>> Sinan Kaya wrote: >>> >>>> The current code is enumerating devices based on bu