History

net: rtnetlink: add linkprop commands to add and delete alternative ifnames

Add two commands to add and delete list of link properties. Implement the first property type along - alternative ifnames. Each net device can have multiple alternative names.

Jiri Pirko committed 7 years ago

Commit 36fbf1e1 parent ff927417 files · +177 −2Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/netdevice.h+4−0
@@ -927,10 +927,14 @@ struct tlsdev_ops; · 926 unmodified lines
927 927
928struct netdev_name_node {928struct netdev_name_node {
929 struct hlist_node hlist;929 struct hlist_node hlist;
930 struct list_head list;
930 struct net_device *dev;931 struct net_device *dev;
931 const char *name;932 const char *name;
932};933};
933 934
935int netdev_name_node_alt_create(struct net_device *dev, const char *name);
936int netdev_name_node_alt_destroy(struct net_device *dev, const char *name);
937
934/*938/*
935 * This structure defines the management hooks for network devices.939 * This structure defines the management hooks for network devices.
936 * The following hooks can be defined; unless noted otherwise, they are940 * The following hooks can be defined; unless noted otherwise, they are

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