1. 22 9月, 2010 22 次提交
  2. 21 9月, 2010 7 次提交
    • G
      dccp ccid-3: Remove redundant 'options_received' struct · 536bb20b
      Gerrit Renker 提交于
      The `options_received' struct is redundant, since it re-duplicates the existing
      `p' and `x_recv' fields. This patch removes the sub-struct and migrates the
      format conversion operations to ccid3_hc_tx_parse_options().
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      536bb20b
    • G
      dccp tfrc/ccid-3: computing the loss rate from the Loss Event Rate · 792e6d33
      Gerrit Renker 提交于
      This adds a function to take care of the following, separate cases occurring in
      the computation of the Loss Rate p:
      
       * 1/(2^32-1) is mapped into 0% as per RFC 4342, 8.5;
       * 1/0        is mapped into 100%, the maximum;
       * to avoid that p = 1/x is rounded down to 0 when x is very large, since this
         means accidentally re-entering slow-start indicated by p == 0, the minimum
         resolution value of p is now returned instead;
       * a bug in ccid3_hc_rx_getsockopt is fixed: 1/0 was mapped into ~0U.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      792e6d33
    • G
      dccp ccid-3: remove dead states · 80763dfb
      Gerrit Renker 提交于
      This patch is thanks to an investigation by Leandro Sales de Melo and his
      colleagues. They worked out two state diagrams which highlight the fact that
      the xxx_TERM states in CCID-3/4 are in fact not necessary.
      
      And this can be confirmed by in turn looking at the code: the xxx_TERM states
      are only ever set in ccid3_hc_{rx,tx}_exit(): when CCID-3 sets the state
      to xxx_TERM, it is at a time where no more processing should be going on,
      hence it is not necessary to introduce a dedicated exit state - this is already
      implied by unloading the CCID.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      80763dfb
    • G
      dccp: Replace magic CCID-specific numbers by symbolic constants · a18213d1
      Gerrit Renker 提交于
      The constants DCCPO_{MIN,MAX}_CCID_SPECIFIC are nowhere used in the code, but
      instead for the CCID-specific options numbers are used.
      
      This patch unifies the use of CCID-specific option numbers, by adding symbolic
      names reflecting the definitions in RFC 4340, 10.3.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      a18213d1
    • G
      dccp: Add packet type information to CCID-specific option parsing · 4874c131
      Gerrit Renker 提交于
      This
       1. adds packet type information to ccid_hc_{rx,tx}_parse_options(). This is
          necessary, since table 3 in RFC 4340, 5.8 leaves it to the CCIDs to state
          which options may (not) appear on what packet type.
      
       2. adds such a check for CCID-3's {Loss Event, Receive} Rate as specified in
          RFC 4340 8.3 ("Receive Rate options MUST NOT be sent on DCCP-Data packets")
          and 8.5 ("Loss Event Rate options MUST NOT be sent on DCCP-Data packets").
      
       3. removes an unused argument `idx' from ccid_hc_{rx,tx}_parse_options(). This
          is also no longer necessary, since the CCID-specific option-parsing routines
          are passed every single parameter of the type-length-value option encoding.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      4874c131
    • E
      qlcnic: dont set skb->truesize · daebbca3
      Eric Dumazet 提交于
      skb->truesize is set in core network.
      
      Dont change it unless dealing with fragments.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      daebbca3
    • E
      net: rx_dropped accounting · 8990f468
      Eric Dumazet 提交于
      Under load, netif_rx() can drop incoming packets but administrators dont
      have a chance to spot which device needs some tuning (RPS activation for
      example)
      
      This patch adds rx_dropped accounting in vlans and tunnels.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8990f468
  3. 20 9月, 2010 6 次提交
  4. 18 9月, 2010 5 次提交