net: dev: add netdev_upper_dev_rename()
Subsystems (2)
PATCH 1/2 net: dev: add netdev_upper_dev_rename()
The function will deal with the links for dev and upper_dev when the dev's name changed.
Signed-off-by Ding Tianhong <[email protected]>
--- include/linux/netdevice.h | 3 +++ net/core/dev.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+)
include/linux/netdevice.h +3 -0
@@ -2896,6 +2896,9 @@ void *netdev_lower_dev_get_private_rcu(struct net_device *dev, struct net_device *lower_dev);void *netdev_lower_dev_get_private (struct net_device *dev,struct net_device *lower_dev); +int netdev_upper_dev_rename (struct net_device *dev, +struct net_device *upper_dev, +const char *old_name,const char *new_name);int skb_checksum_help (struct sk_buff *skb);struct sk_buff *__skb_gso_segment (struct sk_buff *skb,netdev_features_t features,bool tx_path);
net/core/dev.c +57 -0
63 lines not on this page · raw message
Signature · 1 line
1.8.0