| 160f4044 | 21-Sep-2023 |
Chuck Lever <chuck.lever@oracle.com> |
handshake: Fix sign of key_serial_t fields
key_serial_t fields are signed integers. Use nla_get/put_s32 for those to avoid implicit signed conversion in the netlink protocol.
Signed-off-by: Chuck L
handshake: Fix sign of key_serial_t fields
key_serial_t fields are signed integers. Use nla_get/put_s32 for those to avoid implicit signed conversion in the netlink protocol.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/169530167716.8905.645746457741372879.stgit@oracle-102.nfsv4bat.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| 023289b4 | 25-Aug-2023 |
Donald Hunter <donald.hunter@gmail.com> |
doc/netlink: Add spec for rt route messages
Add schema for rt route with support for getroute, newroute and delroute.
Routes can be dumped with filter attributes like this:
./tools/net/ynl/cli.py
doc/netlink: Add spec for rt route messages
Add schema for rt route with support for getroute, newroute and delroute.
Routes can be dumped with filter attributes like this:
./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/rt_route.yaml \ --dump getroute --json '{"rtm-family": 2, "rtm-table": 254}'
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230825122756.7603-13-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| b2f63d90 | 25-Aug-2023 |
Donald Hunter <donald.hunter@gmail.com> |
doc/netlink: Add spec for rt link messages
Add schema for rt link with support for newlink, dellink, getlink, setlink and getstats.
A dummy link can be created like this:
sudo ./tools/net/ynl/cli.
doc/netlink: Add spec for rt link messages
Add schema for rt link with support for newlink, dellink, getlink, setlink and getstats.
A dummy link can be created like this:
sudo ./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/rt_link.yaml \ --do newlink --create \ --json '{"ifname": "dummy0", "linkinfo": {"kind": "dummy"}}'
For example, offload stats can be fetched like this:
./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/rt_link.yaml \ --dump getstats --json '{ "filter-mask": 8 }'
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230825122756.7603-12-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| 6b7c486c | 03-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
devlink: add split ops generated according to spec
Improve the existing devlink spec in order to serve as a source for generation of valid devlink split ops for the existing commands. Add the genera
devlink: add split ops generated according to spec
Improve the existing devlink spec in order to serve as a source for generation of valid devlink split ops for the existing commands. Add the generated sources.
Node that the policies are narrowed down only to the attributes that are actually parsed. The dont-validate-strict parsing policy makes sure that other possibly passed garbage attributes from userspace are ignored during validation.
Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20230803111340.1074067-11-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|