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
927927
928928 struct netdev_name_node {
929929 struct hlist_node hlist;
930+ struct list_head list;
930931 struct net_device *dev;
931932 const char *name;
932933 };
933934
935+int netdev_name_node_alt_create(struct net_device *dev, const char *name);
936+int netdev_name_node_alt_destroy(struct net_device *dev, const char *name);
937+
934938 /*
935939 * This structure defines the management hooks for network devices.
936940 * 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