/linux-6.6.21/tools/testing/selftests/net/forwarding/ |
D | bridge_mdb.sh | 147 bridge mdb add dev br0 port br0 grp $grp $state vid 10 148 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null 151 bridge mdb replace dev br0 port br0 grp $grp $state vid 10 &> /dev/null 154 bridge mdb del dev br0 port br0 grp $grp $state vid 10 155 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null 159 bridge mdb add dev br0 port br0 grp $grp $invalid_state vid 10 \ 163 bridge mdb add dev br0 port br0 grp $grp src $src $state vid 10 \ 167 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \ 171 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \ 175 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \ [all …]
|
D | bridge_mld.sh | 150 bridge -j -d -s mdb show dev br0 \ 154 bridge -j -d -s mdb show dev br0 \ 175 bridge -j -d -s mdb show dev br0 \ 186 bridge -j -d -s mdb show dev br0 \ 198 bridge mdb del dev br0 port $port grp $TEST_GROUP 288 bridge -j -d -s mdb show dev br0 \ 299 bridge -j -d -s mdb show dev br0 \ 305 bridge -j -d -s mdb show dev br0 \ 433 bridge -j -d -s mdb show dev br0 \ 493 bridge -j -d -s mdb show dev br0 \ [all …]
|
D | bridge_igmp.sh | 112 bridge mdb show dev br0 | grep $TEST_GROUP 1>/dev/null 121 bridge mdb show dev br0 | grep $TEST_GROUP 1>/dev/null 128 bridge mdb show dev br0 | grep $TEST_GROUP 1>/dev/null 149 bridge -j -d -s mdb show dev br0 \ 153 bridge -j -d -s mdb show dev br0 \ 174 bridge -j -d -s mdb show dev br0 \ 185 bridge -j -d -s mdb show dev br0 \ 198 bridge mdb del dev br0 port $port grp $group 288 bridge -j -d -s mdb show dev br0 \ 299 bridge -j -d -s mdb show dev br0 \ [all …]
|
D | bridge_mdb_host.sh | 70 bridge mdb add dev br0 port br0 grp $group $flag 2>/dev/null 77 bridge mdb show dev br0 | grep $group | grep -q $flag 2>/dev/null 80 bridge mdb del dev br0 port br0 grp $group 2>/dev/null 83 bridge mdb show dev br0 | grep -q $group >/dev/null
|
D | bridge_mdb_port_down.sh | 20 bridge mdb add dev br0 port "$swp2" grp $TEST_GROUP permanent 2>/dev/null 29 bridge mdb show dev br0 | grep -q "$TEST_GROUP permanent" 2>/dev/null 32 bridge mdb del dev br0 port "$swp2" grp $TEST_GROUP 2>/dev/null
|
/linux-6.6.21/tools/testing/selftests/drivers/net/dsa/ |
D | bridge_mdb.sh | 147 bridge mdb add dev br0 port br0 grp $grp $state vid 10 148 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null 151 bridge mdb replace dev br0 port br0 grp $grp $state vid 10 &> /dev/null 154 bridge mdb del dev br0 port br0 grp $grp $state vid 10 155 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null 159 bridge mdb add dev br0 port br0 grp $grp $invalid_state vid 10 \ 163 bridge mdb add dev br0 port br0 grp $grp src $src $state vid 10 \ 167 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \ 171 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \ 175 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \ [all …]
|
D | bridge_mld.sh | 150 bridge -j -d -s mdb show dev br0 \ 154 bridge -j -d -s mdb show dev br0 \ 175 bridge -j -d -s mdb show dev br0 \ 186 bridge -j -d -s mdb show dev br0 \ 198 bridge mdb del dev br0 port $port grp $TEST_GROUP 288 bridge -j -d -s mdb show dev br0 \ 299 bridge -j -d -s mdb show dev br0 \ 305 bridge -j -d -s mdb show dev br0 \ 433 bridge -j -d -s mdb show dev br0 \ 493 bridge -j -d -s mdb show dev br0 \ [all …]
|
/linux-6.6.21/fs/hfs/ |
D | mdb.c | 76 struct hfs_mdb *mdb, *mdb2; in hfs_mdb_get() local 93 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get() 97 if (mdb->drSigWord == cpu_to_be16(HFS_SUPER_MAGIC)) in hfs_mdb_get() 108 HFS_SB(sb)->alloc_blksz = size = be32_to_cpu(mdb->drAlBlkSiz); in hfs_mdb_get() 118 sect = be16_to_cpu(mdb->drAlBlSt) + part_start; in hfs_mdb_get() 131 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get() 134 if (mdb->drSigWord != cpu_to_be16(HFS_SUPER_MAGIC)) in hfs_mdb_get() 138 HFS_SB(sb)->mdb = mdb; in hfs_mdb_get() 142 HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); in hfs_mdb_get() 144 HFS_SB(sb)->clumpablks = be32_to_cpu(mdb->drClpSiz) / in hfs_mdb_get() [all …]
|
D | btree.c | 43 struct hfs_mdb *mdb = HFS_SB(sb)->mdb; in hfs_btree_open() local 48 hfs_inode_read_fork(tree->inode, mdb->drXTExtRec, mdb->drXTFlSize, in hfs_btree_open() 49 mdb->drXTFlSize, be32_to_cpu(mdb->drXTClpSiz)); in hfs_btree_open() 60 hfs_inode_read_fork(tree->inode, mdb->drCTExtRec, mdb->drCTFlSize, in hfs_btree_open() 61 mdb->drCTFlSize, be32_to_cpu(mdb->drCTClpSiz)); in hfs_btree_open()
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_mdb.c | 73 const struct switchdev_obj_port_mdb *mdb) in lan966x_mdb_entry_add() argument 81 ether_addr_copy(mdb_entry->mac, mdb->addr); in lan966x_mdb_entry_add() 82 mdb_entry->vid = mdb->vid; in lan966x_mdb_entry_add() 106 const struct switchdev_obj_port_mdb *mdb, in lan966x_mdb_ip_add() argument 109 bool cpu_port = netif_is_bridge_master(mdb->obj.orig_dev); in lan966x_mdb_ip_add() 115 mdb_entry = lan966x_mdb_entry_get(lan966x, mdb->addr, mdb->vid); in lan966x_mdb_ip_add() 117 mdb_entry = lan966x_mdb_entry_add(lan966x, mdb); in lan966x_mdb_ip_add() 141 const struct switchdev_obj_port_mdb *mdb, in lan966x_mdb_ip_del() argument 144 bool cpu_port = netif_is_bridge_master(mdb->obj.orig_dev); in lan966x_mdb_ip_del() 150 mdb_entry = lan966x_mdb_entry_get(lan966x, mdb->addr, mdb->vid); in lan966x_mdb_ip_del() [all …]
|
/linux-6.6.21/drivers/s390/char/ |
D | sclp_rw.c | 87 struct mdb *mdb; in sclp_initialize_mto() local 105 mdb = &msg->mdb; in sclp_initialize_mto() 106 mdb->header.length = sizeof(struct mdb); in sclp_initialize_mto() 107 mdb->header.type = 1; in sclp_initialize_mto() 108 mdb->header.tag = 0xD4C4C240; /* ebcdic "MDB " */ in sclp_initialize_mto() 109 mdb->header.revision_code = 1; in sclp_initialize_mto() 111 go = &mdb->go; in sclp_initialize_mto() 115 mto = &mdb->mto; in sclp_initialize_mto() 145 msg->mdb.header.length += buffer->current_length; in sclp_finalize_mto() 146 msg->mdb.mto.length += buffer->current_length; in sclp_finalize_mto() [all …]
|
D | sclp_early_core.c | 91 struct mdb *mdb; in sclp_early_print_lm() local 98 ptr = (unsigned char *) &sccb->msg.mdb.mto; in sclp_early_print_lm() 119 mdb = &msg->mdb; in sclp_early_print_lm() 120 mdb->header.type = 1; in sclp_early_print_lm() 121 mdb->header.tag = 0xD4C4C240; in sclp_early_print_lm() 122 mdb->header.revision_code = 1; in sclp_early_print_lm() 123 mdb->header.length = len - offsetof(struct write_sccb, msg.mdb.header); in sclp_early_print_lm() 124 go = &mdb->go; in sclp_early_print_lm()
|
D | sclp_rw.h | 46 struct mdb { struct 54 struct mdb mdb; argument
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
D | bridge_tracepoint.h | 115 const struct mlx5_esw_bridge_mdb_entry *mdb), 116 TP_ARGS(dev, mdb), 125 memcpy(__entry->addr, mdb->key.addr, ETH_ALEN); 126 __entry->vid = mdb->key.vid; 127 __entry->num_ports = mdb->num_ports; 128 __entry->offloaded = mdb->egress_handle;), 139 const struct mlx5_esw_bridge_mdb_entry *mdb), 140 TP_ARGS(dev, mdb)); 145 const struct mlx5_esw_bridge_mdb_entry *mdb), 146 TP_ARGS(dev, mdb));
|
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
D | prestera_switchdev.c | 83 struct prestera_mdb_entry *mdb; member 324 prestera_mdb_port_del(struct prestera_mdb_entry *mdb, in prestera_mdb_port_del() argument 327 struct prestera_flood_domain *fl_domain = mdb->flood_domain; in prestera_mdb_port_del() 332 mdb->vid); in prestera_mdb_port_del() 344 prestera_mdb_port_del(br_mdb->mdb, br_port->dev); in prestera_br_mdb_entry_put() 346 prestera_mdb_entry_destroy(br_mdb->mdb); in prestera_br_mdb_entry_put() 379 prestera_mdb_port_del(br_mdb->mdb, in prestera_mdb_flush_bridge_port() 956 prestera_mdb_port_add(struct prestera_mdb_entry *mdb, in prestera_mdb_port_add() argument 960 struct prestera_flood_domain *flood_domain = mdb->flood_domain; in prestera_mdb_port_add() 980 struct prestera_mdb_entry *mdb; in prestera_br_mdb_sync() local [all …]
|
/linux-6.6.21/net/bridge/ |
D | br_switchdev.c | 527 static void br_switchdev_mdb_populate(struct switchdev_obj_port_mdb *mdb, in br_switchdev_mdb_populate() argument 531 ip_eth_mc_map(mp->addr.dst.ip4, mdb->addr); in br_switchdev_mdb_populate() 534 ipv6_eth_mc_map(&mp->addr.dst.ip6, mdb->addr); in br_switchdev_mdb_populate() 537 ether_addr_copy(mdb->addr, mp->addr.dst.mac_addr); in br_switchdev_mdb_populate() 539 mdb->vid = mp->addr.vid; in br_switchdev_mdb_populate() 547 struct switchdev_obj_port_mdb mdb = { in br_switchdev_host_mdb_one() local 555 br_switchdev_mdb_populate(&mdb, mp); in br_switchdev_host_mdb_one() 559 switchdev_port_obj_add(lower_dev, &mdb.obj, NULL); in br_switchdev_host_mdb_one() 562 switchdev_port_obj_del(lower_dev, &mdb.obj); in br_switchdev_host_mdb_one() 579 const struct switchdev_obj_port_mdb *mdb, in br_switchdev_mdb_replay_one() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/ti/ |
D | am65-cpsw-switchdev.c | 256 struct switchdev_obj_port_mdb *mdb) in am65_cpsw_port_mdb_add() argument 259 struct net_device *orig_dev = mdb->obj.orig_dev; in am65_cpsw_port_mdb_add() 270 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in am65_cpsw_port_mdb_add() 271 ALE_VLAN, mdb->vid, 0); in am65_cpsw_port_mdb_add() 273 port->ndev->name, mdb->vid, mdb->addr, port_mask); in am65_cpsw_port_mdb_add() 279 struct switchdev_obj_port_mdb *mdb) in am65_cpsw_port_mdb_del() argument 282 struct net_device *orig_dev = mdb->obj.orig_dev; in am65_cpsw_port_mdb_del() 293 cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in am65_cpsw_port_mdb_del() 294 ALE_VLAN, mdb->vid); in am65_cpsw_port_mdb_del() 296 port->ndev->name, mdb->vid, mdb->addr, del_mask); in am65_cpsw_port_mdb_del() [all …]
|
D | cpsw_switchdev.c | 264 struct switchdev_obj_port_mdb *mdb) in cpsw_port_mdb_add() argument 267 struct net_device *orig_dev = mdb->obj.orig_dev; in cpsw_port_mdb_add() 278 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in cpsw_port_mdb_add() 279 ALE_VLAN, mdb->vid, 0); in cpsw_port_mdb_add() 281 priv->ndev->name, mdb->vid, mdb->addr, port_mask); in cpsw_port_mdb_add() 287 struct switchdev_obj_port_mdb *mdb) in cpsw_port_mdb_del() argument 290 struct net_device *orig_dev = mdb->obj.orig_dev; in cpsw_port_mdb_del() 301 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del() 302 ALE_VLAN, mdb->vid); in cpsw_port_mdb_del() 304 priv->ndev->name, mdb->vid, mdb->addr, del_mask); in cpsw_port_mdb_del() [all …]
|
/linux-6.6.21/net/dsa/ |
D | switch.c | 159 const struct switchdev_obj_port_mdb *mdb, in dsa_port_do_mdb_add() argument 169 err = ds->ops->port_mdb_add(ds, port, mdb, db); in dsa_port_do_mdb_add() 170 trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_add() 177 a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid, db); in dsa_port_do_mdb_add() 180 trace_dsa_mdb_add_bump(dp, mdb->addr, mdb->vid, &db, in dsa_port_do_mdb_add() 191 err = ds->ops->port_mdb_add(ds, port, mdb, db); in dsa_port_do_mdb_add() 192 trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_add() 198 ether_addr_copy(a->addr, mdb->addr); in dsa_port_do_mdb_add() 199 a->vid = mdb->vid; in dsa_port_do_mdb_add() 211 const struct switchdev_obj_port_mdb *mdb, in dsa_port_do_mdb_del() argument [all …]
|
D | port.h | 67 const struct switchdev_obj_port_mdb *mdb); 69 const struct switchdev_obj_port_mdb *mdb); 71 const struct switchdev_obj_port_mdb *mdb); 73 const struct switchdev_obj_port_mdb *mdb); 75 const struct switchdev_obj_port_mdb *mdb); 77 const struct switchdev_obj_port_mdb *mdb);
|
D | port.c | 1170 const struct switchdev_obj_port_mdb *mdb) in dsa_port_mdb_add() argument 1174 .mdb = mdb, in dsa_port_mdb_add() 1188 const struct switchdev_obj_port_mdb *mdb) in dsa_port_mdb_del() argument 1192 .mdb = mdb, in dsa_port_mdb_del() 1206 const struct switchdev_obj_port_mdb *mdb, in dsa_port_host_mdb_add() argument 1211 .mdb = mdb, in dsa_port_host_mdb_add() 1219 const struct switchdev_obj_port_mdb *mdb) in dsa_port_standalone_host_mdb_add() argument 1226 return dsa_port_host_mdb_add(dp, mdb, db); in dsa_port_standalone_host_mdb_add() 1230 const struct switchdev_obj_port_mdb *mdb) in dsa_port_bridge_host_mdb_add() argument 1242 err = dev_mc_add(master, mdb->addr); in dsa_port_bridge_host_mdb_add() [all …]
|
/linux-6.6.21/drivers/net/dsa/microchip/ |
D | ksz9477.c | 668 const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) in ksz9477_mdb_add() argument 681 mac_hi = ((mdb->addr[0] << 8) | mdb->addr[1]); in ksz9477_mdb_add() 682 mac_lo = ((mdb->addr[2] << 24) | (mdb->addr[3] << 16)); in ksz9477_mdb_add() 683 mac_lo |= ((mdb->addr[4] << 8) | mdb->addr[5]); in ksz9477_mdb_add() 705 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && in ksz9477_mdb_add() 726 if (mdb->vid) in ksz9477_mdb_add() 728 static_table[2] = (mdb->vid << ALU_V_FID_S); in ksz9477_mdb_add() 747 const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) in ksz9477_mdb_del() argument 760 mac_hi = ((mdb->addr[0] << 8) | mdb->addr[1]); in ksz9477_mdb_del() 761 mac_lo = ((mdb->addr[2] << 24) | (mdb->addr[3] << 16)); in ksz9477_mdb_del() [all …]
|
D | ksz9477.h | 48 const struct switchdev_obj_port_mdb *mdb, struct dsa_db db); 50 const struct switchdev_obj_port_mdb *mdb, struct dsa_db db);
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
D | bridge.c | 226 const struct switchdev_obj_port_mdb *mdb; in mlx5_esw_bridge_port_obj_add() local 243 mdb = SWITCHDEV_OBJ_PORT_MDB(obj); in mlx5_esw_bridge_port_obj_add() 244 err = mlx5_esw_bridge_port_mdb_add(dev, vport_num, esw_owner_vhca_id, mdb->addr, in mlx5_esw_bridge_port_obj_add() 245 mdb->vid, br_offloads, extack); in mlx5_esw_bridge_port_obj_add() 260 const struct switchdev_obj_port_mdb *mdb; in mlx5_esw_bridge_port_obj_del() local 275 mdb = SWITCHDEV_OBJ_PORT_MDB(obj); in mlx5_esw_bridge_port_obj_del() 276 mlx5_esw_bridge_port_mdb_del(dev, vport_num, esw_owner_vhca_id, mdb->addr, mdb->vid, in mlx5_esw_bridge_port_obj_del()
|
/linux-6.6.21/drivers/net/dsa/ |
D | lan9303-core.c | 1223 const struct switchdev_obj_port_mdb *mdb) in lan9303_port_mdb_prepare() argument 1227 dev_dbg(chip->dev, "%s(%d, %pM, %d)\n", __func__, port, mdb->addr, in lan9303_port_mdb_prepare() 1228 mdb->vid); in lan9303_port_mdb_prepare() 1229 if (mdb->vid) in lan9303_port_mdb_prepare() 1231 if (lan9303_alr_cache_find_mac(chip, mdb->addr)) in lan9303_port_mdb_prepare() 1240 const struct switchdev_obj_port_mdb *mdb, in lan9303_port_mdb_add() argument 1246 err = lan9303_port_mdb_prepare(ds, port, mdb); in lan9303_port_mdb_add() 1250 dev_dbg(chip->dev, "%s(%d, %pM, %d)\n", __func__, port, mdb->addr, in lan9303_port_mdb_add() 1251 mdb->vid); in lan9303_port_mdb_add() 1252 return lan9303_alr_add_port(chip, mdb->addr, port, false); in lan9303_port_mdb_add() [all …]
|