History log of /dpdk/drivers/net/nfp/nfpcore/nfp_cppcore.c (Results 1 – 25 of 30)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v24.11, v24.11-rc4, v24.11-rc3, v24.11-rc2, v24.11-rc1
# b6de4353 17-Oct-2024 Zerun Fu <zerun.fu@corigine.com>

net/nfp: add missing period in logs

Unified add period at the end of the sentence in log.

Signed-off-by: Zerun Fu <zerun.fu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewe

net/nfp: add missing period in logs

Unified add period at the end of the sentence in log.

Signed-off-by: Zerun Fu <zerun.fu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>

show more ...


# fb86136d 17-Oct-2024 Zerun Fu <zerun.fu@corigine.com>

net/nfp: reformat abbreviations in logs

Unified do not apply abbreviations in log.

Signed-off-by: Zerun Fu <zerun.fu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: L

net/nfp: reformat abbreviations in logs

Unified do not apply abbreviations in log.

Signed-off-by: Zerun Fu <zerun.fu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>

show more ...


Revision tags: v24.07, v24.07-rc4, v24.07-rc3, v24.07-rc2, v24.07-rc1, v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1, v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2
# a3460357 27-Oct-2023 Chaoyong He <chaoyong.he@corigine.com>

common/nfp: move platform module

Move the platform module to the common library.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng

common/nfp: move platform module

Move the platform module to the common library.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>

show more ...


Revision tags: v23.11-rc1
# 1fbe51cd 20-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: extend usage of BAR from 8 to 24

Sync the logic from kernel driver, adjust the definition of structure,
and extend the usage of nfp BAR from 8 to 24.

This will greatly enhance the scalabil

net/nfp: extend usage of BAR from 8 to 24

Sync the logic from kernel driver, adjust the definition of structure,
and extend the usage of nfp BAR from 8 to 24.

This will greatly enhance the scalability of nfp PMD.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# 796f1aec 20-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: refactor cppcore and PCIe module

Sync the logic from kernel driver, use the new entry function from the
PCIe module instead of the cppcore module.

Signed-off-by: Chaoyong He <chaoyong.he@c

net/nfp: refactor cppcore and PCIe module

Sync the logic from kernel driver, use the new entry function from the
PCIe module instead of the cppcore module.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# ff627b74 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: refactor cppcore module

Modify the comment and standard the coding style.
Move the definition of data structure into the implement file to make
the API small.
Also sync the logic from kerne

net/nfp: refactor cppcore module

Modify the comment and standard the coding style.
Move the definition of data structure into the implement file to make
the API small.
Also sync the logic from kernel driver and remove the unneeded header
file include statements.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# e96559a1 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: add header file for PCIe module

Add a new header file for the PCIe module.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>


# 055ccb33 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: refactor target module

Move the function declaration into the header file, and sync some
logic from kernel driver.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>


# 588c5b10 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: rename some parameters and variables

Rename some parameter and variable to make the logic easier to
understand.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>


# f842b01a 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: standardize blank character

Use space character to align instead of TAB character.
There should one blank line to split the block of logic, no more no less.

Signed-off-by: Chaoyong He <cha

net/nfp: standardize blank character

Use space character to align instead of TAB character.
There should one blank line to split the block of logic, no more no less.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# 6d03aa61 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: standardize comment style

Follow the DPDK coding style, use the kdoc comment style.
Also move the comment of the functions to the implement file and
add some comment to help understand logi

net/nfp: standardize comment style

Follow the DPDK coding style, use the kdoc comment style.
Also move the comment of the functions to the implement file and
add some comment to help understand logic.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# efa766e1 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: adjust the log statement

Add log statement to the important control logic, which means
more strict check of the return value of function call.
Also remove some verbose info log statement.

net/nfp: adjust the log statement

Add log statement to the important control logic, which means
more strict check of the return value of function call.
Also remove some verbose info log statement.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# 610bf14b 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: standardize local variable coding style

There should only declare one local variable in each line, and the local
variable should be arranged from short to long in the function.

Signed-off-

net/nfp: standardize local variable coding style

There should only declare one local variable in each line, and the local
variable should be arranged from short to long in the function.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# a2f4bd14 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: remove the unneeded logic

Remove the unneeded logic.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>


# c69debce 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: unify the type of integer variable

Unify the type of integer variable to the DPDK prefer style.
Also change the return type of 'nfp_eth_speed2rate()' to the
corresponding enum, which make i

net/nfp: unify the type of integer variable

Unify the type of integer variable to the DPDK prefer style.
Also change the return type of 'nfp_eth_speed2rate()' to the
corresponding enum, which make it more readable.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# d108b9e9 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: unify the indent coding style

Each parameter of function should occupy one line, and indent two TAB
character.
All the statement which span multi line should indent two TAB character.

Sign

net/nfp: unify the indent coding style

Each parameter of function should occupy one line, and indent two TAB
character.
All the statement which span multi line should indent two TAB character.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


# 4aa75cad 19-Sep-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: compare to null and 0 explicitly

To compliance with the coding standard, make the pointer variable
explicitly comparing to 'NULL' and the integer variable explicitly
comparing to '0'.

Sign

net/nfp: compare to null and 0 explicitly

