History

ila: Add generic ILA translation facility

This patch implements an ILA tanslation table. This table can be configured with identifier to locator mappings, and can be be queried to resolve a mapping. Queries can be parameterized based on interface, direction (incoming or outoing), and matching locator. The table is implemented using rhashtable and is configured via netlink (through "ip ila .." in iproute). The table may be used as alternative means to do do ILA tanslations other than the lw tunnels

Tom Herbert committed 10 years ago

Commit 7f00fea1 parent fc9e50f6 files · +731 −1Browse files

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

Unified · Split

include/uapi/linux/ila.h+22−0
@@ -3,13 +3,35 @@ · 2 unmodified lines
33 #ifndef _UAPI_LINUX_ILA_H
44 #define _UAPI_LINUX_ILA_H
55
6+/* NETLINK_GENERIC related info */
7+#define ILA_GENL_NAME "ila"
8+#define ILA_GENL_VERSION 0x1
9+
610 enum {
711 ILA_ATTR_UNSPEC,
812 ILA_ATTR_LOCATOR, /* u64 */
13+ ILA_ATTR_IDENTIFIER, /* u64 */
14+ ILA_ATTR_LOCATOR_MATCH, /* u64 */
15+ ILA_ATTR_IFINDEX, /* s32 */
16+ ILA_ATTR_DIR, /* u32 */
917
1018 __ILA_ATTR_MAX,
1119 };
1220
1321 #define ILA_ATTR_MAX (__ILA_ATTR_MAX - 1)
1422
23+enum {
24+ ILA_CMD_UNSPEC,
25+ ILA_CMD_ADD,
26+ ILA_CMD_DEL,
27+ ILA_CMD_GET,
28+
29+ __ILA_CMD_MAX,
30+};
31+
32+#define ILA_CMD_MAX (__ILA_CMD_MAX - 1)
33+
34+#define ILA_DIR_IN (1 << 0)
35+#define ILA_DIR_OUT (1 << 1)
36+
1537 #endif /* _UAPI_LINUX_ILA_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