Giter Site home page Giter Site logo

sai's People

Contributors

brcm-devops avatar dpbouchard avatar simonknee avatar tushar-ty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sai's Issues

/usr/bin/ld: cannot find -lopennsl

Hey :)
Im trying to build this Broadcom SAI implementation on switch on top of Open Network Linux right now, and build fails on point where it tries to find opennsl library
Since in readme info its mentioned that in order to build that stuff i will need OpenNSL, i downloaded it as well, found prebuilt version suitable for me, which contains couple kernel module files and one .so file, which is name libopennsl.so. Is it the one needed to build SAI or not? Cause I dont see any others
I tried to do it hard way, just renaming libopennsl into opennsl but still got same build failure
So which library do i actually need and where do i get it?

Thx in advance

Broadcom Tomahawk2 chip support sai deb package

Hello,

I am Balaselvi, working for Inventec.
Can you please let us know when can we get the sai deb package that supports Tomahawk2 board for SONiC?
If it is not official release to SONiC even an intermediate package is good.
Thank you.

Thanks and regards,
Bala

Supported protocol list

HI,

Can anyone kindly tell me , which protocols are supported by Broadcom SAI enables switches?
Also, is it possible to define new protocol header field(like P4) through this?

Port breakout with BCM56960 Tomahawk

I consulted SONiC if Tomahawk supports 2x50G or 4x25G breakout, and their answer is no as BRCM SAI does not support it. See here.

When will that feature be supported?

Building the kernel drivers for SAI

Hi,

I want to use a more modern kernel than the bundled 3.16 kernel. In OpenNSL I can simply build the .ko files for the kernel I want - does the same apply for SAI?

The release notes for the latest SAI release says it is using OpenNSL 3.4.1.11 but only v3.4.1.6 was released publicly as far as I can tell. Will the same kernel drivers work?

Any roadmap to support Dune line of Chips?

We see over past release, support for XGS line of Chips getting added. Would you folks plan to add support for Dune line of Chips as well in this process. Anytime timeline related details would be helpful.

ARM32 or ARM64 for Broadcom BCM56864 Trident II+?

I'm new to SONiC and in the middle of going through the image build. I'm up to the part where I can select ARM32 or ARM64. I'm trying to find documentation on Broadcom's site as well. Does anyone if this truly matters in term of whether or not it will work properly?

Total number of logical ports allowed in libsai is 120?

