diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-10-01 05:03:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-03 07:49:39 -0400 |
commit | 52ba57cfdc4c90da3bf996dfbe0c5feb731eb477 (patch) | |
tree | 3985043321a0a03302bc2fee5d393ca0c54626df /net/switchdev | |
parent | 8f24f3095dcedaa4eb4719eee2bed738fe2ce4a0 (diff) |
switchdev: rename switchdev_obj_fdb to switchdev_obj_port_fdb
Make the struct name in sync with object id name.
Suggested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev')
-rw-r--r-- | net/switchdev/switchdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 02ee926ebde6..250d013d64c6 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -819,7 +819,7 @@ int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], | |||
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[], | |||
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[], | |||
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 { | |||
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; |