1. 13 Oct, 2010 3 commits
  2. 12 Oct, 2010 9 commits
  3. 11 Oct, 2010 19 commits
  4. 09 Oct, 2010 6 commits
  5. 08 Oct, 2010 3 commits
    • Tom Herbert's avatar
      net: Fix rxq ref counting · 4315d834
      Tom Herbert authored
      The rx->count reference is used to track reference counts to the
      number of rx-queue kobjects created for the device.  This patch
      eliminates initialization of the counter in netif_alloc_rx_queues
      and instead increments the counter each time a kobject is created.
      This is now symmetric with the decrement that is done when an object is
      released.
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4315d834
    • Rémi Denis-Courmont's avatar
      Phonet: mark the pipe controller as EXPERIMENTAL · a131d822
      Rémi Denis-Courmont authored
      There are a bunch of issues that need to be fixed, including:
       - GFP_KERNEL allocations from atomic context
         (and GFP_ATOMIC in process context),
       - abuse of the setsockopt() call convention,
       - unprotected/unlocked static variables...
      
      IMHO, we will need to alter the userspace ABI when we fix it. So mark
      the configuration option as EXPERIMENTAL for the time being (or should
      it be BROKEN instead?).
      Signed-off-by: default avatarRémi Denis-Courmont <remi.denis-courmont@nokia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a131d822
    • Rémi Denis-Courmont's avatar
      Phonet: cleanup pipe enable socket option · 03789f26
      Rémi Denis-Courmont authored
      The current code works like this:
      
        int garbage, status;
        socklen_t len = sizeof(status);
      
        /* enable pipe */
        setsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &garbage, sizeof(garbage));
        /* disable pipe */
        setsockopt(fd, SOL_PNPIPE, PNPIPE_DISABLE, &garbage, sizeof(garbage));
        /* get status */
        getsockopt(fd, SOL_PNPIPE, PNPIPE_INQ, &status, &len);
      
      ...which does not follow the usual socket option pattern. This patch
      merges all three "options" into a single gettable&settable option,
      before Linux 2.6.37 gets out:
      
        int status;
        socklen_t len = sizeof(status);
      
        /* enable pipe */
        status = 1;
        setsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &status, sizeof(status));
        /* disable pipe */
        status = 0;
        setsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &status, sizeof(status));
        /* get status */
        getsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &status, &len);
      
      This also fixes the error code from EFAULT to ENOTCONN.
      Signed-off-by: default avatarRémi Denis-Courmont <remi.denis-courmont@nokia.com>
      Cc: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      03789f26