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

Vxlan evpn p2mp changes for Layer2 functionality #2

Closed
wants to merge 29 commits into from

Commits on Jun 30, 2021

  1. Configuration menu
    Copy the full SHA
    d9e23ad View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2021

  1. [acl mirror action] Mirror session ref count fix at acl rule attachme…

    …nt (sonic-net#1761)
    
    * Fix mirror session ref count at acl rule attachement
    Signed-off-by: wenda.ni <wenda.ni@bytedance.com>
    wendani committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    d594c47 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2021

  1. Configuration menu
    Copy the full SHA
    5528ebf View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Revert recirc port change (sonic-net#1813)

    Recirc port support has been added to recent versions of DNX SAI.
    The earlier special handling for recirc port is not required anymore
    and thus reverted.
    ysmanman committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    7c7c451 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Add failure handling for SAI get operations (sonic-net#1768)

    What I did
    Add failure handling for SAI get operations. The function allows handling failures in SAI get operations according to the orch type, SAI type, SAI status.
    
    Why I did it
    Enable custom failure handling for SAI get operations.
    shi-su committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    5295f91 View commit details
    Browse the repository at this point in the history
  2. [orchagent] Put port configuration to APPL_DB according to autoneg mo…

    …de (sonic-net#1769)
    
    *Before puting port related configuration to APPL_DB, check autoneg mode first. If autoneg mode is enabled, "speed" and "interface_type" will not be put into APPL_DB; if autoneg mode is disabled, "adv_speeds" and "adv_interface_types" will not be put into APPL_DB; else all configuration will be put to APPL_DB for backward compatible.
    Junchao-Mellanox committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    ae44701 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. [portsorch] fix errors when moving port from one lag to another. (son…

    …ic-net#1797)
    
    In scenario that is executed in sonic-mgmt in test_po_update.py a portchannel member is deleted from one portchannel and added to another portchannel.
    It is possible that requests from teamsynd will arrive in different order
    This reordering happens because teamsyncd has single event handler/selectable TeamSync::TeamPortSync::onChange() per team device so when two of them are ready it is swss::Select implementation detail in which order they are going to be returned.
    This is a fundamental issue of Producer/ConsumerStateTable, thus orchagent must be aware of this and treat it as normal situation and figure out the right order and not crash or print an errors.
    
    - What I did
    Check if port is already a lag member beforehand.
    Added an UT to cover this scenario, this UT verifies that SAI API is not called in this case.
    Refactored portsorch_ut.cpp by moving out Orchs creation/deletion into SetUp()/TearDown()
    
    - Why I did it
    To fix errors in log.
    
    - How I verified it
    Ran test_po_update.py test.
    
    Signed-off-by: Stepan Blyschak stepanb@nvidia.com
    stepanblyschak committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    4f1d726 View commit details
    Browse the repository at this point in the history
  2. Ignore ALREADY_EXIST error in FDB creation (sonic-net#1815)

    What I did
    Ignore ALREADY_EXIST error in FDB creation.
    Fix: sonic-net/sonic-buildimage#7798
    
    Why I did it
    In FDB creation, there are scenarios where the hardware learns an FDB entry before orchagent. In such cases, the FDB SAI creation would report the status of SAI_STATUS_ITEM_ALREADY_EXISTS, and orchagent should ignore the error and treat it as entry was explicitly created.
    shi-su committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    64e33b3 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Fixing compilation

    dgsudharsan committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    3b6620b View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Update MACsec SA PN counter to support SAI API 1.8 (sonic-net#1818)

    What I did
    Rename XPN attributes from SAI_MACSEC_SA_ATTR_MINIMUM_XPN and SAI_MACSEC_SA_ATTR_XPN to SAI_MACSEC_SA_ATTR_CURRENT_XPN
    
    Why I did it
    Due to opencomputeproject/SAI#1169 that refactors the attributes about XPN, a new attributes SAI_MACSEC_SA_ATTR_CURRENT_XPN for both ingress and egress was introduced for reading the Packet number. So move the original attributes to the new one.
    
    Signed-off-by: Ze Gan <ganze718@gmail.com>
    Pterosaur committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    5d97b05 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2021

  1. [swss]: Allow portsyncd to run on system without ports (sonic-net#1808)

    Remove Portsyncd error exit if there are no ports in config DB.
    
    Signed-off-by: liora <liora@nvidia.com>
    liorghub committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    9f0bb8d View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. [debugcounterorch] check if counter type is supported before querying… (

    sonic-net#1789)
    
    * [debugcounterorch] check if counter type is supported before querying object availability count
    Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
    stepanblyschak committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    ed6786d View commit details
    Browse the repository at this point in the history
  2. [configure.ac] Add the option of passing libnl path to configure scri…

    …pt (sonic-net#1824)
    
    **What I did**
    Add the option of passing custmol built libnl path to configure script
    
    **Why I did it**
    MPLS feature in sonic-buildimage requires a libnl patch to be applied before building libnl. Since this build is not installed in usual locations (/usr/lib/..) LGTM analysis fails. This change gives the option of passing libnl library location to 'configure' script and generate libraries to be linked.
    
    In case the options are not passed, the configure script defaults to earlier behavior where it checks for LIBNL in usual locations
    smaheshm committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    c805021 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Added referencing logic

    dgsudharsan committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    979860f View commit details
    Browse the repository at this point in the history
  2. refactor(fdbsyncd): Convert files with dos2unix (sonic-net#1828)

    *dos2unix fdbsyncd/*
    Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
    haslersn committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    c81e319 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2021

  1. [VS] Fix for VS test failures (sonic-net#1836)

    * Purge swss-common before installing
    prsunny committed Jul 25, 2021
    Configuration menu
    Copy the full SHA
    0fe2dfe View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2021

  1. Td2: Reclaim buffer from unused ports (sonic-net#1830)

    Signed-off-by: Neetha John <nejo@microsoft.com>
    
    By default, lossless profiles are attached to PGs 3, 4 of all ports which results in a lot of buffer wastage when most of those ports are unused (not associated with a DEVICE_NEIGHBOR). In TD2, ingress pool size comprises of the reserved space as well. Hence making use of a special cable length of '0m' to identify unused ports and skip reserving space for those ports
    
    What I did
    * In buffermgr, if port with cable len '0m' is identified, return immediately without creating pg lossless profile or attaching profile to the lossless pgs of that port
    * Listen to 'admin_status' update as well from the PORT table and update port-speed mapping. This is to handle add-rack scenario where a port is added later
       - The port starts of with cable length 0m
       - Configlet to add a port is applied. The order of operations specifc to the PORT/CABLE_LENGTH table are - port is initially set to admin down, cable length is updated for that port, port table attributes are defined and port is set to admin up
       - speed update might not be seen when the port is set to admin up. Hence port-speed mapping will capture the speed update whenever its seen and once the cable length is updated while the port is brought back up, profiles can be attached to the lossless pgs of the port
    
    How I verified it
    - Manual tests done. Verified that no space is reserved for unused ports
    - Verified that when a port is added using 'add-rack' scenario, profile is attached to pgs of that port
    - New VS test added
    neethajohn committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    7f80f06 View commit details
    Browse the repository at this point in the history
  2. [gearbox] Set context for phys based on configs (sonic-net#1826)

    SAI_REDIS_SWITCH_ATTR_CONTEXT was set according to the phy_id
    in gearbox_config.json. This change will set it based on the
    context_id provided in that json file. The reason behind it is
    to support the case of multiple phys sharing the same context.
    byu343 committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    ec104c1 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. [Dynamic Buffer Calc] Bug fix: Don't create lossless buffer profile f…

    …or active ports without speed configured (sonic-net#1822)
    
    **What I did**
    Bugfix: Don't create lossless buffer profiles for active ports without speed configured
    
    Root cause:
    - In `handlePortTableUpdate`, `refreshPgsFromPort` is called if admin status is updated even if the speed is not configured.
      This is reasonable because the port can be configured as headroom override and the profile should be applied in that case.
    - However, as a side-effect, the port's state is set to `PORT_READY` in `refreshPgsForPort` regardless of whether the speed is configured, which is not correct.
      This should be avoided and `PORT_READY` should be set by the caller if necessary
    
    Fix:
    - Don't set the port's state to `PORT_READY` in `refreshPgsForPort` and check the port's state before calling it.
    - Explicitly set port's state to `PORT_READY` in `handlePortStateTable`. This has been done by all other callers.
    
    Note:
    - The change is covered by the existing vs tests.
    - The scenario where the bug was originally found can not be covered by vs test because:
      - The speed is always configured in vs image by default
      - Removing speed is not handled in buffer manager since it's not a valid flow.
    - A regression test will be opened to cover this case.
    stephenxs committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    237b89c View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. Bridge mac setting, fix statedb time format (sonic-net#1844)

    *Set bridge mac same as Vlan mac
    *Format state_db entries to have six digit precision for microseconds
    prsunny committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    e65aec9 View commit details
    Browse the repository at this point in the history
  2. [cfgmgr]: Introduce common libs. (sonic-net#1842)

    What I did
    
    Refactored cfgmgr Makefile
    Why I did it
    
    To avoid code duplication of common libs
    How I verified it
    
    Build swss
    
    Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
    nazariig committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    fe0dba0 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. [crm] Fix for Issue sonic-net/sonic-buildimage#8036 (sonic-net#1829)

    *Added more appropriate log message for CRM queries of MPLS_INSEG and MPLS_NEXTHOP resources when platform does not support these resource types.
    qbdwlr committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    72a72f8 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2021

  1. Mclag enhacements support code changes. (sonic-net#1331)

    * Mclag enhacements support code changes.
    * Adding change to allow MCLAG remote MAC move.
    * Added support for adding mclag remote mac to kernel, on top of PR-1276
    * Updating the change from PR1276 and PR885.
    * Adding new orchfiles to mock_tests
    * MCLAG Unique IP support changes.
    * Removed dependency with PR 885.
    * Adding observer support for mlagorch.
    * Fixed FDB notifiation issue
    * Fixing the test_mclag_fdb type attributes.
    * Remove as the change may not be supported on non-brcm for PortChannel settings.
    * Removing the isolation group handling from Mlagorch, Isolation group now will be added/updated only via mclagsyncd updates.
    * Added back the update function.
    
    Co-authored-by: Tapash Das <tapash.das@broadcom.com>
    Praveen-Brcm and tapashdas committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    7aca82d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c458dba View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2021

  1. Open record file in append mode (sonic-net#1845)

    *Open record file (swss.rec) in append mode. Similar to sairedis.rec
    prsunny committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    8674b3c View commit details
    Browse the repository at this point in the history
  2. Code changes to support IPv6 Link local enhancements (sonic-net#1463)

    * Code changes to support IPv6 Link local enchancements
    - Changes to handle the "ipv6_use_link_local_only" option on a interface which is added/deleted based on Global Config or Interface config.
    - Adds/Deletes the RIF for an interface in the absence of IPv6 global address on a interface based on "ipv6_use_link_local_only".
    - Allow the ipv6 link-local address as neighbors.
    - Allow adding the IPv6 routes with link-local nexthops.
    - Skip Ipv4LL neighbor add in Orchagent for RFC5549.
    
    Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
    AkhileshSamineni committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    8f7ea14 View commit details
    Browse the repository at this point in the history
  3. VOQ: Nexthop for remote VOQ LC should be created on inband OIF. (soni…

    …c-net#1823)
    
    VOQ nexthop for remote neighbors should be created on local inband port only for the kernel purpose. SAI should use actual RIF of the remote system port interface. sonic-net#1686 seems to be break this condition and this change address it.
    minionatwork committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    df96059 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2021

  1. Configuration menu
    Copy the full SHA
    67ca9cc View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2021

  1. Configuration menu
    Copy the full SHA
    6cc06ec View commit details
    Browse the repository at this point in the history