1. 18 Oct, 2014 4 commits
  2. 14 Oct, 2014 1 commit
  3. 13 Oct, 2014 1 commit
    • Pablo Neira Ayuso's avatar
      netfilter: nf_tables: restrict nat/masq expressions to nat chain type · 7210e4e3
      Pablo Neira Ayuso authored
      This adds the missing validation code to avoid the use of nat/masq from
      non-nat chains. The validation assumes two possible configuration
      scenarios:
      
      1) Use of nat from base chain that is not of nat type. Reject this
         configuration from the nft_*_init() path of the expression.
      
      2) Use of nat from non-base chain. In this case, we have to wait until
         the non-base chain is referenced by at least one base chain via
         jump/goto. This is resolved from the nft_*_validate() path which is
         called from nf_tables_check_loops().
      
      The user gets an -EOPNOTSUPP in both cases.
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      7210e4e3
  4. 11 Oct, 2014 1 commit
  5. 10 Oct, 2014 31 commits
  6. 09 Oct, 2014 2 commits
    • Jesper Dangaard Brouer's avatar
      net_sched: restore qdisc quota fairness limits after bulk dequeue · b8358d70
      Jesper Dangaard Brouer authored
      Restore the quota fairness between qdisc's, that we broke with commit
      5772e9a3 ("qdisc: bulk dequeue support for qdiscs with TCQ_F_ONETXQUEUE").
      
      Before that commit, the quota in __qdisc_run() were in packets as
      dequeue_skb() would only dequeue a single packet, that assumption
      broke with bulk dequeue.
      
      We choose not to account for the number of packets inside the TSO/GSO
      packets (accessable via "skb_gso_segs").  As the previous fairness
      also had this "defect". Thus, GSO/TSO packets counts as a single
      packet.
      
      Further more, we choose to slack on accuracy, by allowing a bulk
      dequeue try_bulk_dequeue_skb() to exceed the "packets" limit, only
      limited by the BQL bytelimit.  This is done because BQL prefers to get
      its full budget for appropriate feedback from TX completion.
      
      In future, we might consider reworking this further and, if it allows,
      switch to a time-based model, as suggested by Eric. Right now, we only
      restore old semantics.
      
      Joint work with Eric, Hannes, Daniel and Jesper.  Hannes wrote the
      first patch in cooperation with Daniel and Jesper.  Eric rewrote the
      patch.
      
      Fixes: 5772e9a3 ("qdisc: bulk dequeue support for qdiscs with TCQ_F_ONETXQUEUE")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
      Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
      Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b8358d70
    • David S. Miller's avatar
      Merge branch 'r8152' · 6a974038
      David S. Miller authored
      Hayes Wang says:
      
      ====================
      r8152: use mutex for hw settings
      
      v2:
      Make sure the autoresume wouldn't occur inside the mutex, otherwise
      the dead lock would happen. For the purpose, adjust some code about
      autosuspend/autoresume.
      
      v1:
      Use mutex to avoid that the serial hw settings would be interrupted
      by other settings. Although there is no problem now, it makes the
      driver more safe.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6a974038