Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error codes for Rule insertions #282

Closed

Conversation

AravindPrasadDell
Copy link
Contributor

@AravindPrasadDell AravindPrasadDell commented Apr 23, 2019

Description

Currently, rule_insert() API does not have return value. There are some possible scenarios where rule insertions can fail at run-time even though the static checks during rule_construct() had passed
previously.

Some possible scenarios for failure of rule insertions:

**) Rule insertions can fail dynamically in Hybrid mode (both Openflow and Normal switch functioning coexist) where the CAM space could get suddenly filled up by Normal switch functioning and Openflow gets devoid of available space.
**) Some deployments could have separate independent layers for HW rule insertions and application layer to interact with OVS. HW layer could face any dynamic issue during rule handling which
application could not have predicted/captured in rule-construction phase.

Rule-insert errors for bundles are handled too in this pull-request.

Testing:

Tested failures of rule insertions and also with bundles.

Signed-off-by: Aravind Prasad S <aravind.sridharan at dell.com>


ofproto/ofproto-dpif.c | 4 +-
ofproto/ofproto-provider.h | 6 +--
ofproto/ofproto.c | 109 +++++++++++++++++++++++++++++++++------------
3 files changed, 86 insertions(+), 33 deletions(-)

@AravindPrasadDell AravindPrasadDell changed the title Return error codes for Rule insertions [WIP] Return error codes for Rule insertions Apr 23, 2019
@AravindPrasadDell AravindPrasadDell changed the title [WIP] Return error codes for Rule insertions Return error codes for Rule insertions Apr 23, 2019
@blp
Copy link
Contributor

blp commented Apr 24, 2019

Applied to master, thanks!

@blp blp closed this Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants