Print this page
9724 qede needs updates for newer GCC

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
          +++ new/usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  
  27   27  * You may not use this file except in compliance with the License.
  28   28  
  29   29  * You can obtain a copy of the License at available 
  30   30  * at http://opensource.org/licenses/CDDL-1.0
  31   31  
  32   32  * See the License for the specific language governing permissions and 
  33   33  * limitations under the License.
  34   34  */
  35   35  
       36 +/*
       37 + * Copyright 2018 Joyent, Inc.
       38 + */
       39 +
  36   40  #include "bcm_osal.h"
  37   41  #include "ecore.h"
  38   42  #include "ecore_sp_commands.h"
  39   43  #include "ecore_dcbx.h"
  40   44  #include "ecore_cxt.h"
  41   45  #include "ecore_gtt_reg_addr.h"
  42   46  #include "ecore_iro.h"
  43   47  #ifdef CONFIG_ECORE_ROCE
  44   48  #include "ecore_roce.h"
  45   49  #endif
↓ open down ↓ 188 lines elided ↑ open up ↑
 234  238  
 235  239  /* Update app protocol data and hw_info fields with the TLV info */
 236  240  static void
 237  241  ecore_dcbx_update_app_info(struct ecore_dcbx_results *p_data,
 238  242                             struct ecore_hwfn *p_hwfn,
 239  243                             bool enable, u8 prio, u8 tc,
 240  244                             enum dcbx_protocol_type type)
 241  245  {
 242  246          enum ecore_pci_personality personality;
 243  247          enum dcbx_protocol_type id;
 244      -        char *name;
 245  248          int i;
 246  249  
 247  250          for (i = 0; i < OSAL_ARRAY_SIZE(ecore_dcbx_app_update); i++) {
 248  251                  id = ecore_dcbx_app_update[i].id;
 249  252  
 250  253                  if (type != id)
 251  254                          continue;
 252  255  
 253  256                  personality = ecore_dcbx_app_update[i].personality;
 254      -                name = ecore_dcbx_app_update[i].name;
 255  257  
 256  258                  ecore_dcbx_set_params(p_data, p_hwfn, enable,
 257  259                                        prio, tc, type, personality);
 258  260          }
 259  261  }
 260  262  
 261  263  static enum _ecore_status_t
 262  264  ecore_dcbx_get_app_priority(u8 pri_bitmap, u8 *priority)
 263  265  {
 264  266          u32 pri_mask, pri = ECORE_MAX_PFC_PRIORITIES;
↓ open down ↓ 727 lines elided ↑ open up ↑
 992  994          rc = ecore_dcbx_read_mib(p_hwfn, p_ptt, type);
 993  995          if (rc)
 994  996                  return rc;
 995  997  
 996  998          if (type == ECORE_DCBX_OPERATIONAL_MIB) {
 997  999                  ecore_dcbx_get_dscp_params(p_hwfn, p_ptt,
 998 1000                                             &p_hwfn->p_dcbx_info->get);
 999 1001  
1000 1002                  rc = ecore_dcbx_process_mib_info(p_hwfn);
1001 1003                  if (!rc) {
1002      -                        bool enabled;
     1004 +                        bool enabled __unused;
1003 1005  
1004 1006                          /* reconfigure tcs of QM queues according
1005 1007                           * to negotiation results
1006 1008                           */
1007 1009                          ecore_qm_reconf(p_hwfn, p_ptt);
1008 1010  
1009 1011                          /* update storm FW with negotiation results */
1010 1012                          ecore_sp_pf_update_dcbx(p_hwfn);
1011 1013  
1012 1014                          /* set eagle enigne 1 flow control workaround
↓ open down ↓ 474 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX