1. 23 Jul, 2014 8 commits
    • Florian Fainelli's avatar
      net: bcmgenet: remove FSF mail address · 5e811b39
      Florian Fainelli authored
      
      
      Use a smaller GPLv2 header and remove all the boilerplate code as well
      as the FSF mail address.
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5e811b39
    • Quentin Armitage's avatar
      ipv4: Make IP_MULTICAST_ALL and IP_MSFILTER work on raw sockets · f5220d63
      Quentin Armitage authored
      
      
      Currently, although IP_MULTICAST_ALL and IP_MSFILTER ioctl calls succeed on
      raw sockets, there is no code to implement the functionality on received
      packets; it is only implemented for UDP sockets. The raw(7) man page states:
      "In addition, all ip(7) IPPROTO_IP socket options valid for datagram sockets
      are supported", which implies these ioctls should work on raw sockets.
      
      To fix this, add a call to ip_mc_sf_allow on raw sockets.
      
      This should not break any existing code, since the current position of
      not calling ip_mc_sf_filter makes it behave as if neither the IP_MULTICAST_ALL
      nor the IP_MSFILTER ioctl had been called. Adding the call to ip_mc_sf_allow
      will therefore maintain the current behaviour so long as IP_MULTICAST_ALL and
      IP_MSFILTER ioctls are not called. Any code that currently is calling
      IP_MULTICAST_ALL or IP_MSFILTER ioctls on raw sockets presumably is wanting
      the filter to be applied, although no filtering will currently be occurring.
      Signed-off-by: default avatarQuentin Armitage <quentin@armitage.org.uk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f5220d63
    • David S. Miller's avatar
      Merge branch 'virtio-net-busy-poll' · 92bab4e7
      David S. Miller authored
      
      
      Jason Wang says:
      
      ====================
      rx busy polling support for virtio-net
      
      This series introduces the support for rx busy polling support.  This
      was useful for reducing the latency for a kvm guest.  Instead of
      introducing new states and spinlocks, this series re-uses NAPI state
      to synchonrize between NAPI and busy polling.  This grealy simplified
      the codes and reduce the overheads of spinlocks for normal NAPI fast
      path.
      
      Test was done between a kvm guest and an external host.  Two hosts were
      connected through 40gb mlx4 cards. With both busy_poll and  busy_read
      are set to 50 in guest, 1 byte netperf tcp_rr shows 127% improvement:
      transaction rate was increased from 8353.33 to 18966.87.
      
      Changes from V2:
      - Avoid introducing new states and spinlocks by reusuing the NAPI
        state
      - Fix the budget calculation in virtnet_poll()
      - Drop patch 1/3 from V2 since it was useless
      
      Changes from V1:
      - split the patch info smaller ones
      - add more details about test setup/configuration
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      92bab4e7
    • Jason Wang's avatar
      virtio-net: rx busy polling support · 91815639
      Jason Wang authored
      
      
      Add basic support for rx busy polling. Instead of introducing new
      states and spinlock to synchronize between NAPI and polling method,
      this patch just reuse NAPI state to avoid extra overhead for fast path
      and simplified the codes.
      
      Test was done between a kvm guest and an external host. Two hosts were
      connected through 40gb mlx4 cards. With both busy_poll and busy_read
      are set to 50 in guest, 1 byte netperf tcp_rr shows 127% improvement:
      transaction rate was increased from 8353.33 to 18966.87.
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: Vlad Yasevich <vyasevic@redhat.com>
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      91815639
    • Jason Wang's avatar
      virtio-net: introduce virtnet_receive() · 2ffa7598
      Jason Wang authored
      
      
      Move common receive logic to a new helper virtnet_receive(). It will
      also be used by rx busy polling method.
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: Vlad Yasevich <vyasevic@redhat.com>
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2ffa7598
    • Varka Bhadram's avatar
      ethernet: realtek: use pci_device_id · 96b3bff4
      Varka Bhadram authored
      
      
      This patch use the struct pci_device_id instead of using macro
      DEFINE_PCI_DEVICE_TABLE which is deprecated and should not be used.
      And also moves these ids after probe and remove functionalities.
      Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      96b3bff4
    • Varka Bhadram's avatar
      ethernet: realtek: use module_pci_driver · 5490c272
      Varka Bhadram authored
      
      
      This patch converts to use the macro module_pci_driver, which makes
      the code smaller and simpler.
      
      Previously in this driver we are having driver version info will be
      printed log buffer based on whether the driver selected as module
      or statically into image itself. By using the module_pci_driver that
      part of the code removed. For the first time of the device init,
      we are making the version info to be printed once.
      Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5490c272
    • Sorin Dumitru's avatar
      sock: remove skb argument from sk_rcvqueues_full · 274f482d
      Sorin Dumitru authored
      It hasn't been used since commit 0fd7bac6
      
      (net: relax rcvbuf limits).
      Signed-off-by: default avatarSorin Dumitru <sorin@returnze.ro>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      274f482d
  2. 22 Jul, 2014 16 commits
  3. 21 Jul, 2014 16 commits