Skip to contentSkip to conversation

How about add rte flow get capablity APIs

dpdk-dev Fengchengwen 2 participants 3 messages Mar 23, 2021 – Mar 24, 2021

lore
Share & tools
lore
#0 lore raw

Hi, Ori and Ferruh
Currently, the rte flow APIs lack of get capability APIs, upper-application
could not get the device capability unless look doc or code or even test it.
Maybe it's a good idea to add the get capability like traffic manager
framework, what do you think?

Regards

#1 lore raw
Quoted 10 lines · Fengchengwen

Hi, Ori and Ferruh

  Currently, the rte flow APIs lack of get capability APIs, upper-application

could not get the device capability unless look doc or code or even test it.

  Maybe it's a good idea to add the get capability like traffic manager

framework, what do you think?

Not providing capability was a design decision, because it may not be possible to provide capability information correctly.

The preferred method is 'rte_flow_validate()'.
Application should call 'rte_flow_validate()' to decide if a rule can be created or not, and take an action accordingly.

#2 lore raw
Quoted 12 lines · Ferruh Yigit
Quoted 10 lines · Fengchengwen

Hi, Ori and Ferruh

   Currently, the rte flow APIs lack of get capability APIs, upper-application

could not get the device capability unless look doc or code or even test it.

   Maybe it's a good idea to add the get capability like traffic manager

framework, what do you think?

Quoted 6 lines

Not providing capability was a design decision, because it may not be possible to provide capability information correctly.

The preferred method is 'rte_flow_validate()'.
Application should call 'rte_flow_validate()' to decide if a rule can be created or not, and take an action accordingly.

.

Got it, Thank you, Ferruh