1. 07 2月, 2018 1 次提交
  2. 03 2月, 2018 1 次提交
  3. 01 2月, 2018 1 次提交
  4. 31 1月, 2018 1 次提交
  5. 30 1月, 2018 2 次提交
    • C
      net_sched: implement ->change_tx_queue_len() for pfifo_fast · 7007ba63
      Cong Wang 提交于
      pfifo_fast used to drop based on qdisc_dev(qdisc)->tx_queue_len,
      so we have to resize skb array when we change tx_queue_len.
      
      Other qdiscs which read tx_queue_len are fine because they
      all save it to sch->limit or somewhere else in qdisc during init.
      They don't have to implement this, it is nicer if they do so
      that users don't have to re-configure qdisc after changing
      tx_queue_len.
      
      Cc: John Fastabend <john.fastabend@gmail.com>
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7007ba63
    • C
      net_sched: plug in qdisc ops change_tx_queue_len · 48bfd55e
      Cong Wang 提交于
      Introduce a new qdisc ops ->change_tx_queue_len() so that
      each qdisc could decide how to implement this if it wants.
      Previously we simply read dev->tx_queue_len, after pfifo_fast
      switches to skb array, we need this API to resize the skb array
      when we change dev->tx_queue_len.
      
      To avoid handling race conditions with TX BH, we need to
      deactivate all TX queues before change the value and bring them
      back after we are done, this also makes implementation easier.
      
      Cc: John Fastabend <john.fastabend@gmail.com>
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      48bfd55e
  6. 25 1月, 2018 12 次提交
  7. 24 1月, 2018 2 次提交
  8. 23 1月, 2018 6 次提交
  9. 20 1月, 2018 7 次提交
  10. 19 1月, 2018 1 次提交
    • A
      net/sched/sch_prio.c: work around gcc-4.4.4 union initializer issues · ef58ca38
      Andrew Morton 提交于
      gcc-4.4.4 has problems witn anon union initializers.  Work around this.
      
      net/sched/sch_prio.c: In function 'prio_dump_offload':
      net/sched/sch_prio.c:260: error: unknown field 'stats' specified in initializer
      net/sched/sch_prio.c:260: warning: initialization makes integer from pointer without a cast
      net/sched/sch_prio.c:261: error: unknown field 'stats' specified in initializer
      net/sched/sch_prio.c:261: warning: initialization makes integer from pointer without a cast
      
      Fixes: 7fdb61b4 ("net: sch: prio: Add offload ability to PRIO qdisc")
      Cc: Nogah Frankel <nogahf@mellanox.com>
      Cc: Yuval Mintz <yuvalm@mellanox.com>
      Cc: Jiri Pirko <jiri@mellanox.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ef58ca38
  11. 18 1月, 2018 6 次提交