1. 08 2月, 2017 2 次提交
    • M
      bnxt_en: Don't use DEFINE_DMA_UNMAP_ADDR to store DMA address in RX path. · 11cd119d
      Michael Chan 提交于
      To support XDP_TX, we need the RX buffer's DMA address to transmit the
      packet.  Convert the DMA address field to a permanent field in
      bnxt_sw_rx_bd.
      Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      11cd119d
    • M
      bnxt_en: Refactor rx SKB function. · 6bb19474
      Michael Chan 提交于
      Minor refactoring of bnxt_rx_skb() so that it can easily be replaced by
      a new function that handles packets in a single page.  Also, use a
      function pointer bp->rx_skb_func() to switch to a new function when
      we add the new mode in the next patch.
      
      Add a new field data_ptr that points to the packet data in the
      bnxt_sw_rx_bd structure.  The original data field is changed to void
      pointer so that it can either hold the kmalloc'ed data or a page
      pointer.
      
      The last parameter of bnxt_rx_skb() which was the length parameter is
      changed to include the payload offset of the packet in the upper 16 bit.
      The offset is needed to support the rx page mode and is not used in
      this existing function.
      
      v3: Added a new data_ptr parameter to bp->rx_skb_func().  The caller
      has the option to modify the starting address of the packet.  This
      will be needed when XDP with headroom support is added.
      
      v2: Changed the name of the last parameter to offset_and_len to make the
      code more clear.
      Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6bb19474
  2. 14 1月, 2017 1 次提交
  3. 30 12月, 2016 6 次提交
  4. 07 12月, 2016 7 次提交
  5. 06 12月, 2016 4 次提交
  6. 17 11月, 2016 2 次提交
  7. 20 9月, 2016 4 次提交
  8. 26 7月, 2016 1 次提交
  9. 20 7月, 2016 2 次提交
  10. 03 7月, 2016 3 次提交
  11. 18 6月, 2016 1 次提交
  12. 15 6月, 2016 6 次提交
  13. 16 5月, 2016 1 次提交