Skip to content

Introduce Mellanox platform support for FBOSS agent and qsfp_service - #67

Closed
stepanblyschak wants to merge 7 commits into
meta:mainfrom
stepanblyschak:mlnx-dev
Closed

stepanblyschak wants to merge 7 commits into
meta:mainfrom
stepanblyschak:mlnx-dev

Conversation

@stepanblyschak

Copy link
Copy Markdown
  • Change in CMake build system to support multiple target platforms
  • Added MlnxSwitch and MlnxPlatform implementation into fboss/agent/hw/mlnx
  • Provided configuration files to run mlnx_agent under fboss/agent/platforms/mlnx/example_configs
    (One is XML with port mapping configuration, second one - FBOSS JSON configuration file)
  • Make qsfp_service generic to be able to support multiple Qsfp Managers
  • Added Mellanox support for qsfp_service under fboss/qsfp_service/platforms/mlnx

Stepan Blyschak added 7 commits May 7, 2018 15:52
…nent

For agent and qsfp_service split CMakeLists.txt per platform
to perpare FBOSS build system for adding Mellanox HW support.

Add BUILD_PLATFORM option to chose platform to build FBOSS for.

Signed-off-by: Stepan Blyschak <[email protected]>
… FBOSS agent

  1. Agent init/deinit using SDK-like XML for ports configuration
  2. Physical port configuration/state: admin/operative state and speed
  3. Port vlan membership configuration via JSON configuration file
  4. Basic L2 traffic (LLDP)

Signed-off-by: Stepan Blyschak <[email protected]>
In order to trigger L3 forwarding in HW the following method was used in FBOSS:
packet is sent with source MAC equals destination MAC equals platform MAC, so HW
is expected to lookup where to send packet based on IP header.

This approach doesn't work for Spectrum ASIC, instead the hardware drops
packets with source MAC equals destination MAC.

To sent L3 packet from Spectrum switch we use source MAC = 0
(don't care what is the source MAC, source MAC is replaced with
interface MAC), destination MAC = L3 interface MAC,
vlan = L3 interface vlan.

As a workaround for this issue - getEtherInfoForL3Packet() was added to SwSwitch,
untill better solution would be found that works on both platforms.

Depending on which platform we build FBOSS getEtherInfoForL3Packet
will use BCM or Spectrum approach.

Signed-off-by: Stepan Blyschak <[email protected]>
  1. Vlan L3 interface (add/edit/delete)
  2. IPv4/IPv6 Route table programming (add/edit/delete)
  3. Neighbor table programming (add/edit/delete)
  4. L3 traffic (ping, NDP, DHCP, etc.)
  5. Reactive ARP/ICMPv6 NDP neighbors resolution triggered by the HW

Signed-off-by: Stepan Blyschak <[email protected]>
Make qsfpMain() to be able to support differnt QSFP managers for different platforms

Using the same way as in FBOSS agent.
To add new platform:
  - Provide TransceiverImpl and TransceiverManager implementation under fboss/qsfp_service/platforms
  - Provide implementation for std::unique_ptr<TransceiverManager> createTransceiverManager()
  - Provide main.cpp under same directory which calls qsfpMain with createTransceiverManager function as parameter
  - Modify CMakeLists.txt to add rules to build qsfp_service for new platform

Signed-off-by: Stepan Blyschak <[email protected]>
…e in use

In wedge_agent there are 4 software port objects created for each physical port,
one per each lane. So the QsfpModule determines how many SW ports
are associated with current transceiver to get the number of lanes
and determine if customization is needed. Change it to count channels
that are used from SW ports.

Signed-off-by: Stepan Blyschak <[email protected]>
Add platform code to sync ports between fboss agent and qsfp_service

NOTE: current implementation requires mlnx_agent running before qsfp_service starts.
Also, to be able to gracefully release resources qsfp_service should be closed before mlnx_agent.

Signed-off-by: Stepan Blyschak <[email protected]>
facebook-github-bot pushed a commit that referenced this pull request Oct 16, 2020
…ps.py build (#67)

Summary:
Pull Request resolved: meta/sapling#67

With this change it will be possible to build dependencies of and run integration tests using getdeps.py.

This is the first goal of Q4 as per https://fb.quip.com/v8YzAYNSYgot: "Get Open Source version of integration tests running on Legocastle".

Before this diff:
The OSS integration tests run now on GitHub by:
- Building some test dependencies with getdeps.py
- Building some test dependencies with homebrew/apt-get
- Running tests via python script

The OSS integration tests were not running on Sandcastle.

After this diff:
The OSS integration tests run on Github by:
- Building and executing tests via getdeps.py (execution of tests happens by getdeps.py calling Make calling python script)

The OSS integration tests run on Sandcastle using the same getdeps.py setup as Github.

Reviewed By: krallin

Differential Revision: D24253268

fbshipit-source-id: cae249b72d076222673b8bbe4ec21866dcdbb253
facebook-github-bot pushed a commit that referenced this pull request Mar 3, 2022
Summary:
X-link: facebookincubator/hsthrift#67

Updating `googletest` from `1.8.0` to `1.10.0`

Reviewed By: mzlee, igorsugak, luciang, meyering, r-barnes

Differential Revision: D34351084

fbshipit-source-id: 939b3985ab63a06b6d511ec8711c2d5863bdfea8
arajeev-ARISTA pushed a commit to arajeev-ARISTA/fboss that referenced this pull request Sep 26, 2023
meru800bia udev rules: update SMB FPGA subsystem device ID to 0x3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants