[dpdk-dev] [PATCH] net/nfp: free HW rings memzone on queue release

2022-01-19 Thread heinrich . kuhn
From: Heinrich Kuhn During rx/tx queue setup, memory is reserved for the hardware rings. This memory zone should subsequently be freed in the queue release logic. This commit also adds a call to the release logic in the dev_close() callback so that the ring memzone may be freed during port close

[dpdk-dev] [PATCH 0/7] Refactor the NFP PMD

2021-07-16 Thread Heinrich Kuhn
other PMD's. Apart form adopting the common PMD layout this change should also aid in future feature development to the NFP PMD. The previous layout where most of the logic resided in a single file (nfp_net.c) would have become tedious to support going forward. Heinrich Kuhn (7): net/nfp:

[dpdk-dev] [PATCH 1/7] net/nfp: split rxtx headers into separate file

2021-07-16 Thread Heinrich Kuhn
This change splits out the rx/tx specific structs and defines from the main nfp_net_pmd header file and into their own header file. Signed-off-by: Heinrich Kuhn --- drivers/net/nfp/nfp_net.c | 1 + drivers/net/nfp/nfp_net_pmd.h | 248 -- drivers/net/nfp

[dpdk-dev] [PATCH 2/7] net/nfp: move rxtx functions to their own file

2021-07-16 Thread Heinrich Kuhn
Create a new rxtx file and move the Rx/Tx functions to this file. This commit will also move the needed shared functions to the nfp_net_pmd.h file as needed. Signed-off-by: Heinrich Kuhn --- drivers/net/nfp/meson.build |1 + drivers/net/nfp/nfp_net.c | 1090

[dpdk-dev] [PATCH 3/7] net/nfp: move CPP bridge to a separate file

2021-07-16 Thread Heinrich Kuhn
This commit moves the CPP bridge logic to a separate file. A new corresponding header file is also created. Signed-off-by: Heinrich Kuhn --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_cpp_bridge.c | 392 +++ drivers/net/nfp/nfp_cpp_bridge.h | 36

[dpdk-dev] [PATCH 4/7] net/nfp: prototype common functions in header file

2021-07-16 Thread Heinrich Kuhn
The majority of "ethdev" type functions are used for both PF devices and VF devices. Prototype these functions in the nfp_net_pmd header file in preparation of splitting PF and VF specific functions. Signed-off-by: Heinrich Kuhn --- drivers/net/nfp/nfp_net.

[dpdk-dev] [PATCH 5/7] net/nfp: move VF functions into new file

2021-07-16 Thread Heinrich Kuhn
Move any ethdev functionality specific to VF devices into a new file called nfp_ethdev_vf.c. Signed-off-by: Heinrich Kuhn --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_ethdev_vf.c | 504 drivers/net/nfp/nfp_net.c | 42 +-- 3 files

[dpdk-dev] [PATCH 6/7] net/nfp: move PF functions into new file

2021-07-16 Thread Heinrich Kuhn
Similar to the last commit, this changeset moves all the PF specific functions to a new file called nfp_ethdev.c. Signed-off-by: Heinrich Kuhn --- drivers/net/nfp/meson.build |1 + drivers/net/nfp/nfp_ethdev.c | 1099 ++ drivers/net/nfp/nfp_net.c| 1088

[dpdk-dev] [PATCH 7/7] net/nfp: batch file rename for consistency

2021-07-16 Thread Heinrich Kuhn
Rename the nfp_net.c file to nfp_common as it now contains functions common to VF and PF functionality. Rename the header file too to be consistent. Also remove the "net" naming from the _ctrl and _logs files for consistency across the PMD. Signed-off-by: Heinrich Kuhn --- drive

[dpdk-dev] [PATCH v2 0/7] Refactor the NFP PMD

2021-07-16 Thread Heinrich Kuhn
other PMD's. Apart form adopting the common PMD layout this change should also aid in future feature development to the NFP PMD. The previous layout where most of the logic resided in a single file (nfp_net.c) would have become tedious to support going forward. v2: * Added missing sign-off&#

