Hi,
In the following code, It is not clear how to flush all the FDB entries on a
switch (flush all). It appears Option 1 is for flushing both static and dynamic
and not for flushing all the entries of the switch. Could the comments be made
better explanatory. I think if both SAI_FDB_FLUSH_ATTR_VLAN_ID and
SAI_FDB_FLUSH_ATTR_VLAN_ID are not set then it is flush all.
Regards,
Atit
/*
* Attribute for FDB delete. These can be used in the following combinations
* in the flush API
* 1) Flush all entries in fdb table - Set SAI_FDB_FLUSH_ATTR_ENTRY_TYPE with
* value of SAI_FDB_FLUSH_ENTRY_ALL
* 2) Flush all entries by port - SAI_FDB_FLUSH_ATTR_PORT_ID
* 3) Flush all entries by VLAN - SAI_FDB_FLUSH_ATTR_VLAN_ID
* 4) Flush all entries by port VLAN - SAI_FDB_FLUSH_ATTR_PORT_ID,
* SAI_FDB_FLUSH_ATTR_VLAN_ID
* Additionally the type of entry needs to be flushed can be specified
* using SAI_FDB_FLUSH_ATTR_ENTRY_TYPE which can be static or dynamic or all
*/
typedef enum _sai_fdb_flush_attr {
/*Flush based on port [sai_object_id_t]*/
SAI_FDB_FLUSH_ATTR_PORT_ID,
/*Flush based on VLAN [sai_vlan_id_t]*/
SAI_FDB_FLUSH_ATTR_VLAN_ID,
/*Flush based on entry type [sai_fdb_flush_entry_type_t]*/
SAI_FDB_FLUSH_ATTR_ENTRY_TYPE,
}sai_fdb_flush_attr;
_______________________________________________
opencompute-networking mailing list
Unsubscribe: http://lists.opencompute.org/mailman/options/opencompute-networking
[email protected]
http://lists.opencompute.org/mailman/listinfo/opencompute-networking