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

Merge remote-tracking branch 'upstream/master' into dash #2663

Merged
merged 29 commits into from
Feb 16, 2023

Commits on Jan 1, 2023

  1. Modify coppmgr mergeConfig to support preserving copp tables through …

    …reboot. (sonic-net#2548)
    
    This PR should be merged together with sonic-net/sonic-utilities#2524 and is required to 202205 and 202211.
    This PR implements [fastboot] Preserve CoPP table HLD to improve fastboot flow (sonic-net/SONiC#1107).
    
    - What I did
    Modified coppmgr mergeConfig logic to support preserving copp tables contents through reboot. Handle duplicates, overwrites, unsupported keys preserved and new keys. According to sonic-net/SONiC#1107
    
    - Why I did it
    To shorten dataplane downtime on fast-reboot.
    
    - How I verified it
    Manual tests (community fast-reboot test)
    arfeigin authored Jan 1, 2023
    Configuration menu
    Copy the full SHA
    bdedf69 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2023

  1. Fix neighbor doesn't update all attribute (sonic-net#2577)

    * Fix neighbor doesn't update all attribute
    iris00522 authored Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4395cea View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Avoid aborting orchagent when setting TUNNEL attributes (sonic-net#2591)

    - What I did
    Avoid aborting orchagent when setting TUNNEL attributes
    
    - Why I did it
    Do not abort orchagent if vendor SAI returns SAI_STATUS_ATTR_NOT_SUPPORTED_0
    Currently, the logic is hit while setting TUNNEL|MuxTunnel0 table for DSCP remapping.
    For some vendors SAI returns “SAI_STATUS_ATTR_NOT_SUPPORTED_0” in such case.
    The fix is to avoid aborting orchagent if vendor SAI returns that return value and just to log error message.
    
    Skip setting create-only attributes, including “ecn_mode” and “encap_ecn_mode”
    This is because both SAI attributes are “create-only” according to the community SAI header definition, which means setting on either attribute is illegal.
    It’s a common limitation for all vendors.
    The fix is to skip such attributes when they are updated. Also, the logic in setTunnelAttribute to handle both attributes is removed since it’s dead code.
    
    - How I verified it
    Added new unit test to cover the new errors returned and avoiding the abort flow
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored Jan 4, 2023
    Configuration menu
    Copy the full SHA
    1dab495 View commit details
    Browse the repository at this point in the history
  2. [vstest] Only collect stdout of orchagent_restart_check in vstest (so…

    …nic-net#2597)
    
    * Only collect stdout of orchagent_restart_check in vstest
    bingwang-ms authored Jan 4, 2023
    Configuration menu
    Copy the full SHA
    f496ab3 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Handle Mac address 'none' (sonic-net#2593)

    In some rare cases, kernel neighbor add notifications are received with Mac string as 'none'. Fixing this to prevent crash.
    prsunny authored Jan 5, 2023
    Configuration menu
    Copy the full SHA
    8a0bb36 View commit details
    Browse the repository at this point in the history
  2. Increase diff coverage to 80% (sonic-net#2599)

    *Increase diff cov from 50 to 80%
    prsunny authored Jan 5, 2023
    Configuration menu
    Copy the full SHA
    4ac9ad9 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. Add missing parameter to on_switch_shutdown_request method. (sonic-ne…

    …t#2567)
    
    #### Why I did it
    The switch_id parameter missing in on_switch_shutdown_request() method.
    
    #### How I did it
    Add missing parameter to on_switch_shutdown_request method.
    
    #### How to verify it
    Pass all UT and E2E test cases.
    
    #### Which release branch to backport (provide reason below if selected)
    
    <!--
    - Note we only backport fixes to a release branch, *not* features!
    - Please also provide a reason for the backporting below.
    - e.g.
    - [x] 202006
    -->
    
    - [ ] 201811
    - [ ] 201911
    - [ ] 202006
    - [ ] 202012
    - [ ] 202106
    - [ ] 202111
    
    #### Description for the changelog
    Add ZMQ based ProducerStateTable and CustomerStateTable.
    
    #### Link to config_db schema for YANG module changes
    <!--
    Provide a link to config_db schema for the table for which YANG model
    is defined
    Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration.
    -->
    
    #### A picture of a cute animal (not mandatory but encouraged)
    liuh-80 authored Jan 11, 2023
    Configuration menu
    Copy the full SHA
    52406e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6bbc3e View commit details
    Browse the repository at this point in the history
  3. Added new attributes for Vnet and Vxlan ecmp configurations. (sonic-n…

    …et#2584)
    
    * added support for monitoring, primary and adv_prefix and overlay_dmac.
    
    Signed-off-by: siqbal1486 <shahzad.iqbal@microsoft.com>
    
    Signed-off-by: siqbal1486 <shahzad.iqbal@microsoft.com>
    siqbal1986 authored Jan 11, 2023
    Configuration menu
    Copy the full SHA
    8857f92 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. [routesync] Fix for stale dynamic neighbor (sonic-net#2553)

    * [routesync] Fix for stale dynamic neighbor
    
    The changes are for fixing stale neighbor in the ASIC_DB and data path
    when eBGP neighbors are shutdown and neighbors are flushed. The problem
    is described in issue: sonic-net/sonic-buildimage#12442
    The root cause of this issue is due to not deleing the route from the
    ASIC_DB when the route's next hop is on eth0 or docker0 interface. The solution is
    to delete the route entry from ASIC_DB instead of just returning when the route's
    next hop is on the interface eth0 or docker0
    
    
    This commit fixes the warm restart unit test failure. When the route with
    only nh on eth0 or docker0 is removed and if the route is the default
    route, orchagent sends "add" black hole route to the syncd. So the ASIC
    DB gets n hset message. When this happens during warm restart, the unit
    test identifies this as unwanted setting and the unit test fails. To fix
    this issues, the route delete is sent only if the warm restart is not in
    progress. This is done following the same warm restart handling approach
    used for route delete in other palces.
    
    Signed-off-by: vedganes <veda.ganesan@nokia.com>
    vganesan-nokia authored Jan 12, 2023
    Configuration menu
    Copy the full SHA
    4ebdad1 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. [MuxOrch] Enabling neighbor when adding in active state (sonic-net#2601)

    * [MuxOrch] Enabling neighbor when adding in active state
    
    What I did: called enable when adding a neighbor in active state
    
    Why I did it: NH routes weren't being updated if they existed in standby
    state before neighbor is added
    Ndancejic authored Jan 13, 2023
    Configuration menu
    Copy the full SHA
    d78b528 View commit details
    Browse the repository at this point in the history
  2. Changed the BFD default detect multiplier to 10x (sonic-net#2614)

    * Changed hte BFD default detect multiplier to 10x
    siqbal1986 authored Jan 13, 2023
    Configuration menu
    Copy the full SHA
    d058390 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2023

  1. Remove TODO comments that are no longer relevant (sonic-net#2622)

    I removed TODO comments that are no longer relevant. To clean source code, non relevant comments should be cleared from source.
    liorghub authored Jan 18, 2023
    Configuration menu
    Copy the full SHA
    a01470f View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Fix issue #13341 ARP entry can be out of sync between kernel and APPL…

    …_DB if multiple updates are received from RTNL (sonic-net#2619)
    
    - What I did
    Fix issue sonic-net/sonic-buildimage#13341 the issue that ARP entry is out of sync between kernel and APPL_DB
    In AppRestartAssist::insertToMap, in case an entry has been updated more than once with the same value but different from the stored one, keep the state as NEW.
    
    Eg.
    Assume the entry's value that is restored from the warm reboot is V0, the following events received.
    
    The first update with value V1 is received and handled by the if (found != appTableCacheMap[tableName].end()) branch,
    * the state is set to NEW
    * value is updated to V1
    The second update with the same value V1 is received and handled by this branch
    Originally, the state was set to SAME, which is wrong because V1 is different from the stored value V0
    The correct logic should be: set the state to SAME only if the state is not NEW
    This is a very rare case because most of times, the entry won't be updated multiple times
    
    - Why I did it
    To fix the issue.
    
    - How I verified it
    Mock test is added to cover the case.
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored Jan 19, 2023
    Configuration menu
    Copy the full SHA
    cd95972 View commit details
    Browse the repository at this point in the history
  2. [refactor]Refactoring sai handle status (sonic-net#2621)

    * [refactor]Refactoring sai handle status
    dgsudharsan authored Jan 19, 2023
    Configuration menu
    Copy the full SHA
    383ee68 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2023

  1. Fix potential risks (sonic-net#2516)

    - What I did
    Fix the following potential risks:
    
    Uncaught exceptions in /src/nvos-swss/orchagent/main.cpp and /src/nvos-swss/portsyncd/portsyncd.cpp
    Uninitialized scalar fields in /src/nvos-swss/orchagent/port.h
    Unchecked return value in /src/nvos-swss/orchagent/portsorch.cpp
    Pointer to local outside scope in /src/nvos-swss/orchagent/portsorch.cpp
    
    - How I did it
    Add "catch" to the uncaught exceptions
    Add initialization value to the uninitialized fields
    Add a check to the unchecked return value
    Delete an unnecessary comma
    
    - How I verified it
    Inspection and sanity tests
    Signed-off-by: Liran Artzi <lartzi@nvidia.com>
    Liran-Ar authored Jan 23, 2023
    Configuration menu
    Copy the full SHA
    7f03db2 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2023

  1. Vxlan tunnel endpoint custom monitoring APPL DB table. (sonic-net#2589)

    * added support for monitoring, primary and adv_prefix. changed filter_mac to overlay_dmac
    * Data Structures and code to write APP_DB VNET_MONITOR table entries for custom monitoring of Vxlan tunnel endpoints.
    siqbal1986 authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    c54b3d1 View commit details
    Browse the repository at this point in the history
  2. [bfdorch] add local discriminator to state DB (sonic-net#2629)

    add local discriminator to state DB for "show bfd summary/peer" to show it.
    baorliu authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    9d1f66b View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2023

  1. [acl] Add new ACL key BTH_OPCODE and AETH_SYNDROME (sonic-net#2617)

    - What I did
    Add new ACL key BTH_OPCODE and AETH_SYNDROME
    
    - Why I did it
    Add new ACL key BTH_OPCODE and AETH_SYNDROME
    
    - How I verified it
    Manual test
    Junchao-Mellanox authored Jan 29, 2023
    Configuration menu
    Copy the full SHA
    a2a483d View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. [voq][chassis] Remove created ports from the default vlan. (sonic-net…

    …#2607)
    
    Signed-off-by: Nathan Wolfe nwolfe@arista.com
    
    What I did
    -Remove newly created ports from the default vlan on VOQ systems.
    -Add a test to confirm we're executing removeDefaultVlanMembers when a new port is added on a VOQ system.
    
    Why I did it
    -When a port is created via create_port SAI call the port may be added to the default vlan, this is undesired.
    
    How I verified it
    -On a 7800R3AK-36DM2 linecard with multiple 400G ports I verified that the TX_TAG_ENABLE field in ETPPC_EDITING_PER_PORT_TABLE was not set for and ports. This confirms that no port is a member of any vlan
    arista-nwolfe authored Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e99e2e4 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. [EVPN]Handling race condition when remote VNI arrives before tunnel m…

    …ap entry (sonic-net#2642)
    
    *Added check in remote VNI add to ensure vxlan tunnel map is created before adding the remote end point.
    dgsudharsan authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    8de52bf View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. [test_mux] add sleep in test_NH (sonic-net#2648)

    * [test_mux] add sleep in test_NH
    
    What I did: added sleep after adding/removing neighbors in test_NH
    
    Why I did it: resolve PR failures due to timing issues between
    adding/deleting neighbors and them being present in the asic_db
    
    Signed-off-by: Nikola Dancejic <ndancejic@microsoft.com>
    Ndancejic authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    02c2267 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Remove "TODO" comment which is no longer relevant (sonic-net#2645)

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    7d223d3 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Configuration menu
    Copy the full SHA
    9597eb7 View commit details
    Browse the repository at this point in the history
  2. [hash]: Add UT infra. (sonic-net#2660)

    *Added UT infra for Generic Hash feature
    *Aligned PBH tests with Generic Hash UT infra
    nazariig authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    065a471 View commit details
    Browse the repository at this point in the history
  3. [sai_failure_dump]Invoking dump during SAI failure (sonic-net#2644)

    * [sai_failure_dump]Invoking dump during SAI failure
    dgsudharsan authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    44ea6a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. [ResponsePublisher] add pipeline support (sonic-net#2511)

    * [ResponsePublisher] add pipeline support
    
    Why I did it
    
    I did it to improve performance when sending many responses. Responses are buffered in redis client before beeing sent out to redis server, while orchagent has no more pending tasks to do, responses are flushed to redis.
    stepanblyschak authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    4df5cab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    486deb5 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. [dash] Fix compilation issue caused by missing include.

    After the merge from the master branch dashorch compilation started to fail
    with "handleSaiRemoveStatus was not declared in this scope". The error is
    caused by the missing include of "saihelper.h" header file.
    oleksandrivantsiv committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    baaea92 View commit details
    Browse the repository at this point in the history