mlx5_main.c (359548) | mlx5_main.c (361413) |
---|---|
1/*- 2 * Copyright (c) 2013-2019, Mellanox Technologies, Ltd. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2013-2019, Mellanox Technologies, Ltd. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c 359548 2020-04-01 22:50:54Z kib $ | 25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c 361413 2020-05-23 11:59:36Z kib $ |
26 */ 27 28#include <linux/kmod.h> 29#include <linux/module.h> 30#include <linux/errno.h> 31#include <linux/pci.h> 32#include <linux/dma-mapping.h> 33#include <linux/slab.h> --- 1245 unchanged lines hidden (view full) --- 1279#define MLX5_PORT_MODULE_ERROR_STATS(m) \ 1280m(+1, u64, power_budget_exceeded, "power_budget", "Module Power Budget Exceeded") \ 1281m(+1, u64, long_range, "long_range", "Module Long Range for non MLNX cable/module") \ 1282m(+1, u64, bus_stuck, "bus_stuck", "Module Bus stuck(I2C or data shorted)") \ 1283m(+1, u64, no_eeprom, "no_eeprom", "No EEPROM/retry timeout") \ 1284m(+1, u64, enforce_part_number, "enforce_part_number", "Module Enforce part number list") \ 1285m(+1, u64, unknown_id, "unknown_id", "Module Unknown identifier") \ 1286m(+1, u64, high_temp, "high_temp", "Module High Temperature") \ | 26 */ 27 28#include <linux/kmod.h> 29#include <linux/module.h> 30#include <linux/errno.h> 31#include <linux/pci.h> 32#include <linux/dma-mapping.h> 33#include <linux/slab.h> --- 1245 unchanged lines hidden (view full) --- 1279#define MLX5_PORT_MODULE_ERROR_STATS(m) \ 1280m(+1, u64, power_budget_exceeded, "power_budget", "Module Power Budget Exceeded") \ 1281m(+1, u64, long_range, "long_range", "Module Long Range for non MLNX cable/module") \ 1282m(+1, u64, bus_stuck, "bus_stuck", "Module Bus stuck(I2C or data shorted)") \ 1283m(+1, u64, no_eeprom, "no_eeprom", "No EEPROM/retry timeout") \ 1284m(+1, u64, enforce_part_number, "enforce_part_number", "Module Enforce part number list") \ 1285m(+1, u64, unknown_id, "unknown_id", "Module Unknown identifier") \ 1286m(+1, u64, high_temp, "high_temp", "Module High Temperature") \ |
1287m(+1, u64, cable_shorted, "cable_shorted", "Module Cable is shorted") | 1287m(+1, u64, cable_shorted, "cable_shorted", "Module Cable is shorted") \ 1288m(+1, u64, pmd_type_not_enabled, "pmd_type_not_enabled", "PMD type is not enabled") |
1288 1289static const char *mlx5_pme_err_desc[] = { 1290 MLX5_PORT_MODULE_ERROR_STATS(MLX5_STATS_DESC) 1291}; 1292 1293static int init_one(struct pci_dev *pdev, 1294 const struct pci_device_id *id) 1295{ --- 709 unchanged lines hidden --- | 1289 1290static const char *mlx5_pme_err_desc[] = { 1291 MLX5_PORT_MODULE_ERROR_STATS(MLX5_STATS_DESC) 1292}; 1293 1294static int init_one(struct pci_dev *pdev, 1295 const struct pci_device_id *id) 1296{ --- 709 unchanged lines hidden --- |