bnxt.c (98a4322b70e817f0663adb61b8272f7b995ed41a) bnxt.c (85036aee1938d65da4be6ae1bc7e5e7e30b567b9)
1/* Broadcom NetXtreme-C/E network driver.
2 *
3 * Copyright (c) 2014-2016 Broadcom Corporation
4 * Copyright (c) 2016-2019 Broadcom Limited
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation.

--- 6971 unchanged lines hidden (view full) ---

6980#endif
6981 flags = le16_to_cpu(resp->flags);
6982 if (flags & (FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED |
6983 FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED)) {
6984 bp->fw_cap |= BNXT_FW_CAP_LLDP_AGENT;
6985 if (flags & FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED)
6986 bp->fw_cap |= BNXT_FW_CAP_DCBX_AGENT;
6987 }
1/* Broadcom NetXtreme-C/E network driver.
2 *
3 * Copyright (c) 2014-2016 Broadcom Corporation
4 * Copyright (c) 2016-2019 Broadcom Limited
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation.

--- 6971 unchanged lines hidden (view full) ---

6980#endif
6981 flags = le16_to_cpu(resp->flags);
6982 if (flags & (FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED |
6983 FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED)) {
6984 bp->fw_cap |= BNXT_FW_CAP_LLDP_AGENT;
6985 if (flags & FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED)
6986 bp->fw_cap |= BNXT_FW_CAP_DCBX_AGENT;
6987 }
6988 if (BNXT_PF(bp) && (flags & FUNC_QCFG_RESP_FLAGS_MULTI_HOST))
6988 if (BNXT_PF(bp) && (flags & FUNC_QCFG_RESP_FLAGS_MULTI_HOST)) {
6989 bp->flags |= BNXT_FLAG_MULTI_HOST;
6989 bp->flags |= BNXT_FLAG_MULTI_HOST;
6990 if (bp->fw_cap & BNXT_FW_CAP_PTP_RTC)
6991 bp->fw_cap &= ~BNXT_FW_CAP_PTP_RTC;
6992 }
6990 if (flags & FUNC_QCFG_RESP_FLAGS_RING_MONITOR_ENABLED)
6991 bp->fw_cap |= BNXT_FW_CAP_RING_MONITOR;
6992
6993 switch (resp->port_partition_type) {
6994 case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR1_0:
6995 case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR1_5:
6996 case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR2_0:
6997 bp->port_partition_type = resp->port_partition_type;

--- 7039 unchanged lines hidden ---
6993 if (flags & FUNC_QCFG_RESP_FLAGS_RING_MONITOR_ENABLED)
6994 bp->fw_cap |= BNXT_FW_CAP_RING_MONITOR;
6995
6996 switch (resp->port_partition_type) {
6997 case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR1_0:
6998 case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR1_5:
6999 case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR2_0:
7000 bp->port_partition_type = resp->port_partition_type;

--- 7039 unchanged lines hidden ---