1. 05 8月, 2018 1 次提交
  2. 04 8月, 2018 9 次提交
  3. 03 8月, 2018 3 次提交
  4. 02 8月, 2018 11 次提交
    • G
      cxgb4: fix endian to test F_FW_PORT_CMD_DCBXDIS32 · 90d4c5bb
      Ganesh Goudar 提交于
      For FW_PORT_ACTION_GET_PORT_INFO32 messages, the
      u.info32.lstatus32_to_cbllen32 is 32-bit Big Endian.
      We need to translate that to CPU Endian in order to
      test F_FW_PORT_CMD_DCBXDIS32.
      Signed-off-by: NCasey Leedom <leedom@chelsio.com>
      Signed-off-by: NGanesh Goudar <ganeshgr@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90d4c5bb
    • H
      net: hns3: fix return value error while hclge_cmd_csq_clean failed · 4a62e252
      Huazhong Tan 提交于
      While cleaning the command queue, the value of the HEAD register is not
      in the range of next_to_clean and next_to_use, meaning that this value
      is invalid. This also means that there is a hardware error and the
      hardware will trigger a reset soon. At this time we should return an
      error code instead of 0, and HCLGE_STATE_CMD_DISABLE needs to be set to
      prevent sending command again.
      
      Fixes: 3ff50490 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean")
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4a62e252
    • P
      mlxsw: spectrum_router: Handle sysctl_ip_fwd_update_priority · 64953423
      Petr Machata 提交于
      This sysctl setting controls whether packet priority should be updated
      after forwarding. Configure RGCR.usp accordingly so that the device is
      in sync with the kernel handling.
      
      Note that RGCR doesn't allow changing arbitrary parameters
      mid-operation, however "usp" is exempt and can be reconfigured.
      
      Also react to NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE notifications
      that signify change in this configuration.
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      64953423
    • P
      mlxsw: spectrum: Extract work-scheduling into a new function · 1f65a33f
      Petr Machata 提交于
      The boilerplate to schedule NETEVENT_IPV4_MPATH_HASH_UPDATE and
      NETEVENT_IPV6_MPATH_HASH_UPDATE handling is almost equivalent to that of
      NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE that's coming in the next
      patch. The only difference is which actual worker function should be
      called. Extract this boilerplate into a named function in order to allow
      reuse.
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f65a33f
    • J
      net: change Exar/Neterion menu items to be alphabetical · d39db3b4
      Jon Mason 提交于
      Neterion was standalone for several years, then acquired by Exar and
      shutdown in 11 months without ever making any new Exar branded adapters.
      Users would probably think of them as Neterion and not Exar (as there
      have been no follow-on adapters and the vast majority ever sold were
      under the Neterion name).
      
      6c541b45 ("net: ethernet: Sort Kconfig sourcing alphabetically")
      sorted Kconfig sourcing based on directory names, but in a couple cases,
      the menu item text is quite different from the directory name and is not
      sorted correctly:
      
        drivers/net/ethernet/neterion/Kconfig    => "Exar devices"
      
      To address that and clear up any confusion about the name, "Exar" was
      changed to "Neterion (Exar)" and the relevant entries in the Makefile
      and Kconfig were reordered to match the alphabetical organization.
      Inspired-by: NBjorn Helgaas <bhelgaas@google.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d39db3b4
    • S
      40c00664
    • S
      be2net: gather debug info and reset adapter (only for Lancer) on a tx-timeout · c1b3bdb2
      Suresh Reddy 提交于
      This patch handles a TX-timeout as follows:
      
      1) This patch gathers and prints the following info that can
         help in diagnosing the cause of a TX-timeout.
         a) TX queue and completion queue entries.
         b) SKB and TCP/UDP header details.
      
      2) For Lancer NICs (TX-timeout recovery is not supported for
         BE3/Skyhawk-R NICs), it recovers from the TX timeout as follows:
      
         a) On a TX-timeout, driver sets the PHYSDEV_CONTROL_FW_RESET_MASK
            bit in the PHYSDEV_CONTROL register. Lancer firmware goes into
            an error state and indicates this back to the driver via a bit
            in a doorbell register.
         b) Driver detects this and calls be_err_recover(). DMA is disabled,
            all pending TX skbs are unmapped and freed (be_close()). All rings
            are destroyed (be_clear()).
         c) The driver waits for the FW to re-initialize and re-creates all
            rings along with other data structs (be_resume())
      Signed-off-by: NSuresh Reddy <suresh.reddy@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1b3bdb2
    • G
      net/mlx5e: Fix uninitialized variable · 96d39502
      Gustavo A. R. Silva 提交于
      There is a potential execution path in which variable *err* is returned
      without being properly initialized previously.
      
      Fix this by initializing variable *err* to 0.
      
      Addresses-Coverity-ID: 1472116 ("Uninitialized scalar variable")
      Fixes: 0ec13877 ("net/mlx5e: Gather all XDP pre-requisite checks in a single function")
      Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
      Reviewed-by: NTariq Toukan <tariqt@mellanox.com>
      Acked-by: NSaeed Mahameed <saeedm@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      96d39502
    • Y
      qed: Make some functions static · bf774d14
      YueHaibing 提交于
      Fixes the following sparse warning:
      
      drivers/net/ethernet/qlogic/qed/qed_cxt.c:1534:6: warning: symbol 'qed_cm_init_pf' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_dev.c:233:4: warning: symbol 'qed_init_qm_get_num_tcs' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_dev.c:238:5: warning: symbol 'qed_init_qm_get_num_vfs' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_dev.c:246:5: warning: symbol 'qed_init_qm_get_num_pf_rls' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_dev.c:264:5: warning: symbol 'qed_init_qm_get_num_vports' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_dev.c:276:5: warning: symbol 'qed_init_qm_get_num_pqs' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_mcp.c:573:5: warning: symbol 'qed_mcp_nvm_wr_cmd' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_mcp.c:3012:1: warning: symbol '__qed_mcp_resc_lock' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_dcbx.c:870:6: warning: symbol 'qed_dcbx_aen' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_debug.c:7841:5: warning: symbol 'qed_dbg_nvm_image_length' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_debug.c:7857:5: warning: symbol 'qed_dbg_nvm_image' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_sriov.c:675:6: warning: symbol '_qed_iov_pf_sanity_check' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_sriov.c:690:6: warning: symbol 'qed_iov_pf_sanity_check' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_sriov.c:3982:6: warning: symbol 'qed_iov_pf_get_pending_events' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_vf.c:172:5: warning: symbol '_qed_vf_pf_release' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_rdma.c:137:5: warning: symbol 'qed_rdma_get_sb_id' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_rdma.c:709:5: warning: symbol 'qed_rdma_stop' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_ll2.c:161:6: warning: symbol 'qed_ll2b_complete_rx_packet' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_roce.c:160:6: warning: symbol 'qed_roce_free_cid_pair' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:380:12: warning: symbol 'iwarp_state_names' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:946:1: warning: symbol 'qed_iwarp_parse_private_data' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:971:1: warning: symbol 'qed_iwarp_mpa_reply_arrived' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2504:1: warning: symbol 'qed_iwarp_ll2_slowpath' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2806:6: warning: symbol 'qed_iwarp_qp_in_error' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2827:6: warning: symbol 'qed_iwarp_exception_received' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2958:1: warning: symbol 'qed_iwarp_connect_complete' was not declared. Should it be static?
      drivers/net/ethernet/qlogic/qed/qed_iscsi.c:876:6: warning: symbol 'qed_iscsi_free_connection' was not declared. Should it be static?
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Acked-by: NDenis Bolotin <Denis.Bolotin@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bf774d14
    • J
      net: stmmac: Fix WoL for PCI-based setups · b7d0f08e
      Jose Abreu 提交于
      WoL won't work in PCI-based setups because we are not saving the PCI EP
      state before entering suspend state and not allowing D3 wake.
      
      Fix this by using a wrapper around stmmac_{suspend/resume} which
      correctly sets the PCI EP state.
      Signed-off-by: NJose Abreu <joabreu@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b7d0f08e
    • I
      fea49f60
  5. 01 8月, 2018 6 次提交
  6. 31 7月, 2018 1 次提交
  7. 30 7月, 2018 5 次提交
  8. 29 7月, 2018 4 次提交