[dpdk-dev] [PATCH v2 1/7] net/nfp: split rxtx headers into separate file

2021-07-16 Thread Heinrich Kuhn
This change splits out the rx/tx specific structs and defines from the main nfp_net_pmd header file and into their own header file. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 1 + drivers/net/nfp/nfp_net_pmd.h | 248

[dpdk-dev] [PATCH v2 2/7] net/nfp: move rxtx functions to their own file

2021-07-16 Thread Heinrich Kuhn
Create a new rxtx file and move the Rx/Tx functions to this file. This commit will also move the needed shared functions to the nfp_net_pmd.h file as needed. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build |1 + drivers/net/nfp/nfp_net.c

[dpdk-dev] [PATCH v2 3/7] net/nfp: move CPP bridge to a separate file

2021-07-16 Thread Heinrich Kuhn
This commit moves the CPP bridge logic to a separate file. A new corresponding header file is also created. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_cpp_bridge.c | 392 +++ drivers/net

[dpdk-dev] [PATCH v2 4/7] net/nfp: prototype common functions in header file

2021-07-16 Thread Heinrich Kuhn
The majority of "ethdev" type functions are used for both PF devices and VF devices. Prototype these functions in the nfp_net_pmd header file in preparation of splitting PF and VF specific functions. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp

[dpdk-dev] [PATCH v2 5/7] net/nfp: move VF functions into new file

2021-07-16 Thread Heinrich Kuhn
Move any ethdev functionality specific to VF devices into a new file called nfp_ethdev_vf.c. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_ethdev_vf.c | 504 drivers/net/nfp/nfp_net.c

[dpdk-dev] [PATCH v2 6/7] net/nfp: move PF functions into new file

2021-07-16 Thread Heinrich Kuhn
Similar to the last commit, this changeset moves all the PF specific functions to a new file called nfp_ethdev.c. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build |1 + drivers/net/nfp/nfp_ethdev.c | 1099 ++ drivers

[dpdk-dev] [PATCH v2 7/7] net/nfp: batch file rename for consistency

2021-07-16 Thread Heinrich Kuhn
Rename the nfp_net.c file to nfp_common as it now contains functions common to VF and PF functionality. Rename the header file too to be consistent. Also remove the "net" naming from the _ctrl and _logs files for consistency across the PMD. Signed-off-by: Heinrich Kuhn Signed-off

Re: [dpdk-dev] [PATCH] net/nfp: remove compile time log

2021-07-29 Thread Heinrich Kuhn
>>> -#else >>> #define PMD_CPP_LOG(level, fmt, args...) do { } while (0) >>> -#endif >>> >>> extern int nfp_logtype_driver; >>> #define PMD_DRV_LOG(level, fmt, args...) \ > > > Hi Andrew, Apologies for the delay, looks good thanks Reviewed-by: Heinrich Kuhn

[dpdk-dev] [PATCH v3 0/7] Refactor the NFP PMD

2021-07-29 Thread Heinrich Kuhn
w firmware loader helper added in: https://git.dpdk.org/dpdk/commit/?id=40edb9c0d36b781 * Add dependency to patch-93299 v2: * Added missing sign-off's --- Depends-on: patch-93299 ("net/nfp: remove compile time log") Heinrich Kuhn (7): net/nfp: split rxtx headers into separate

[dpdk-dev] [PATCH v3 1/7] net/nfp: split rxtx headers into separate file

2021-07-29 Thread Heinrich Kuhn
This change splits out the rx/tx specific structs and defines from the main nfp_net_pmd header file and into their own header file. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 1 + drivers/net/nfp/nfp_net_pmd.h | 248

[dpdk-dev] [PATCH v3 2/7] net/nfp: move rxtx functions to their own file

2021-07-29 Thread Heinrich Kuhn
Create a new rxtx file and move the Rx/Tx functions to this file. This commit will also move the needed shared functions to the nfp_net_pmd.h file as needed. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build |1 + drivers/net/nfp/nfp_net.c

