Lines Matching refs:sfd_pl
1310 char *sfd_pl; in mlxsw_sp_port_fdb_tun_uc_op4() local
1315 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_tun_uc_op4()
1316 if (!sfd_pl) in mlxsw_sp_port_fdb_tun_uc_op4()
1320 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_tun_uc_op4()
1321 mlxsw_reg_sfd_uc_tunnel_pack4(sfd_pl, 0, in mlxsw_sp_port_fdb_tun_uc_op4()
1324 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1325 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1329 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_tun_uc_op4()
1333 kfree(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1341 char *sfd_pl; in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() local
1345 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1346 if (!sfd_pl) in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1349 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1350 mlxsw_reg_sfd_uc_tunnel_pack6(sfd_pl, 0, mac, fid, in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1352 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1353 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1357 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1361 kfree(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1443 char *sfd_pl; in __mlxsw_sp_port_fdb_uc_op() local
1447 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in __mlxsw_sp_port_fdb_uc_op()
1448 if (!sfd_pl) in __mlxsw_sp_port_fdb_uc_op()
1451 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in __mlxsw_sp_port_fdb_uc_op()
1452 mlxsw_reg_sfd_uc_pack(sfd_pl, 0, policy, mac, fid, action, local_port); in __mlxsw_sp_port_fdb_uc_op()
1453 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1454 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1458 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in __mlxsw_sp_port_fdb_uc_op()
1462 kfree(sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1487 char *sfd_pl; in mlxsw_sp_port_fdb_uc_lag_op() local
1491 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_uc_lag_op()
1492 if (!sfd_pl) in mlxsw_sp_port_fdb_uc_lag_op()
1495 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_uc_lag_op()
1496 mlxsw_reg_sfd_uc_lag_pack(sfd_pl, 0, mlxsw_sp_sfd_rec_policy(dynamic), in mlxsw_sp_port_fdb_uc_lag_op()
1499 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1500 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1504 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_uc_lag_op()
1508 kfree(sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1552 char *sfd_pl; in mlxsw_sp_port_mdb_op() local
1556 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_mdb_op()
1557 if (!sfd_pl) in mlxsw_sp_port_mdb_op()
1560 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_mdb_op()
1561 mlxsw_reg_sfd_mc_pack(sfd_pl, 0, addr, fid, in mlxsw_sp_port_mdb_op()
1563 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_mdb_op()
1564 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_mdb_op()
1568 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_mdb_op()
1572 kfree(sfd_pl); in mlxsw_sp_port_mdb_op()