30d8d56a | 20-Feb-2024 |
Jiri Pirko <jiri@nvidia.com> |
devlink: fix port dump cmd type
[ Upstream commit 61c43780e9444123410cd48c2483e01d2b8f75e8 ]
Unlike other commands, due to a c&p error, port dump fills-up cmd with wrong value, different from port-
devlink: fix port dump cmd type
[ Upstream commit 61c43780e9444123410cd48c2483e01d2b8f75e8 ]
Unlike other commands, due to a c&p error, port dump fills-up cmd with wrong value, different from port-get request cmd, port-get doit reply and port notification.
Fix it by filling cmd with value DEVLINK_CMD_PORT_NEW.
Skimmed through devlink userspace implementations, none of them cares about this cmd value. Only ynl, for which, this is actually a fix, as it expects doit and dumpit ops rsp_value to be the same.
Omit the fixes tag, even thought this is fix, better to target this for next release.
Fixes: bfcd3a466172 ("Introduce devlink infrastructure") Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20240220075245.75416-1-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
show more ...
|
71179ac5 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: move devlink_notify_register/unregister() to dev.c
At last, move the last bits out of leftover.c, the devlink_notify_register/unregister() functions to dev.c
Signed-off-by: Jiri Pirko <jir
devlink: move devlink_notify_register/unregister() to dev.c
At last, move the last bits out of leftover.c, the devlink_notify_register/unregister() functions to dev.c
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-16-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
29a390d1 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: move small_ops definition into netlink.c
Move the generic netlink small_ops definition where they are consumed, into netlink.c
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lor
devlink: move small_ops definition into netlink.c
Move the generic netlink small_ops definition where they are consumed, into netlink.c
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-15-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
890c5566 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: move tracepoint definitions into core.c
Move remaining tracepoint definitions to most suitable file core.c.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/2023
devlink: move tracepoint definitions into core.c
Move remaining tracepoint definitions to most suitable file core.c.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-14-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
9edbe6f3 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push linecard related code into separate file
Cut out another chunk from leftover.c and put linecard related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: ht
devlink: push linecard related code into separate file
Cut out another chunk from leftover.c and put linecard related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-13-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
7cc7194e | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push rate related code into separate file
Cut out another chunk from leftover.c and put rate related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lo
devlink: push rate related code into separate file
Cut out another chunk from leftover.c and put rate related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-12-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
4bbdec80 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push trap related code into separate file
Cut out another chunk from leftover.c and put trap related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lo
devlink: push trap related code into separate file
Cut out another chunk from leftover.c and put trap related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-11-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
85facf94 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: use tracepoint_enabled() helper
In preparation for the trap code move, use tracepoint_enabled() helper instead of trace_devlink_trap_report_enabled() which would not be defined in that scop
devlink: use tracepoint_enabled() helper
In preparation for the trap code move, use tracepoint_enabled() helper instead of trace_devlink_trap_report_enabled() which would not be defined in that scope.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-10-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
1aa47ca1 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push region related code into separate file
Cut out another chunk from leftover.c and put region related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https:
devlink: push region related code into separate file
Cut out another chunk from leftover.c and put region related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-9-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
830c41e1 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push param related code into separate file
Cut out another chunk from leftover.c and put param related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://
devlink: push param related code into separate file
Cut out another chunk from leftover.c and put param related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-8-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
a9f96007 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push resource related code into separate file
Cut out another chunk from leftover.c and put resource related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: ht
devlink: push resource related code into separate file
Cut out another chunk from leftover.c and put resource related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-7-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
a9fd44b1 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push dpipe related code into separate file
Cut out another chunk from leftover.c and put dpipe related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://
devlink: push dpipe related code into separate file
Cut out another chunk from leftover.c and put dpipe related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-6-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
2475ed15 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: move and rename devlink_dpipe_send_and_alloc_skb() helper
Since both dpipe and resource code is using this helper, in preparation for code split to separate files, move devlink_dpipe_send_a
devlink: move and rename devlink_dpipe_send_and_alloc_skb() helper
Since both dpipe and resource code is using this helper, in preparation for code split to separate files, move devlink_dpipe_send_and_alloc_skb() helper into netlink.c. Rename it on the way.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-5-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
2b4d8bb0 | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push shared buffer related code into separate file
Cut out another chunk from leftover.c and put sb related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: htt
devlink: push shared buffer related code into separate file
Cut out another chunk from leftover.c and put sb related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-4-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
eec1e5ea | 28-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: push port related code into separate file
Cut out another chunk from leftover.c and put port related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lo
devlink: push port related code into separate file
Cut out another chunk from leftover.c and put port related code into a separate file.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-3-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
390a24cb | 25-Aug-2023 |
Dima Chumak <dchumak@nvidia.com> |
devlink: Expose port function commands to control IPsec packet offloads
Expose port function commands to enable / disable IPsec packet offloads, this is used to control the port IPsec capabilities.
devlink: Expose port function commands to control IPsec packet offloads
Expose port function commands to enable / disable IPsec packet offloads, this is used to control the port IPsec capabilities.
When IPsec packet is disabled for a function of the port (default), function cannot offload IPsec packet operations (encapsulation and XFRM policy offload). When enabled, IPsec packet operations can be offloaded by the function of the port, which includes crypto operation (Encrypt/Decrypt), IPsec encapsulation and XFRM state and policy offload.
Example of a PCI VF port which supports IPsec packet offloads:
$ devlink port show pci/0000:06:00.0/1 pci/0000:06:00.0/1: type eth netdev enp6s0pf0vf0 flavour pcivf pfnum 0 vfnum 0 function: hw_addr 00:00:00:00:00:00 roce enable ipsec_packet disable
$ devlink port function set pci/0000:06:00.0/1 ipsec_packet enable
$ devlink port show pci/0000:06:00.0/1 pci/0000:06:00.0/1: type eth netdev enp6s0pf0vf0 flavour pcivf pfnum 0 vfnum 0 function: hw_addr 00:00:00:00:00:00 roce enable ipsec_packet enable
Signed-off-by: Dima Chumak <dchumak@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230825062836.103744-3-saeed@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|