sonic-buildimage/device/mellanox/x86_64-mlnx_msn4700-r0
Vadym Hlushko 28ecd068d4
[202305][buffers] Add 'create_only_config_db_buffers.json' file for the Mellanox devices (not MSFT SKU) (#17006)
Why I did it
Add the create_only_config_db_buffers attribute to the DEVICE_METADATA|localhost. If the "create_only_config_db_buffers" exists and is equal to "true" - the buffers will be created according to the config_db configuration (for example BUFFER_QUEUE|* table), otherwise the maximum available buffers (which are read from SAI) will be created, regardless of the CONFIG_DB buffers configuration.

Work item tracking
Microsoft ADO (number only):
How I did it
Add the create_only_config_db_buffers.json files for Mellanox devices (not MSFT SKU's), and inject the content to the CONFIG_DB during the swss docker container start.

How to verify it
Manual verification:

Install the image with this PR included on the not MSFT SKU switch
Check the show queue counters output and verify that only configured in CONFIG_DB buffers are created
root@sonic:/home/admin# show queue counters
     Port    TxQ    Counter/pkts    Counter/bytes    Drop/pkts    Drop/bytes
---------  -----  --------------  ---------------  -----------  ------------
Ethernet0    UC0               0                0            0           N/A
Ethernet0    UC1               0                0            0           N/A
Ethernet0    UC2               0                0            0           N/A
Ethernet0    UC3               0                0            0           N/A
Ethernet0    UC4               0                0            0           N/A
Ethernet0    UC5               0                0            0           N/A
Ethernet0    UC6               0                0            0           N/A
Open the /usr/share/sonic/device/$DEVICE/$SKU/create_only_config_db_buffers.json and change it to:
"create_only_config_db_buffers": "false"
Do config reload
Check the show queue counters output and verify that all available buffers are created
root@sonic:/home/admin# show queue counters
     Port    TxQ    Counter/pkts    Counter/bytes    Drop/pkts    Drop/bytes
---------  -----  --------------  ---------------  -----------  ------------
Ethernet0    UC0               0                0            0           N/A
Ethernet0    UC1               0                0            0           N/A
Ethernet0    UC2               0                0            0           N/A
Ethernet0    UC3               0                0            0           N/A
Ethernet0    UC4               0                0            0           N/A
Ethernet0    UC5               0                0            0           N/A
Ethernet0    UC6               0                0            0           N/A
Ethernet0    UC7              60            15346            0           N/A
Ethernet0    MC8             N/A              N/A          N/A           N/A
Ethernet0    MC9             N/A              N/A          N/A           N/A
Ethernet0   MC10             N/A              N/A          N/A           N/A
Ethernet0   MC11             N/A              N/A          N/A           N/A
Ethernet0   MC12             N/A              N/A          N/A           N/A
Ethernet0   MC13             N/A              N/A          N/A           N/A
Ethernet0   MC14             N/A              N/A          N/A           N/A
Ethernet0   MC15             N/A              N/A          N/A           N/A
2023-11-03 14:27:17 +08:00
..
ACS-MSN4700 [202305][buffers] Add 'create_only_config_db_buffers.json' file for the Mellanox devices (not MSFT SKU) (#17006) 2023-11-03 14:27:17 +08:00
Mellanox-SN4700-A96C8V8 [ppi]: Enable global port late create for all Mellanox HWSKUs. (#16946) 2023-11-02 23:14:18 +08:00
Mellanox-SN4700-C128 [ppi]: Enable global port late create for all Mellanox HWSKUs. (#16946) 2023-11-02 23:14:18 +08:00
Mellanox-SN4700-O8C48 [ppi]: Enable global port late create for all Mellanox HWSKUs. (#16946) 2023-11-02 23:14:18 +08:00
Mellanox-SN4700-V48C32 [ppi]: Enable global port late create for all Mellanox HWSKUs. (#16946) 2023-11-02 23:14:18 +08:00
plugins [Mellanox] Add a new Mellanox platform x86_64-mlnx_msn4700 and new SKU ACS-MSN4700 (#3901) 2020-03-24 14:32:52 +02:00
default_sku [Mellanox] Add a new Mellanox platform x86_64-mlnx_msn4700 and new SKU ACS-MSN4700 (#3901) 2020-03-24 14:32:52 +02:00
get_sensors_conf_path [Mellanox] Support new sensor conf file for MSN4700 A1/A0 (#7535) 2021-05-06 10:13:26 -07:00
pcie.yaml add pcied config files for mellanox platform (#5669) 2020-11-02 19:45:36 -08:00
platform_asic Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
platform_components.json [Mellanox] Update platform components config files. (#5685) 2020-10-25 19:44:37 +02:00
platform_reboot [Mellanox] Add a new Mellanox platform x86_64-mlnx_msn4700 and new SKU ACS-MSN4700 (#3901) 2020-03-24 14:32:52 +02:00
platform_wait [Mellanox] Add a new Mellanox platform x86_64-mlnx_msn4700 and new SKU ACS-MSN4700 (#3901) 2020-03-24 14:32:52 +02:00
platform.json [Mellanox] [4700] Update platform capability file to support new breakout mode (#11614) 2022-08-24 11:55:33 +03:00
pmon_daemon_control.json [Mellanox] Add a new Mellanox platform x86_64-mlnx_msn4700 and new SKU ACS-MSN4700 (#3901) 2020-03-24 14:32:52 +02:00
sensors.conf Fix MSN4700 sensors labels (#5861) 2020-11-10 18:33:24 +02:00
sensors.conf.a1 [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
system_health_monitoring_config.json [Mellanox] update system_health_monitoring_config for MSN4410/MSN4600/MSN4700 (#9728) 2022-01-19 10:29:26 +02:00
thermal_policy.json [Mellanox] Enhancement for fan led management (#4437) 2020-05-13 10:01:32 -07:00