Skip to content

Commit 52ba57c

Browse files
jpirkodavem330
authored andcommitted
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>
1 parent 8f24f30 commit 52ba57c

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/net/ethernet/rocker/rocker.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4425,7 +4425,7 @@ static int rocker_port_vlans_add(struct rocker_port *rocker_port,
44254425

44264426
static int rocker_port_fdb_add(struct rocker_port *rocker_port,
44274427
struct switchdev_trans *trans,
4428-
const struct switchdev_obj_fdb *fdb)
4428+
const struct switchdev_obj_port_fdb *fdb)
44294429
{
44304430
__be16 vlan_id = rocker_port_vid_to_vlan(rocker_port, fdb->vid, NULL);
44314431
int flags = 0;
@@ -4496,7 +4496,7 @@ static int rocker_port_vlans_del(struct rocker_port *rocker_port,
44964496

44974497
static int rocker_port_fdb_del(struct rocker_port *rocker_port,
44984498
struct switchdev_trans *trans,
4499-
const struct switchdev_obj_fdb *fdb)
4499+
const struct switchdev_obj_port_fdb *fdb)
45004500
{
45014501
__be16 vlan_id = rocker_port_vid_to_vlan(rocker_port, fdb->vid, NULL);
45024502
int flags = ROCKER_OP_FLAG_NOWAIT | ROCKER_OP_FLAG_REMOVE;
@@ -4537,7 +4537,7 @@ static int rocker_port_obj_del(struct net_device *dev,
45374537
}
45384538

45394539
static int rocker_port_fdb_dump(const struct rocker_port *rocker_port,
4540-
struct switchdev_obj_fdb *fdb,
4540+
struct switchdev_obj_port_fdb *fdb,
45414541
int (*cb)(void *obj))
45424542
{
45434543
struct rocker *rocker = rocker_port->rocker;

‎include/net/switchdev.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct switchdev_obj_ipv4_fib {
8383
};
8484

8585
/* SWITCHDEV_OBJ_ID_PORT_FDB */
86-
struct switchdev_obj_fdb {
86+
struct switchdev_obj_port_fdb {
8787
const unsigned char *addr;
8888
u16 vid;
8989
u16 ndm_state;

‎net/bridge/br_fdb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void fdb_del_hw_addr(struct net_bridge *br, const unsigned char *addr)
133133

134134
static void fdb_del_external_learn(struct net_bridge_fdb_entry *f)
135135
{
136-
struct switchdev_obj_fdb fdb = {
136+
struct switchdev_obj_port_fdb fdb = {
137137
.addr = f->addr.addr,
138138
.vid = f->vlan_id,
139139
};

‎net/dsa/slave.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static int dsa_slave_port_vlan_dump(struct net_device *dev,
341341
}
342342

343343
static int dsa_slave_port_fdb_add(struct net_device *dev,
344-
const struct switchdev_obj_fdb *fdb,
344+
const struct switchdev_obj_port_fdb *fdb,
345345
struct switchdev_trans *trans)
346346
{
347347
struct dsa_slave_priv *p = netdev_priv(dev);
@@ -357,7 +357,7 @@ static int dsa_slave_port_fdb_add(struct net_device *dev,
357357
}
358358

359359
static int dsa_slave_port_fdb_del(struct net_device *dev,
360-
const struct switchdev_obj_fdb *fdb)
360+
const struct switchdev_obj_port_fdb *fdb)
361361
{
362362
struct dsa_slave_priv *p = netdev_priv(dev);
363363
struct dsa_switch *ds = p->parent;
@@ -370,7 +370,7 @@ static int dsa_slave_port_fdb_del(struct net_device *dev,
370370
}
371371

372372
static int dsa_slave_port_fdb_dump(struct net_device *dev,
373-
struct switchdev_obj_fdb *fdb,
373+
struct switchdev_obj_port_fdb *fdb,
374374
int (*cb)(void *obj))
375375
{
376376
struct dsa_slave_priv *p = netdev_priv(dev);

‎net/switchdev/switchdev.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
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[],
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[],
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 {
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;

0 commit comments

Comments
 (0)