Hello,
I am Balaselvi.
I using broadcom libsai version 0.9.4 and we are configuring SONiC for our board.
If I configure logical ports lesser than 120, things work perfectly fine, I can test traffic.
If I use logical ports more than 120, I face a crash in the libsai during switch initialization.
Logs below:
Apr 27 16:40:34 sonic NOTICE syncd: :- handleCmdLine: profile map file: /usr/share/sonic/hwsku/sai.profile
Apr 27 16:40:34 sonic NOTICE syncd: :- isVeryFirstRun: First Run: True
Apr 27 16:40:34 sonic NOTICE syncd: :- main: starting initializing ASIC
Apr 27 16:40:34 sonic NOTICE syncd: :- loadRedisScript: lua script loaded, sha: e70c5f65367f8b9fed2deb3daa5ee4ba40f90c58
Apr 27 16:40:34 sonic NOTICE fpmsyncd: :- loadRedisScript: lua script loaded, sha: e70c5f65367f8b9fed2deb3daa5ee4ba40f90c58
Apr 27 16:40:35 sonic INFO rsyslogd: [orsegfault at 91 ip 00007f1de327492f sp 00007ffc9ad14e50 error 6 in libsai.so.1.0[7f1de3218000+94000]
Apr 27 16:40:43 sonic NOTICE dsserve: child exited status: 139

Can you guide me whether the maximum logical port setting is an issue, or I can change it with any configuration?
I checked the Opennsl "Customizing OpenNSL Platform" but i can't resolve this issue with any settings.

I feel this is a issue with libsai or libopennsl.
Any pointers or suggestion will really help me.

Thank you.

Thanks and regards,
Bala

Build Error with no package.cfg file

Hi,

I am trying to build SAI with OpenNSL SDK for Dell switch, but there is no package.cfg file for build. Error message is as follow:
Makefile:19: package.cfg: No such file or directory

How can I solve this problem?

Thanks~

TH/TH2/TD/TD2 port led issue

Hi

For TH/TH2/TD/TD2 port led, the port status register has 2 bit for port speed:
[4:3] Speed 00=10 Mbps, 01=100 Mbps, 10=1000 Mbps

But for 10G/25G/40G/50G/100G port, different port led need be lighted for different port speed. Then the register bits aren't enough.

I have two proposals for this issue.

  1. The SAI provides a new API, the API will encapsulate soc_pci_wirte/read function, then the port speed information can be sent to the RAM field of port led. When the port led is lighted, it can get the port speed information.

  2. Apply a patch in SDK process, SDK will send the port speed information to RAM of port led, Then the port can distinguish the different port speed in port led light. the patch as the attachment.

Can you help to check which is better? then integrate the related change to SAI or SDK.

Thanks,
Bo
led_patch.zip

What I found with SONiC SAI

Hi,

I am working on SONiC for a couple of months and encountered a few issues.

With SAI v1.0, there is error with function brcm_sai_create_switch() as below:

Sep 19 13:54:00.229279 sonic INFO supervisord: syncd Common SDK init completed#015#015
Sep 19 13:54:00.241195 sonic CRIT syncd: brcm_sai_create_switch:335 set dscp ecn mode failed with error -1.
Sep 19 13:54:00.241195 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_INIT_SWITCH: true
Sep 19 13:54:00.241195 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_FDB_EVENT_NOTIFY: 0x418270
Sep 19 13:54:00.241195 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_PORT_STATE_CHANGE_NOTIFY: 0x418400
Sep 19 13:54:00.241220 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_SHUTDOWN_REQUEST_NOTIFY: 0x418580
Sep 19 13:54:00.241220 sonic ERR syncd: :- processEvent: attr: SAI_SWITCH_ATTR_SRC_MAC_ADDRESS: 00:8C:FA:C7:AC:F8
Sep 19 13:54:00.241235 sonic ERR syncd: :- processEvent: failed to execute api: create, key: SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000, status: SAI_STATUS_FAILURE
Sep 19 13:54:00.241308 sonic ERR syncd: :- main: Runtime error: :- processEvent: failed to execute api: create, key: SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000, status: SAI_STATUS_FAILURE

With SAI v0.94, there are 2 errors as below:

  1. Error from function translate_rid_to_vid() -
    Sep 13 17:43:02.0 sonic NOTICE syncd: :- main: before onSyncdStart
    Sep 13 17:43:02.0 sonic NOTICE syncd: :- cli_thread_function: accepting connections for cli
    Sep 13 17:43:02.0 sonic INFO supervisord: syncd Hit enter to get drivshell prompt..#15
    Sep 13 17:43:03.0 sonic ERR syncd: :- translate_rid_to_vid: sai_object_type_query returned NULL type for RID 0xffffffffbbbbbbbb
    Sep 13 17:43:03.0 sonic NOTICE syncd: :- exit_and_notify: sending switch_shutdown_request notification to OA

  2. Error from API opennsl_cosq_gport_attach() with 4-lane 40G port -
    Oct 20 10:43:32.0 sonic ERR syncd: _brcm_sai_switch_port_lls_init:1469 opennsl_cosq_gport_attach returned error: -4#015
    Oct 20 10:43:32.0 sonic ERR syncd: _brcm_sai_mmu_gport_init:1746 ERROR(-4) while configuring port 49
    Oct 20 10:43:32.0 sonic CRIT syncd: brcm_sai_initialize_switch:264 initializing lls gport tree failed with error Invalid parameter (0xfffffffc).
    Oct 20 10:43:32.0 sonic NOTICE syncd: :- main: finished initializing ASIC
    Oct 20 10:43:32.0 sonic ERR syncd: :- main: fail to sai_initialize_switch: -5
    There is no issue with 40G port fan-out to be 4 10G ports.

I am not sure if these are SAI lib issues or it's due to the platform BCM56854_A2 I have is not supported. For any info related will be helpful. Thanks!

Thanks and Regards,
Alan Fan

Will SAI ever be native?

Will Broadcom SAI implementation ever be built with native SDK API? or it is forever tied with OpenNSL?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.