[dpdk-dev] [PATCH v3 3/7] net/nfp: move CPP bridge to a separate file

2021-07-29 Thread Heinrich Kuhn
This commit moves the CPP bridge logic to a separate file. A new corresponding header file is also created. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_cpp_bridge.c | 392 +++ drivers/net

[dpdk-dev] [PATCH v3 4/7] net/nfp: prototype common functions in header file

2021-07-29 Thread Heinrich Kuhn
The majority of "ethdev" type functions are used for both PF devices and VF devices. Prototype these functions in the nfp_net_pmd header file in preparation of splitting PF and VF specific functions. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp

[dpdk-dev] [PATCH v3 5/7] net/nfp: move VF functions into new file

2021-07-29 Thread Heinrich Kuhn
Move any ethdev functionality specific to VF devices into a new file called nfp_ethdev_vf.c. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_ethdev_vf.c | 504 drivers/net/nfp/nfp_net.c

[dpdk-dev] [PATCH v3 6/7] net/nfp: move PF functions into new file

2021-07-29 Thread Heinrich Kuhn
Similar to the last commit, this changeset moves all the PF specific functions to a new file called nfp_ethdev.c. Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/meson.build |1 + drivers/net/nfp/nfp_ethdev.c | 1067 ++ drivers

[dpdk-dev] [PATCH v3 7/7] net/nfp: batch file rename for consistency

2021-07-29 Thread Heinrich Kuhn
Rename the nfp_net.c file to nfp_common as it now contains functions common to VF and PF functionality. Rename the header file too to be consistent. Also remove the "net" naming from the _ctrl and _logs files for consistency across the PMD. Signed-off-by: Heinrich Kuhn Signed-off

Re: [dpdk-dev] [PATCH v2 0/7] Refactor the NFP PMD

2021-07-29 Thread Heinrich Kuhn
On 2021/07/23 11:18, Thomas Monjalon wrote: > 16/07/2021 10:35, Heinrich Kuhn: >> This patch set restructures the NFP PMD, aligning it more with the >> common layout adopted by most other PMD's. Although the changes look >> fairly large, functionally nothing is added

[dpdk-dev] [PATCH] net/nfp: read chip model from PluDevice register

2021-01-25 Thread Heinrich Kuhn
purposes, follow the hardware team convention of subtracting 0x10 from the PluDevice register to obtain the chip model/revision number. Fixes: c7e9729da ("net/nfp: support CPP") Cc: sta...@dpdk.org Signed-off-by: Heinrich Kuhn Reviewed-by: Louis Peens Signed-off-by: Simon Horman --- drive

[dpdk-dev] [PATCH] maintainers: update for nfp

2021-01-31 Thread Heinrich Kuhn
Release-on-close has been implemented for the NFP PMD. Remove the UNMAINTAINED flag. Signed-off-by: Heinrich Kuhn --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77a2273c1..68c5ce6e5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[dpdk-dev] [PATCH] doc: fix nfp multiport syntax

2021-02-25 Thread Heinrich Kuhn
From: "Chaoyong.He" 1. Fixup the suffix of the PCI ID to be consistent with the code. 2. Add specification of using MAC address to identify port. Fixes: 979f2bae0 ("doc: improve multiport PF in nfp guide") Cc: sta...@dpdk.org Signed-off-by: Chaoyong.He Signed-off-by: Hei

[dpdk-dev] [PATCH] net/nfp: cancel delayed LSC work in port close logic

2021-10-05 Thread heinrich . kuhn
From: Heinrich Kuhn The link state change interrupt handler of the NFP PMD will delay the actual LSC work for a short period to ensure the link is stable. If the link of the port changes state and the port is closed immediately after the link event then a segmentation fault will occur. This

Re: [dpdk-dev] [PATCH v3 0/7] Refactor the NFP PMD

2021-08-13 Thread Heinrich Kuhn
On 2021/07/29 15:47, Heinrich Kuhn wrote: > This patch set restructures the NFP PMD, aligning it more with the > common layout adopted by most other PMD's. Although the changes look > fairly large, functionally nothing is added or removed from the driver > and the existing co

