History

switchdev: rename switchdev_obj_fdb to switchdev_obj_port_fdb

Make the struct name in sync with object id name.

Jiri Pirko committed 11 years ago

Commit 52ba57c1 parent 8f24f305 files · +12 −12Browse files

Showing the changes to net/switchdev/switchdev.c (1 of 5 files). Show all

Unified · Split

net/switchdev/switchdev.c+4−4
@@ -819,7 +819,7 @@ int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], · 818 unmodified lines
819819 struct net_device *dev, const unsigned char *addr,
820820 u16 vid, u16 nlm_flags)
821821 {
822− struct switchdev_obj_fdb fdb = {
822+ struct switchdev_obj_port_fdb fdb = {
823823 .addr = addr,
824824 .vid = vid,
825825 };
@@ -843,7 +843,7 @@ int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], · 17 unmodified lines
843843 struct net_device *dev, const unsigned char *addr,
844844 u16 vid)
845845 {
846− struct switchdev_obj_fdb fdb = {
846+ struct switchdev_obj_port_fdb fdb = {
847847 .addr = addr,
848848 .vid = vid,
849849 };
@@ -853,7 +853,7 @@ int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], · 3 unmodified lines
853853 EXPORT_SYMBOL_GPL(switchdev_port_fdb_del);
854854
855855 struct switchdev_fdb_dump {
856− struct switchdev_obj_fdb fdb;
856+ struct switchdev_obj_port_fdb fdb;
857857 struct net_device *dev;
858858 struct sk_buff *skb;
859859 struct netlink_callback *cb;
@@ -862,7 +862,7 @@ struct switchdev_fdb_dump { · 2 unmodified lines
862862
863863 static int switchdev_port_fdb_dump_cb(void *obj)
864864 {
865− struct switchdev_obj_fdb *fdb = obj;
865+ struct switchdev_obj_port_fdb *fdb = obj;
866866 struct switchdev_fdb_dump *dump =
867867 container_of(fdb, struct switchdev_fdb_dump, fdb);
868868 u32 portid = NETLINK_CB(dump->cb->skb).portid;