RE: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support

2018-04-02 Thread Ioana Ciornei
> > > I'm still not convinced either way (high-level or low-level > > interface), but I think this needs to be discussed with the networking > > maintainers. Given the examples on the github page you linked to, the > > high-level user space commands based on these ioctls > > > >ls-addni #

[PATCH net-next 0/6] dpaa2-eth: code cleanup

2018-10-12 Thread Ioana Ciornei
There are no functional changes in this patch set, only some cleanup changes such as: unused parameters, uninitialized variables and unnecessary Kconfig dependencies. Ioana Ciornei (4): dpaa2-eth: make dpaa2_eth_set_dist_key static dpaa2-eth: fix uninitialized variable warnings dpaa2-eth

[PATCH net-next 1/6] dpaa2-eth: Fix Kconfig dependencies

2018-10-12 Thread Ioana Ciornei
support unconditionally. Signed-off-by: Ioana Radulescu Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/Kconfig b/drivers/net/ethernet/freescale/dpaa2/Kconfig index a7f365d

[PATCH net-next 2/6] dpaa2-eth: make dpaa2_eth_set_dist_key static

2018-10-12 Thread Ioana Ciornei
The dpaa2_eth_set_dist_key function is only used in a single file. Make it static. Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b

[PATCH net-next 3/6] dpaa2-eth: fix uninitialized variable warnings

2018-10-12 Thread Ioana Ciornei
All 3 cases of possible uninitialized variables are false positives since they are used only as output parameters. Nonetheless, fix the warnings. Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH net-next 6/6] dpaa2-eth: remove unused FD field

2018-10-12 Thread Ioana Ciornei
From: Ioana Radulescu According to the hardware ArchDef, the PTV1 field in FD[CTRL] is ignored by WRIOP, so setting it for Tx FDs is pointless. Remove all references to it from the code. Signed-off-by: Ioana Radulescu Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2

[PATCH net-next 5/6] dpaa2-eth: mark unused parameter in dpaa2_eth_tx_conf

2018-10-12 Thread Ioana Ciornei
The ch parameter is never used in the dpaa2_eth_tx_conf function but since its prototype must match the type defined in the consume field of struct dpaa2_eth_fq, just mark it as __always_unused. Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 +- 1 file

[PATCH net-next 4/6] dpaa2-eth: remove unused priv parameter

2018-10-12 Thread Ioana Ciornei
The priv parameter is never used in the build_linear_skb and drain_channel function. Remove it from the function definitions. Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH net-next 2/2] dpaa2-ptp: defer probe when portal allocation failed

2018-11-08 Thread Ioana Ciornei
The fsl_mc_portal_allocate can fail when the requested MC portals are not yet probed by the fsl_mc_allocator. In this situation, the driver should defer the probe. Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH net-next 1/2] dpaa2-eth: defer probe on object allocate

2018-11-08 Thread Ioana Ciornei
The fsl_mc_object_allocate function can fail because not all allocatable objects are probed by the fsl_mc_allocator at the call time. Defer the dpaa2-eth probe when this happens. Signed-off-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 30 +--- 1

[PATCH net-next 0/2] dpaa2-eth: defer probe on object allocate

2018-11-08 Thread Ioana Ciornei
Allocatable objects on the fsl-mc bus may be probed by the fsl_mc_allocator after the first attempts of other drivers to use them. Defer the probe when this situation happens. Ioana Ciornei (2): dpaa2-eth: defer probe on object allocate dpaa2-ptp: defer probe when portal allocation failed

RE: [PATCH net-next 1/2] dpaa2-eth: defer probe on object allocate

2018-11-09 Thread Ioana Ciornei
> > The fsl_mc_object_allocate function can fail because not all > > allocatable objects are probed by the fsl_mc_allocator at the call > > time. Defer the dpaa2-eth probe when this happens. > > > > Signed-off-by: Ioana Ciornei > > --- > > drivers/net

[PATCH net-next v2 0/2] dpaa2-eth: defer probe on object allocate

2018-11-09 Thread Ioana Ciornei
Allocatable objects on the fsl-mc bus may be probed by the fsl_mc_allocator after the first attempts of other drivers to use them. Defer the probe when this situation happens. Changes in v2: - proper handling of IS_ERR_OR_NULL Ioana Ciornei (2): dpaa2-eth: defer probe on object allocate

[PATCH net-next v2 2/2] dpaa2-ptp: defer probe when portal allocation failed

2018-11-09 Thread Ioana Ciornei
The fsl_mc_portal_allocate can fail when the requested MC portals are not yet probed by the fsl_mc_allocator. In this situation, the driver should defer the probe. Signed-off-by: Ioana Ciornei --- Changes in v2: - none drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 5 - 1 file

[PATCH net-next v2 1/2] dpaa2-eth: defer probe on object allocate

2018-11-09 Thread Ioana Ciornei
The fsl_mc_object_allocate function can fail because not all allocatable objects are probed by the fsl_mc_allocator at the call time. Defer the dpaa2-eth probe when this happens. Signed-off-by: Ioana Ciornei --- Changes in v2: - proper handling of IS_ERR_OR_NULL drivers/net/ethernet

RE: [PATCH net-next 1/2] dpaa2-eth: defer probe on object allocate

2018-11-09 Thread Ioana Ciornei
> Hi Ioana > > > I will send a v2 changing the return value to -ENODEV in case no cpus > > with an affine DPIO is found. > > It would be good to review all the cases where IS_ERR_OR_NULL() is used. It is > very easy to get wrong. In fact, it has been suggested this macro is removed, > because it