[dpdk-dev] [PATCH] net/nfp: fix minimum descriptor sizes

2021-08-23 Thread heinrich . kuhn
From: Heinrich Kuhn The NFP4000/6000 supports a minimum of 256 Tx/Rx descriptors and not 64. Before this patch when a DPDK application configured < 256 Tx descriptors the hardware read/write pointers would be unmasked and not wrapped at the expected size of the ring. The PMD logic to determ

[dpdk-dev] [PATCH] maintainers: update for NFP

2021-08-23 Thread heinrich . kuhn
From: Heinrich Kuhn Some of Netronome's activities and people have moved over to Corigine, including NFP PMD maintenance and myself. Signed-off-by: Heinrich Kuhn --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8013b

[dpdk-dev] [PATCH] maintainers: update for NFP

2022-03-25 Thread heinrich . kuhn
From: Heinrich Kuhn Niklas has been appointed the new maintainer for the NFP PMD. Update the MAINTAINERS file to reflect this Signed-off-by: Heinrich Kuhn --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index fdea1c623f..2ae2f8ffb4

[dpdk-dev] [PATCH] net/nfp: fix reporting of RSS capabilities

2021-05-10 Thread Heinrich Kuhn
te Rx RSS hash offload capabilities") Cc: sta...@dpdk.org Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_n

[dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices

2021-05-10 Thread Heinrich Kuhn
From: "Chaoyong.He" Set the Rx multi-queue mode to NONE when configuring a port that is associated with hardware that only supports a single Rx queue. Signed-off-by: Chaoyong He Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- examples/l3fwd/main.c | 4 1 file

[dpdk-dev] [PATCH] net/nfp: fix internal NFP port addressing

2021-05-14 Thread Heinrich Kuhn
port number is now correctly used for configuration changes. Fixes: 5e15e799d ("net/nfp: create separate entity for PF device") Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 38 +++ drivers/net/nfp/nfp_net_

[dpdk-dev] [PATCH 1/2] net/nfp: improve PF probing logic

2021-06-09 Thread Heinrich Kuhn
s for each physical port during PF initialization, giving them more consistent names. Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device") Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 31 ---

[dpdk-dev] [PATCH 2/2] net/nfp: fix PF secondary process probing

2021-06-09 Thread Heinrich Kuhn
have the primary register the service if it is also needed in a secondary process. This implies that both the primary and secondary will have their own copy of the bridge service. Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device") Signed-off-by: Heinrich Kuhn Signe

[dpdk-dev] [PATCH v2 1/2] net/nfp: improve PF probing logic

2021-06-09 Thread Heinrich Kuhn
s for each physical port during PF initialization, giving them more consistent names. Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device") Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 31 ---

[dpdk-dev] [PATCH v2 2/2] net/nfp: fix PF secondary process probing

2021-06-09 Thread Heinrich Kuhn
have the primary register the service if it is also needed in a secondary process. This implies that both the primary and secondary will have their own copy of the bridge service. Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device") Signed-off-by: Heinrich Kuhn Signe

Re: [dpdk-dev] [PATCH] net/nfp: use macro PCI_PRI_FMT for PCI log format

2020-01-16 Thread Heinrich Kuhn
; PCI_PRI_FMT, > + pci_dev->addr.domain, pci_dev->addr.bus, > + pci_dev->addr.devid, pci_dev->addr.function); > } > > /* Interrupt configuration and handling */ > Acked-by: Heinrich Kuhn

[dpdk-dev] [PATCH] net/nfp: fix RSS hash configuration reporting

2020-07-10 Thread Heinrich Kuhn
: 934e4c60fbff ("nfp: add RSS") Cc: sta...@dpdk.org Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 88e3f01d6..f47200cc4 100644 ---

Re: [dpdk-dev] [PATCH] net/nfp: fix log format specifiers

2020-04-07 Thread Heinrich Kuhn
PP bridge as service") > Cc: sta...@dpdk.org > > Signed-off-by: Ferruh Yigit > --- Acked-by: Heinrich Kuhn

