1. 18 12月, 2013 9 次提交
  2. 10 12月, 2013 1 次提交
  3. 18 10月, 2013 1 次提交
  4. 24 9月, 2013 1 次提交
  5. 17 9月, 2013 1 次提交
    • R
      DMA-API: net: brocade/bna/bnad.c: fix 32-bit DMA mask handling · 3e548079
      Russell King 提交于
      The fallback to 32-bit DMA mask is rather odd:
      	if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
      	    !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
      		*using_dac = true;
      	} else {
      		err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
      		if (err) {
      			err = dma_set_coherent_mask(&pdev->dev,
      						    DMA_BIT_MASK(32));
      			if (err)
      				goto release_regions;
      		}
      
      This means we only try and set the coherent DMA mask if we failed to
      set a 32-bit DMA mask, and only if both fail do we fail the driver.
      Adjust this so that if either setting fails, we fail the driver - and
      thereby end up properly setting both the DMA mask and the coherent
      DMA mask in the fallback case.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3e548079
  6. 28 8月, 2013 1 次提交
  7. 06 8月, 2013 1 次提交
    • J
      bna: Staticize local functions · 7f4341fe
      Jingoo Han 提交于
      bna_rx_sm_stop_wait_entry(), bna_rx_sm_rxf_stop_wait_entry(),
      bna_rx_sm_started_entry(), bna_rx_sm_cleanup_wait_entry(),
      and bna_rx_sm_cleanup_wait() are used only in this file.
      Fix the following sparse warnings:
      
      drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1423:1: warning: symbol 'bna_rx_sm_stop_wait_entry' was not declared. Should it be
      static?
      drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1476:1: warning: symbol 'bna_rx_sm_rxf_stop_wait_entry' was not declared. Should it be
      static?
      drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1532:1: warning: symbol 'bna_rx_sm_started_entry' was not declared. Should it be
      static?
      drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1597:1: warning: symbol 'bna_rx_sm_cleanup_wait_entry' was not declared. Should it be
      static?
      drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1602:1: warning: symbol 'bna_rx_sm_cleanup_wait' was not declared. Should it be static?
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7f4341fe
  8. 29 6月, 2013 1 次提交
  9. 17 6月, 2013 1 次提交
  10. 21 5月, 2013 4 次提交
  11. 14 5月, 2013 1 次提交
  12. 20 4月, 2013 3 次提交
  13. 18 3月, 2013 1 次提交
  14. 10 3月, 2013 1 次提交
  15. 12 12月, 2012 7 次提交
    • R
      bna: Driver Version Updated to 3.1.2.1 · d4bca3d7
      Rasesh Mody 提交于
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d4bca3d7
    • R
      bna: Firmware update · 478ab8c9
      Rasesh Mody 提交于
      Change Details:
       -      Added Stats clear counter to the bfi_enet_stats_mac structure and
              ethtool stats
       -      Modified the firmware naming convention to contain the firmware image
              version (3.1.0.0). The new convention is
              <firmware-image>-<firmware-version>.bin The change will enforce loading
              only compatible firmware with this driver and also avoid over-writing
              the old firmware image in-order to load new version driver as the
              firmware names used to be the same.
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      478ab8c9
    • R
      bna: Add RX State · 215a64a2
      Rasesh Mody 提交于
      Change Details:
       -      BNA state machine for Rx in start_wait state moves it to stop_wait on
              receipt of RX_E_STOP. In Rx stop_wait state, on receipt of
                      RX_E_STARTED event does enet stop
                      RX_E_STOPPED event does rx_cleanup_cbfn
              rx_cleanup_cbfn in this case is called without post_cbfn. post_cbfn
              happens only after RX_E_STARTED event is received in start_wait. Without
              doing post_cbfn, NAPI remains disabled and in cleanup we try to disable
              again causing endless wait. ifconfig process and other workers can thus
              get stuck.
       -      Introducing start_stop_wait state for Rx. This state handles the case of
              if post_cbfn is not done simply do stop without the cleanup.
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      215a64a2
    • R
      bna: Rx Page Based Allocation · 30f9fc94
      Rasesh Mody 提交于
      Change Details:
              Enhanced support for GRO. Page-base allocation method for Rx buffers is
      used in GRO. Skb allocation has been removed in Rx path to use always warm-cache
      skbs provided by napi_get_frags.
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      30f9fc94
    • R
      bna: TX Intr Coalescing Fix · d3f92aec
      Rasesh Mody 提交于
      Change Details:
              For Tx IB, IPM was enabled with inter_pkt_timeo of 0. This caused the
      Tx IB not to generate interrupt till inter_pkt_count of packets have been
      received. Correct definition for BFI_TX_INTERPKT_TIMEO & BFI_TX_INTERPKT_COUNT
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d3f92aec
    • R
      bna: Tx and Rx Optimizations · 5216562a
      Rasesh Mody 提交于
      Change details:
       -      Have contiguous queue pages for TxQ, RxQ and CQ. Data structure and
              QPT changes related to contiguous queue pages
       -      Optimized Tx and Rx unmap structures. Tx and Rx fast path changes due to
              unmap data structure changes
       -      Re-factored Tx and Rx fastpath routines as per the new queue data structures
       -      Implemented bnad_txq_wi_prepare() to program the opcode, flags, frame_len
              and num_vectors in the work item
       -      Reduced Max TxQ and RxQ depth to 2048 while default value for Tx/Rx queue
              depth is unaltered (512)
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5216562a
    • R
      bna: Code Cleanup and Enhancements · 5e46631f
      Rasesh Mody 提交于
      Change details:
       -      Remove unnecessary prefetch
       -      Simplify checking & comparison of CQ flags
       -      Dereference & store unmap_array, unmap_cons & current unmap_array
              element only once
       -      Make structures tx_config & rx_config cache line aligned.
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5e46631f
  16. 04 12月, 2012 1 次提交
  17. 03 12月, 2012 1 次提交
  18. 28 9月, 2012 1 次提交
    • D
      bna: Fix warning false positive. · e905ed57
      David S. Miller 提交于
      GCC can't see that in all non-error-return paths we do in fact
      set *using_dac to something.
      
      Add an explicit initialization to remove this warning:
      
      drivers/net/ethernet/brocade/bna/bnad.c: In function ‘bnad_pci_probe’:
      drivers/net/ethernet/brocade/bna/bnad.c:3079:5: warning: ‘using_dac’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/net/ethernet/brocade/bna/bnad.c:3233:7: note: ‘using_dac’ was declared here
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e905ed57
  19. 11 7月, 2012 2 次提交
  20. 07 6月, 2012 1 次提交
    • J
      ethernet: Remove casts to same type · 64699336
      Joe Perches 提交于
      Adding casts of objects to the same type is unnecessary
      and confusing for a human reader.
      
      For example, this cast:
      
              int y;
              int *p = (int *)&y;
      
      I used the coccinelle script below to find and remove these
      unnecessary casts.  I manually removed the conversions this
      script produces of casts with __force, __iomem and __user.
      
      @@
      type T;
      T *p;
      @@
      
      -       (T *)p
      +       p
      
      A function in atl1e_main.c was passed a const pointer
      when it actually modified elements of the structure.
      
      Change the argument to a non-const pointer.
      
      A function in stmmac needed a __force to avoid a sparse
      warning.  Added it.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      64699336