Make the struct name in sync with object id name.
Showing the changes to net/switchdev/switchdev.c (1 of 5 files). Show all
Unified · Split
| @@ -819,7 +819,7 @@ int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], · 818 unmodified lines | |||
| 819 | struct net_device *dev, const unsigned char *addr, | 819 | struct net_device *dev, const unsigned char *addr, |
| 820 | u16 vid, u16 nlm_flags) | 820 | u16 vid, u16 nlm_flags) |
| 821 | { | 821 | { |
| 822 | struct switchdev_obj_fdb fdb = { | 822 | struct switchdev_obj_port_fdb fdb = { |
| 823 | .addr = addr, | 823 | .addr = addr, |
| 824 | .vid = vid, | 824 | .vid = vid, |
| 825 | }; | 825 | }; |
| @@ -843,7 +843,7 @@ int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], · 17 unmodified lines | |||
| 843 | struct net_device *dev, const unsigned char *addr, | 843 | struct net_device *dev, const unsigned char *addr, |
| 844 | u16 vid) | 844 | u16 vid) |
| 845 | { | 845 | { |
| 846 | struct switchdev_obj_fdb fdb = { | 846 | struct switchdev_obj_port_fdb fdb = { |
| 847 | .addr = addr, | 847 | .addr = addr, |
| 848 | .vid = vid, | 848 | .vid = vid, |
| 849 | }; | 849 | }; |
| @@ -853,7 +853,7 @@ int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], · 3 unmodified lines | |||
| 853 | EXPORT_SYMBOL_GPL(switchdev_port_fdb_del); | 853 | EXPORT_SYMBOL_GPL(switchdev_port_fdb_del); |
| 854 | 854 | ||
| 855 | struct switchdev_fdb_dump { | 855 | struct switchdev_fdb_dump { |
| 856 | struct switchdev_obj_fdb fdb; | 856 | struct switchdev_obj_port_fdb fdb; |
| 857 | struct net_device *dev; | 857 | struct net_device *dev; |
| 858 | struct sk_buff *skb; | 858 | struct sk_buff *skb; |
| 859 | struct netlink_callback *cb; | 859 | struct netlink_callback *cb; |
| @@ -862,7 +862,7 @@ struct switchdev_fdb_dump { · 2 unmodified lines | |||
| 862 | 862 | ||
| 863 | static int switchdev_port_fdb_dump_cb(void *obj) | 863 | static int switchdev_port_fdb_dump_cb(void *obj) |
| 864 | { | 864 | { |
| 865 | struct switchdev_obj_fdb *fdb = obj; | 865 | struct switchdev_obj_port_fdb *fdb = obj; |
| 866 | struct switchdev_fdb_dump *dump = | 866 | struct switchdev_fdb_dump *dump = |
| 867 | container_of(fdb, struct switchdev_fdb_dump, fdb); | 867 | container_of(fdb, struct switchdev_fdb_dump, fdb); |
| 868 | u32 portid = NETLINK_CB(dump->cb->skb).portid; | 868 | u32 portid = NETLINK_CB(dump->cb->skb).portid; |