1. 28 Sep, 2018 26 commits
  2. 27 Sep, 2018 9 commits
  3. 26 Sep, 2018 5 commits
    • YueHaibing's avatar
      net: faraday: fix return type of ndo_start_xmit function · 0a715156
      YueHaibing authored
      The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
      which is a typedef for an enum type, so make sure the implementation in
      this driver has returns 'netdev_tx_t' value, and change the function
      return type to netdev_tx_t.
      
      Found by coccinelle.
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0a715156
    • YueHaibing's avatar
      net: smsc: fix return type of ndo_start_xmit function · 6323d57f
      YueHaibing authored
      The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
      which is a typedef for an enum type, so make sure the implementation in
      this driver has returns 'netdev_tx_t' value, and change the function
      return type to netdev_tx_t.
      
      Found by coccinelle.
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6323d57f
    • zhong jiang's avatar
      net: liquidio: list usage cleanup · 880e1b21
      zhong jiang authored
      Trival cleanup, list_move_tail will implement the same function that
      list_del() + list_add_tail() will do. hence just replace them.
      Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      880e1b21
    • zhong jiang's avatar
      net: qed: list usage cleanup · 631e871e
      zhong jiang authored
      Trival cleanup, list_move_tail will implement the same function that
      list_del() + list_add_tail() will do. hence just replace them.
      Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      631e871e
    • David S. Miller's avatar
      Merge branch 'net-bridge-convert-bool-options-to-bits' · 30b0594a
      David S. Miller authored
      Nikolay Aleksandrov says:
      
      ====================
      net: bridge: convert bool options to bits
      
      A lot of boolean bridge options have been added around the net_bridge
      structure resulting in holes and more importantly different cache lines
      that need to be fetched in the fast path. This set moves all of those
      to bits in a bitfield which resides in a hot cache line thus reducing
      the size of net_bridge, the number of holes and the number of cache
      lines needed for the fast path.
      The set is also sent in preparation for new boolean options to avoid
      spreading them in the structure and making new holes.
      One nice side-effect is that we avoid potential race conditions by using
      the bitops since some of the options were bits being directly set in
      parallel risking hard to debug issues (has_ipv6_addr).
      
      Before:
       size: 1184, holes: 8, sum holes: 30
      After:
       size: 1160, holes: 3, sum holes: 7
      
      Patch 01 is a trivial style fix
      Patch 02 adds the new options bitfield and converts the vlan boolean
               options to bits
      Patches 03-08 convert the rest of the boolean options to bits
      Patch 09 re-arranges a few fields in net_bridge to further reduce size
      
      v2: patch 09: remove the comment about offload_fwd_mark in net_bridge and
          leave it where it is now, thanks to Ido for spotting it
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      30b0594a