1. 24 2月, 2006 2 次提交
  2. 01 2月, 2006 1 次提交
  3. 29 1月, 2006 1 次提交
  4. 11 1月, 2006 1 次提交
  5. 17 11月, 2005 2 次提交
  6. 01 10月, 2005 1 次提交
  7. 22 9月, 2005 1 次提交
  8. 14 9月, 2005 1 次提交
  9. 27 8月, 2005 1 次提交
  10. 19 8月, 2005 1 次提交
  11. 29 6月, 2005 1 次提交
    • D
      [NET]: Remove gratuitous use of skb->tail in network drivers. · 689be439
      David S. Miller 提交于
      Many drivers use skb->tail unnecessarily.
      
      In these situations, the code roughly looks like:
      
      	dev = dev_alloc_skb(...);
      
      	[optional] skb_reserve(skb, ...);
      
      	... skb->tail ...
      
      But even if the skb_reserve() happens, skb->data equals
      skb->tail.  So it doesn't make any sense to use anything
      other than skb->data in these cases.
      
      Another case was the s2io.c driver directly mucking with
      the skb->data and skb->tail pointers.  It really just wanted
      to do an skb_reserve(), so that's what the code was changed
      to do instead.
      
      Another reason I'm making this change as it allows some SKB
      cleanups I have planned simpler to merge.  In those cleanups,
      skb->head, skb->tail, and skb->end pointers are removed, and
      replaced with skb->head_room and skb->tail_room integers.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Acked-by: NJeff Garzik <jgarzik@pobox.com>
      689be439
  12. 14 6月, 2005 1 次提交
  13. 28 5月, 2005 8 次提交
  14. 13 5月, 2005 1 次提交
    • F
      [PATCH] r8169: incoming frame length check · 126fa4b9
      Francois Romieu 提交于
        
        The size of the incoming frame is not correctly checked.
        
        The RxMaxSize register (0xDA) does not work as expected and incoming
        frames whose size exceeds the MTU actually end spanning multiple
        descriptors. The first Rx descriptor contains the size of the whole
        frame (or some garbage in its place). The driver does not expect
        something above the space allocated to the current skb and crashes
        loudly when it issues a skb_put.
        
        The fix contains two parts:
        - disable hardware Rx size filtering: so far it only proved to be able
          to trigger some new fancy errors;
        - drop multi-descriptors frame: as the driver allocates MTU sized Rx
          buffers, it provides an adequate filtering.
        
        As a bonus, wrong descriptors were not returned to the asic after their
        processing.
      Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      126fa4b9
  15. 01 5月, 2005 1 次提交
  16. 17 4月, 2005 2 次提交