1. 28 11月, 2010 1 次提交
  2. 25 11月, 2010 16 次提交
  3. 23 11月, 2010 1 次提交
    • S
      macvlan: Introduce 'passthru' mode to takeover the underlying device · eb06acdc
      Sridhar Samudrala 提交于
      With the current default 'vepa' mode, a KVM guest using virtio with
      macvtap backend has the following limitations.
      - cannot change/add a mac address on the guest virtio-net
      - cannot create a vlan device on the guest virtio-net
      - cannot enable promiscuous mode on guest virtio-net
      
      To address these limitations, this patch introduces a new mode called
      'passthru' when creating a macvlan device which allows takeover of the
      underlying device and passing it to a guest using virtio with macvtap
      backend.
      
      Only one macvlan device is allowed in passthru mode and it inherits
      the mac address from the underlying device and sets it in promiscuous
      mode to receive and forward all the packets.
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      
      -------------------------------------------------------------------------
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eb06acdc
  4. 22 11月, 2010 1 次提交
  5. 20 11月, 2010 3 次提交
    • S
      net-next: Add multiqueue support to vmxnet3 driver · 09c5088e
      Shreyas Bhatewara 提交于
      Add multiqueue support to vmxnet3 driver
      
      This change adds multiqueue and thus receive side scaling support
      to vmxnet3 device driver. Number of rx queues is limited to 1 in cases
      where MSI is not configured or one MSIx vector is not available per rx
      queue
      Signed-off-by: NShreyas Bhatewara <sbhatewara@vmware.com>
      Reviewed-by: NBhavesh Davda <bhavesh@vmware.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      09c5088e
    • E
      filter: optimize sk_run_filter · 93aaae2e
      Eric Dumazet 提交于
      Remove pc variable to avoid arithmetic to compute fentry at each filter
      instruction. Jumps directly manipulate fentry pointer.
      
      As the last instruction of filter[] is guaranteed to be a RETURN, and
      all jumps are before the last instruction, we dont need to check filter
      bounds (number of instructions in filter array) at each iteration, so we
      remove it from sk_run_filter() params.
      
      On x86_32 remove f_k var introduced in commit 57fe93b3
      (filter: make sure filters dont read uninitialized memory)
      
      Note : We could use a CONFIG_ARCH_HAS_{FEW|MANY}_REGISTERS in order to
      avoid too many ifdefs in this code.
      
      This helps compiler to use cpu registers to hold fentry and A
      accumulator.
      
      On x86_32, this saves 401 bytes, and more important, sk_run_filter()
      runs much faster because less register pressure (One less conditional
      branch per BPF instruction)
      
      # size net/core/filter.o net/core/filter_pre.o
         text    data     bss     dec     hex filename
         2948       0       0    2948     b84 net/core/filter.o
         3349       0       0    3349     d15 net/core/filter_pre.o
      
      on x86_64 :
      # size net/core/filter.o net/core/filter_pre.o
         text    data     bss     dec     hex filename
         5173       0       0    5173    1435 net/core/filter.o
         5224       0       0    5224    1468 net/core/filter_pre.o
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Acked-by: NChangli Gao <xiaosuo@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      93aaae2e
    • S
      be2net: Fix to avoid firmware update when interface is not open. · d9efd2af
      Sarveshwar Bandi 提交于
      Since interrupts are enabled only when open is called on the interface,
      Attempting a firmware update operation when interface is down could lead to
      partial success or failure of operation. This fix fails the request if
      netif_running is false.
      Signed-off-by: NSarveshwar Bandi <Sarveshwar.Bandi@emulex.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d9efd2af
  6. 19 11月, 2010 8 次提交
  7. 18 11月, 2010 10 次提交