Hi Experts,

I have the following doubts. Could someone clarify me?

1) we know that OF-DPA have multiple flow tables. I see, there is an API
for adding a flow entry into the table. But, I dont see any API for
initializing flow table. All the flow tables would be initialized as part
of OF-DPA initialization ?

2) Can someone clarify me what happens during the OF-DPA initialization as
well? I dont see, any API for initializing OF-DPA?

3) * 
https://github.com/Broadcom-Switch/of-dpa/blob/master/src/example/client_vlan.c
<https://github.com/Broadcom-Switch/of-dpa/blob/master/src/example/client_vlan.c>*

 In the above link, i see, flow table is initialized as shown below. If add
multiple entries to the same flow table, should I call the below API. I am
doubting and confused as well..

rc = *ofdpaFlowEntryInit*(OFDPA_FLOW_TABLE_ID_VLAN, &flow);
  if (rc != OFDPA_E_NONE)
  {
    printf("\r\nFailed to initialize Vlan Flow Table.(rc = %d)\n", rc);
    return rc;
  }

in the same page, i see,

 for (i = 0; i < arguments.count; i++)
    {
      rc = ofdpaFlowAdd(&flow);

      if (rc != 0)
      {
        printf("\r\nFailed to add VLAN flow entry. rc = %d.\r\n", rc);
        displayVlan(&flow);
        break;
      }
      flow.flowData.vlanFlowEntry.match_criteria.vlanId++;
    }


*ofdpaFlowAdd *is used to add a flow entry in the flow table. I can assume
that the entry would be added in the current flow table. But, how we can
add the same flow entry in the remaining flow tables ?

4) As we all know that OF-DPA supports multiple flow tables. If a flow
entry is added in the first flow table then will it be added in the
remaining flow tables also? will this be taken care by OF-DPA ? Can someone
clarify me.


Thanks,
Kals.
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to