Re: [dpdk-dev] [PATCH v1] net/nfp: fix dangling pointer on failure

2020-04-07 Thread Heinrich Kuhn
quot;) > CC: sta...@dpdk.org > > Signed-off-by: Yunjian Wang Thanks Yunjian Acked-by: Heinrich Kuhn

[dpdk-dev] [PATCH] maintainers: update for NFP

2020-02-11 Thread Heinrich Kuhn
Jan is no longer with Netronome. Remove him as maintainer for the Netronome PMD Signed-off-by: Heinrich Kuhn --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index bc98b9167..3d5e8d110 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -784,7 +784,6 @@ F

[dpdk-dev] [PATCH] maintainers: update maintainers for nfp PMD

2019-11-27 Thread Heinrich Kuhn
As Alejandro is no longer with Netronome we appointed two new maintainers for the Netronome PMD Signed-off-by: Heinrich Kuhn --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4a0c9a47e..6bac90c25 100644 --- a/MAINTAINERS +++ b

Re: [dpdk-dev] [PATCH] MAINTAINERS: resign from NFP PMD maintainer

2019-11-27 Thread Heinrich Kuhn
On 2019/11/25 20:52, thomas at monjalon.net (Thomas Monjalon) wrote: > 13/11/2019 14:05, Alejandro Lucero: >> On Wed, Nov 13, 2019 at 12:55 PM Ferruh Yigit >> wrote: >>> On 11/13/2019 12:47 PM, Alejandro Lucero wrote: [...] >>> Can it be possible to nominate someone? >>> It would be good to have a

Re: [dpdk-dev] [PATCH] net/nfp: replace license text with SPDX tag

2019-11-27 Thread Heinrich Kuhn
On 2019/09/27 10:33, hemant.agrawal at nxp.com (Hemant Agrawal) wrote: > Signed-off-by: Hemant Agrawal Acked-by: Heinrich Kuhn

[dpdk-dev] [PATCH 0/2] free port private data in dev_close callback

2021-01-19 Thread Heinrich Kuhn
cond patch in the series makes the changes in nfp_net_close to free the private data of a given port. PF resources are only freed once all other ports under the PF has also been cleaned up. Heinrich Kuhn (2): net/nfp: create a separate entity for a NFP PF device net/nfp: free port private d

[dpdk-dev] [PATCH 1/2] net/nfp: create a separate entity for a NFP PF device

2021-01-19 Thread Heinrich Kuhn
uring this phase because memory has already been allocated and an eth_dev already exits for the 0th port. Signed-off-by: Heinrich Kuhn Reviewed-by: Louis Peens Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c | 545 +- drivers/net/nfp/nfp_net_pmd.h | 6

[dpdk-dev] [PATCH 2/2] net/nfp: free port private data in dev close callback

2021-01-19 Thread Heinrich Kuhn
x27;t explicitly supported for NFP6000/4000 devices but all the private data of all the ports under the PF in question will be freed upon device removal. Signed-off-by: Heinrich Kuhn Reviewed-by: Louis Peens Signed-off-by: Simon Horman --- drivers/net/nfp/nfp_net.c

[dpdk-dev] [PATCH] net/nfp: expand dev_infos_get callback function

2020-09-02 Thread Heinrich Kuhn
Report Rx and Tx descriptor related limitations in the nfp dev_info_get callback function. This commit also adds NFP_ALIGN_RING_DESC to replace a static integer value used during rx/tx queue setups to validate descriptor alignment. Cc: sta...@dpdk.org Signed-off-by: Heinrich Kuhn Signed-off-by

[dpdk-dev] [PATCH] doc: improve NFP PMD multiport PF documentation

2020-09-03 Thread Heinrich Kuhn
The Agilio CX family of smartNIC's generally have a 1:many mapping of PF to physical ports. Elaborate on this mapping in the PF multiport section of the NFP PMD documentation. Fixes: d625beafc8be ("doc: update NFP with PF support information") Cc: sta...@dpdk.org Signed-off-by