I have found some multicast APIs from USDPAA demo as follows:
int dpa_classif_mcast_group_create(struct dpa_cls_mcast_group_params
*mcast_group_params, int *grpd);
int dpa_classif_mcast_free_group(int grpd);
int dpa_classif_mcast_add_member(int grpd,
struct dpa_cls_tbl_enq_action_desc member_params, int *md);
int dpa_classif_mcast_remove_member(int grpd, int md);
but none of them have been called in USDPAA demo, I want to know how to use these APIs to implement multicast,can you provide me with some demos,and if i should modify the files as follows:
/usr/etc/classifier_demo_config-b4860.xml
/usr/etc/classifier_demo_policy.xml
/etc/fmc/config/hxs_pdl_v3.xml
The functions you asked about, are part of USDPAA classifier API. A detailed description of this API can be found here:
In brief, these functions can help, if you wish USDPAA to forward your ingress packets to multiple destinations (queues), possibly after some header manipulation.
There are no examples, sorry.
No changes to the files you mentioned are necessary to use the Multicast API.
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Platon:
Thanks for your reply,I have read the description of this API
To implement the simplest multicast, whether steps here are enough:
1.creat a DPA classifier table;
2.creat a multicast group;
3.insert the group to the table;
4.add several multicast members to the group.
Here i have some doubts:
How to assign multicast address to a mulicast group?
1.How to add several hosts to the same group.
2.Which input parameters of the APIs like "dpa_classif_mcast_group_create" and "dpa_classif_mcast_add_member" are mandatory
3.When i insert group to table,what is the parameter "key" of "dpa_classif_table_insert_entry"
4.Which type of interfaces support multicast? How about Shared MAC?
Thank you
Kesson