1. 11 Jul, 2015 12 commits
  2. 10 Jul, 2015 4 commits
  3. 09 Jul, 2015 15 commits
  4. 08 Jul, 2015 9 commits
    • Xi Wang's avatar
      test_bpf: extend tests for 32-bit endianness conversion · ba29becd
      Xi Wang authored
      Currently "ALU_END_FROM_BE 32" and "ALU_END_FROM_LE 32" do not test if
      the upper bits of the result are zeros (the arm64 JIT had such bugs).
      Extend the two tests to catch this.
      Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
      Signed-off-by: default avatarXi Wang <xi.wang@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ba29becd
    • David S. Miller's avatar
      Merge branch 'cxgb4-t6' · ca661a28
      David S. Miller authored
      Hariprasad Shenai says:
      
      ====================
      Cleanup, T6 changes and register range update
      
      This patch series adds the following:
      Don't use entire L2T table, update register ranges for T6 adapter,
      read stats for only available channels for T6 and enable cim_la dump for
      T6 adapter also.
      
      This patch series has been created against net-next tree and includes
      patches on cxgb4 driver.
      
      We have included all the maintainers of respective drivers. Kindly review
      the change and let us know in case of any review comments.
      ====================
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ca661a28
    • Hariprasad Shenai's avatar
    • Hariprasad Shenai's avatar
      cxgb4: Read stats for only available channels · df459ebc
      Hariprasad Shenai authored
      Updating the driver to read the stats of only available channels. T6 and
      later has only 2 channels
      Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      df459ebc
    • Hariprasad Shenai's avatar
    • Hariprasad Shenai's avatar
      cxgb4: Don't use entire L2T table, use only its slice · 5be9ed8d
      Hariprasad Shenai authored
      The driver was retrieving the parameters for the bounds of its
      slice of the L2T from the firmware and then throwing those away and
      using the entire table. This corrects that problem.
      Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5be9ed8d
    • Vaishali Thakkar's avatar
      net: ec_bhf: Use module_pci_driver · b11b6ed0
      Vaishali Thakkar authored
      Use module_pci_driver for drivers whose init and exit functions
      only register and unregister, respectively.
      
      A simplified version of the Coccinelle semantic patch that performs
      this transformation is as follows:
      
      @A@
      identifier f, x;
      @@
      -static f(...) { return pci_register_driver(&x); }
      
      @b depends on a@
      identifier e, a.x;
      @@
      -static e(...) { pci_unregister_driver(&x); }
      
      @c depends on a && b@
      identifier a.f;
      declarer name module_init;
      @@
      -module_init(f);
      
      @d depends on a && b && c@
      identifier b.e, a.x;
      declarer name module_exit;
      declarer name module_pci_driver;
      @@
      -module_exit(e);
      +module_pci_driver(x);
      Signed-off-by: default avatarVaishali Thakkar <vthakkar1994@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b11b6ed0
    • Haiyang Zhang's avatar
      hv_netvsc: Add support to set MTU reservation from guest side · f9cbce34
      Haiyang Zhang authored
      When packet encapsulation is in use, the MTU needs to be reduced for
      headroom reservation.
      The existing code takes the updated MTU value only from the host side.
      But vSwitch extensions, such as Open vSwitch, require the flexibility
      to change the MTU to different values from within a guest during the
      lifecycle of a vNIC, when the encapsulation protocol is changed. The
      patch supports this kind of MTU changes.
      Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
      Reviewed-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f9cbce34
    • Eric Dumazet's avatar
      ifb: add multiqueue operation · 9e29e21a
      Eric Dumazet authored
      Add multiqueue capabilities to ifb netdevice.
      
      This removes last bottleneck for ingress when mq qdisc can be used
      to shard load from multiple RX queues on physical device.
      
      Tested:
      
      # netem based setup, installed at receiver side
      ETH=eth0
      IFB=ifb10
      EST="est 1sec 4sec" # Optional rate estimator
      RTT_HALF=2ms
      #REORDER=20us
      #LOSS="loss 1"
      TXQ=8
      
      ip link add ifb10 numtxqueues $TXQ type ifb
      ip link set dev $IFB up
      
      tc qdisc add dev $ETH ingress 2>/dev/null
      
      tc filter add dev $ETH parent ffff: \
         protocol ip u32 match u32 0 0 flowid 1:1 \
      	action mirred egress redirect dev $IFB
      
      tc qdisc del dev $IFB root 2>/dev/null
      
      tc qdisc add dev $IFB root handle 1: mq
      for i in `seq 1 $TXQ`
      do
       slot=$( printf %x $(( i )) )
       tc qd add dev $IFB parent 1:$slot $EST netem \
      	limit 100000 delay $RTT_HALF $REORDER $LOSS
      done
      
      lpaa24:~# tc -s -d qd sh dev ifb10
      qdisc mq 1: root
       Sent 316544766 bytes 5265927 pkt (dropped 0, overlimits 0 requeues 0)
       backlog 98880b 1648p requeues 0
      qdisc netem 8002: parent 1:1 limit 100000 delay 2.0ms
       Sent 39601416 bytes 658721 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38235Kbit 79657pps backlog 12240b 204p requeues 0
      qdisc netem 8003: parent 1:2 limit 100000 delay 2.0ms
       Sent 39472866 bytes 657227 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38234Kbit 79655pps backlog 10620b 176p requeues 0
      qdisc netem 8004: parent 1:3 limit 100000 delay 2.0ms
       Sent 39703417 bytes 659699 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38320Kbit 79831pps backlog 12780b 213p requeues 0
      qdisc netem 8005: parent 1:4 limit 100000 delay 2.0ms
       Sent 39565149 bytes 658011 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38174Kbit 79530pps backlog 11880b 198p requeues 0
      qdisc netem 8006: parent 1:5 limit 100000 delay 2.0ms
       Sent 39506078 bytes 657354 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38195Kbit 79571pps backlog 12480b 208p requeues 0
      qdisc netem 8007: parent 1:6 limit 100000 delay 2.0ms
       Sent 39675994 bytes 658849 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38323Kbit 79838pps backlog 12600b 210p requeues 0
      qdisc netem 8008: parent 1:7 limit 100000 delay 2.0ms
       Sent 39532042 bytes 658367 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38177Kbit 79536pps backlog 13140b 219p requeues 0
      qdisc netem 8009: parent 1:8 limit 100000 delay 2.0ms
       Sent 39488164 bytes 657705 pkt (dropped 0, overlimits 0 requeues 0)
       rate 38192Kbit 79568pps backlog 13Kb 222p requeues 0
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Alexei Starovoitov <ast@plumgrid.com>
      Cc: Jamal Hadi Salim <jhs@mojatatu.com>
      Cc: John Fastabend <john.fastabend@gmail.com>
      Acked-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
      Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9e29e21a