1. 24 7月, 2014 7 次提交
    • Q
      ipv4: Make IP_MULTICAST_ALL and IP_MSFILTER work on raw sockets · f5220d63
      Quentin Armitage 提交于
      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: NQuentin Armitage <quentin@armitage.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f5220d63
    • D
      Merge branch 'virtio-net-busy-poll' · 92bab4e7
      David S. Miller 提交于
      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: NDavid S. Miller <davem@davemloft.net>
      92bab4e7
    • J
      virtio-net: rx busy polling support · 91815639
      Jason Wang 提交于
      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: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      91815639
    • J
      virtio-net: introduce virtnet_receive() · 2ffa7598
      Jason Wang 提交于
      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: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2ffa7598
    • V
      ethernet: realtek: use pci_device_id · 96b3bff4
      Varka Bhadram 提交于
      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: NVarka Bhadram <varkab@cdac.in>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      96b3bff4
    • V
      ethernet: realtek: use module_pci_driver · 5490c272
      Varka Bhadram 提交于
      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: NVarka Bhadram <varkab@cdac.in>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5490c272
    • S
      sock: remove skb argument from sk_rcvqueues_full · 274f482d
      Sorin Dumitru 提交于
      It hasn't been used since commit 0fd7bac6(net: relax rcvbuf limits).
      Signed-off-by: NSorin Dumitru <sorin@returnze.ro>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      274f482d
  2. 23 7月, 2014 15 次提交
  3. 22 7月, 2014 18 次提交