To compliance with the coding standard, make the pointer variable
explicitly comparing to 'NULL' and the integer variable explicitly
comparing to '0'.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>

show more ...


Revision tags: v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2, v23.07-rc1
# 925c27ec 07-Jun-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: fix offloading flows

The symbol '_abi_flower_extra_features' is in IMEM for NFP4000,
but in EMU_CACHE for NFP3800 because which does not have IMEM.

The original logic can't read symbol fro

net/nfp: fix offloading flows

The symbol '_abi_flower_extra_features' is in IMEM for NFP4000,
but in EMU_CACHE for NFP3800 because which does not have IMEM.

The original logic can't read symbol from EMU_CACHE, so the probe
process will fail when we try to offload flows use NFP3800.

Modify the related data structure and logics to support read symbol
from EMU_CACHE.

Fixes: c7e9729da6b5 ("net/nfp: support CPP")
Cc: stable@dpdk.org

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

show more ...


# 8987de81 10-Apr-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: use generic macros for array size and to set bits

Instead of using NFP specific macros for array size and to set bits use
the generic ones provided by DPDK.

By moving some include directiv

net/nfp: use generic macros for array size and to set bits

Instead of using NFP specific macros for array size and to set bits use
the generic ones provided by DPDK.

By moving some include directives for system header files directly to
the source files that depend on them, the header file nfp_platform.h
defining the NFP specific macros can be removed.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

show more ...


# b29d5df4 10-Apr-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: drop usage of return error helpers

Drop the usage of complex return error helpers. These helpers was used
to return either NULL or -1 from a function while communicating the
error using err

net/nfp: drop usage of return error helpers

Drop the usage of complex return error helpers. These helpers was used
to return either NULL or -1 from a function while communicating the
error using errno. However erron was seldom checked and the error path
was taken only depending on the functions return value.

Remove the macros and convert the few callers that did look at errno to
communicate different errors using the return value instead. Also update
all the related documentation.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

show more ...


# e6858e7e 10-Apr-2023 Chaoyong He <chaoyong.he@corigine.com>

net/nfp: move shared target logic to own file

Move the needed logic of nfp_target.h and nfp_cppat.h
to a new source file nfp_target.c, and delete the logic
which are not used at all.

The code is mo

net/nfp: move shared target logic to own file

Move the needed logic of nfp_target.h and nfp_cppat.h
to a new source file nfp_target.c, and delete the logic
which are not used at all.

The code is moved verbatim from the header file to the source
file, no functional change.

This mainly to mimic the source file structure in the kernel
driver, and also gives a nice decrease in driver size.

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

show more ...


Revision tags: v23.03, v23.03-rc4, v23.03-rc3, v23.03-rc2, v23.03-rc1
# cbcbfd73 06-Feb-2023 James Hershaw <james.hershaw@corigine.com>

net/nfp: compare with explicit null and 0

Removal of the '!' character when comparing variables in favour of
explicitly comparing the variable to either 'NULL' or '0', in
compliance with the standar

net/nfp: compare with explicit null and 0

Removal of the '!' character when comparing variables in favour of
explicitly comparing the variable to either 'NULL' or '0', in
compliance with the standard.

Signed-off-by: James Hershaw <james.hershaw@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

show more ...


# 52d810dc 06-Feb-2023 James Hershaw <james.hershaw@corigine.com>

net/nfp: remove usage of print statements

Removal of the usage of printf() statements from the nfp PMD in favour
of appropriate RTE logging functions in compliance with the standard.

Debug messages

net/nfp: remove usage of print statements

Removal of the usage of printf() statements from the nfp PMD in favour
of appropriate RTE logging functions in compliance with the standard.

Debug messages are now logged using the appropriate RTE_LOG functions so
it is no longer necessary to print specific statements when compiled in
with the DEBUG tag, rather log these messages using the appropriate
functions regardless of whether the DEBUG tag is set or not.

Signed-off-by: James Hershaw <james.hershaw@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>

show more ...


Revision tags: v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2, v22.11-rc1, v22.07, v22.07-rc4, v22.07-rc3, v22.07-rc2, v22.07-rc1, v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1
# 7be78d02 29-Nov-2021 Josh Soref <jsoref@gmail.com>

fix spelling in comments and strings

The tool comes from https://github.com/jsoref

Signed-off-by: Josh Soref <jsoref@gmail.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>


Revision tags: v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1, v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1, v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2
# c0a8b024 25-Jan-2021 Heinrich Kuhn <heinrich.kuhn@netronome.com>

net/nfp: read chip model from PluDevice register

For newer smartNIC NVRAM versions the chip model should be read from the
PluDevice register as it provides the authoritative chip model/revision.
Thi

net/nfp: read chip model from PluDevice register

For newer smartNIC NVRAM versions the chip model should be read from the
PluDevice register as it provides the authoritative chip model/revision.
This method of reading the chip model is backwards compatible with
legacy NVRAM versions too.

Since the model number is purely used for reporting purposes, follow the
hardware team convention of subtracting 0x10 from the PluDevice register
to obtain the chip model/revision number.

Fixes: c7e9729da6b5 ("net/nfp: support CPP")
Cc: stable@dpdk.org

Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Louis Peens <louis.peens@netronome.com>

show more ...


12