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.
Showing the changes to include/linux (1 of 7 files). Show all
Unified · Split
| @@ -927,10 +927,14 @@ struct tlsdev_ops; · 926 unmodified lines | ||
| 927 | 927 | |
| 928 | 928 | struct netdev_name_node { |
| 929 | 929 | struct hlist_node hlist; |
| 930 | + struct list_head list; | |
| 930 | 931 | struct net_device *dev; |
| 931 | 932 | const char *name; |
| 932 | 933 | }; |
| 933 | 934 | |
| 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 | + | |
| 934 | 938 | /* |
| 935 | 939 | * This structure defines the management hooks for network devices. |
| 936 | 940 | * The following hooks can be defined; unless noted otherwise, they are |