Optimized Forwarding Headers#2285
Conversation
| SAI_IN_DROP_REASON_LPM_MISS = 0x00000039, | ||
|
|
||
| /** OFH packet TTL expired */ | ||
| SAI_IN_DROP_REASON_OFH_TTL, |
There was a problem hiding this comment.
Keep it consistent with IP or not ?
There was a problem hiding this comment.
If we assume that the switch will only accept a single type of Header for now, I think we should use the original TTL reason for OFH TTL=0.
| SAI_SWITCH_ATTR_OFH, | ||
|
|
||
| /** | ||
| * @brief OFH header max size |
There was a problem hiding this comment.
Improve comments to explian the use of max size supported by HW.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@JaiOCP validator is not handling merges, you will need to rebase your change on master and force push |
|
Sounds Good. I will recreate the PR as well. Too many changes have gone in
mainline.
…On Thu, May 21, 2026 at 1:06 PM Kamil Cudnik ***@***.***> wrote:
*kcudnik* left a comment (opencomputeproject/SAI#2285)
<#2285 (comment)>
@JaiOCP <https://github.com/JaiOCP> validator is not handling merges, you
will need to rebase your change on master and force push
—
Reply to this email directly, view it on GitHub
<#2285 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCSHLLXBLZHRZQUZVKIL53435OTDAVCNFSM6AAAAACY6TZJW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKMJSGM2DAMZYGU>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
you dont need to recreate, you can jsut rebase and force push to your branch |
|
you need to squash and force push |
afce008 to
525dc60
Compare
author JaiOCP <jai.kumar@broadcom.com> 1778539406 -0700 committer JaiOCP <jai.kumar@broadcom.com> 1780349627 -0700 Optimized Forwarding Header Signed-off-by: JaiOCP <jai.kumar@broadcom.com> OFH Support Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Fix gensairpc.pl crash on Doxygen 1.9.8+ by reusing NeedsTwoPassProcessing (opencomputeproject#2282) Why: To fix below build error Uncaught exception from user code: at gensairpc.pl line 480. main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434 main::get_definitions() called at gensairpc.pl line 156 main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434 main::get_definitions() called at gensairpc.pl line 156 How: gensairpc.pl crashed during SAI thrift build with an uncaught exception at line 480 (assign_attr_types) because its inline Doxygen layout detection was too weak - it only checked sai_8h.xml for any enumvalue presence, missing cases where the new Doxygen 1.9.8+ XML structure requires group__*.xml files to be processed for complete definitions. This caused incomplete parsing, leading to missing types and a croak in assign_attr_types when sai_attribute_value_t could not be found. Changes: - xmlutils.pm: Add NeedsTwoPassProcessing and export it. - parse.pl: Remove local NeedsTwoPassProcessing; use imported version. - gensairpc.pl: Replace inline detection with NeedsTwoPassProcessing() call, fixing the build failure and eliminating code duplication. Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com> OFH Header Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Count BFD session state changes from UP to DOWN (opencomputeproject#2268) Signed-off-by: Chikkegowda Chikkaiah <cchikkai@cisco.com> HW FRR switchover notification support for protection groups (opencomputeproject#2269) Signed-off-by: Chikkegowda Chikkaiah <cchikkai@cisco.com> Port storm control enhancemnets (opencomputeproject#2258) (opencomputeproject#2258) Signed-off-by: rpmarvell <rperumal@marvell.com> Fix gensairpc.pl crash on Doxygen 1.9.8+ by reusing NeedsTwoPassProcessing (opencomputeproject#2282) Why: To fix below build error Uncaught exception from user code: at gensairpc.pl line 480. main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434 main::get_definitions() called at gensairpc.pl line 156 main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434 main::get_definitions() called at gensairpc.pl line 156 How: gensairpc.pl crashed during SAI thrift build with an uncaught exception at line 480 (assign_attr_types) because its inline Doxygen layout detection was too weak - it only checked sai_8h.xml for any enumvalue presence, missing cases where the new Doxygen 1.9.8+ XML structure requires group__*.xml files to be processed for complete definitions. This caused incomplete parsing, leading to missing types and a croak in assign_attr_types when sai_attribute_value_t could not be found. Changes: - xmlutils.pm: Add NeedsTwoPassProcessing and export it. - parse.pl: Remove local NeedsTwoPassProcessing; use imported version. - gensairpc.pl: Replace inline detection with NeedsTwoPassProcessing() call, fixing the build failure and eliminating code duplication. Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com> Count BFD session state changes from UP to DOWN (opencomputeproject#2268) Signed-off-by: Chikkegowda Chikkaiah <cchikkai@cisco.com> Merge Conflict Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Optimized Forwarding Header Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Optimized Forwarding Header Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
|
Hi @JaiOCP, I have a few questions regarding the abstract forwarding behavior of OFH below:
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| * @validonly SAI_OFH_ATTR_TYPE == SAI_OFH_TYPE_AFH or SAI_OFH_ATTR_TYPE == SAI_OFH_TYPE_ESUN | ||
| */ | ||
| SAI_OFH_ATTR_VER, | ||
|
|
There was a problem hiding this comment.
As discussed in the meeting, the version enum needs to be decoupled from the value in the version field. Version enum indicates to the SAI adapter which fields are present or absent for a given header version. The version number, however, represents the actual value stored in the header's version field for that enum.
Example: if specifying IP, IPv4 and IPv6 could use version enum values 0 and 1, respectively, while the corresponding values in the header’s version field would be 4 and 6..
| * The next hop id can be a generic next hop object, such as next hop, next | ||
| * hop group. Directly reachable routes are the IP subnets that are | ||
| * directly attached to the router. For such routes, fill the router | ||
| * interface id to which the subnet is attached. IP2ME route adds a local |
There was a problem hiding this comment.
We still want the OFH route to support IP2ME route semantics because we are thinking of running routing protocols such as BGP across the SUE switches. Without the support of IP2ME route, the switches can't exchange OFH packets carrying routing protocol payload unless there is another handy alternative.
author JaiOCP <jai.kumar@broadcom.com> 1780351110 -0700 committer JaiOCP <jai.kumar@broadcom.com> 1781547347 -0700 Optimized Forwarding Header Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Optimized Forwarding Header Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Fix gensairpc.pl crash on Doxygen 1.9.8+ by reusing NeedsTwoPassProcessing (opencomputeproject#2282) Why: To fix below build error Uncaught exception from user code: at gensairpc.pl line 480. main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434 main::get_definitions() called at gensairpc.pl line 156 main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434 main::get_definitions() called at gensairpc.pl line 156 How: gensairpc.pl crashed during SAI thrift build with an uncaught exception at line 480 (assign_attr_types) because its inline Doxygen layout detection was too weak - it only checked sai_8h.xml for any enumvalue presence, missing cases where the new Doxygen 1.9.8+ XML structure requires group__*.xml files to be processed for complete definitions. This caused incomplete parsing, leading to missing types and a croak in assign_attr_types when sai_attribute_value_t could not be found. Changes: - xmlutils.pm: Add NeedsTwoPassProcessing and export it. - parse.pl: Remove local NeedsTwoPassProcessing; use imported version. - gensairpc.pl: Replace inline detection with NeedsTwoPassProcessing() call, fixing the build failure and eliminating code duplication. Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com> Count BFD session state changes from UP to DOWN (opencomputeproject#2268) Signed-off-by: Chikkegowda Chikkaiah <cchikkai@cisco.com> SAI API Performance Monitoring (opencomputeproject#2287) Signed-off-by: JaiOCP <jai.kumar@broadcom.com> Support OTN attenuator and amplifier (opencomputeproject#2217) 1. Add a new precision attribute flag for optical analog values (e.g., gain, tilt, power), instead of using double/float point type which would introduce NaN issue. 2. Add support for optical attenuator in experimental extensions, derived from openconfig-optical-attenuator.yang. 3. Add support for optical amplifier in experimental extensions, derived from openconfig-optical-amplifier.yang. 4. Add SAI extension for OTN proposal document. Signed-off-by: Jimmy Jin <jjin62@yahoo.com> Co-authored-by: Lu.Mao <lu.mao@molex.com> OFH Admin State Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
|
Base branch has diverged too much with lot of baseline conflict resolution. |
This PR brings a generic framework to support multiple activities going on for defining the Optimized Forwarding Header like IEEE compressed Header, OCP ESUN Header, UEC Unified Forwarding Header and more.