History

psp: base PSP device support

Add a netlink family for PSP and allow drivers to register support. The "PSP device" is its own object. This allows us to perform more flexible reference counting / lifetime control than if PSP information was part of net_device. In the future we should also be able to "delegate" PSP access to software devices, such as *vlan, veth or netkit more easily.

Jakub Kicinski committed 1 year ago

Commit 00c94ca1 parent a92662716 files · +777 −0Browse files

Showing the changes to include/uapi (1 of 16 files). Show all

Unified · Split

include/uapi/linux/psp.h+42−0
@@ -0,0 +1,42 @@
1/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2/* Do not edit directly, auto-generated from: */
3/* Documentation/netlink/specs/psp.yaml */
4/* YNL-GEN uapi header */
5
6#ifndef _UAPI_LINUX_PSP_H
7#define _UAPI_LINUX_PSP_H
8
9#define PSP_FAMILY_NAME "psp"
10#define PSP_FAMILY_VERSION 1
11
12enum psp_version {
13 PSP_VERSION_HDR0_AES_GCM_128,
14 PSP_VERSION_HDR0_AES_GCM_256,
15 PSP_VERSION_HDR0_AES_GMAC_128,
16 PSP_VERSION_HDR0_AES_GMAC_256,
17};
18
19enum {
20 PSP_A_DEV_ID = 1,
21 PSP_A_DEV_IFINDEX,
22 PSP_A_DEV_PSP_VERSIONS_CAP,
23 PSP_A_DEV_PSP_VERSIONS_ENA,
24
25 __PSP_A_DEV_MAX,
26 PSP_A_DEV_MAX = (__PSP_A_DEV_MAX - 1)
27};
28
29enum {
30 PSP_CMD_DEV_GET = 1,
31 PSP_CMD_DEV_ADD_NTF,
32 PSP_CMD_DEV_DEL_NTF,
33 PSP_CMD_DEV_SET,
34 PSP_CMD_DEV_CHANGE_NTF,
35
36 __PSP_CMD_MAX,
37 PSP_CMD_MAX = (__PSP_CMD_MAX - 1)
38};
39
40#define PSP_MCGRP_MGMT "mgmt"
41
42#endif /* _UAPI_LINUX_PSP_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t