1. 30 9月, 2008 1 次提交
  2. 23 9月, 2008 1 次提交
    • S
      net: network device name ifalias support · 0b815a1a
      Stephen Hemminger 提交于
      This patch add support for keeping an additional character alias
      associated with an network interface. This is useful for maintaining
      the SNMP ifAlias value which is a user defined value. Routers use this
      to hold information like which circuit or line it is connected to. It
      is just an arbitrary text label on the network device.
      
      There are two exposed interfaces with this patch, the value can be
      read/written either via netlink or sysfs.
      
      This could be maintained just by the snmp daemon, but it is more
      generally useful for other management tools, and the kernel is good
      place to act as an agreed upon interface to store it.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0b815a1a
  3. 05 8月, 2008 2 次提交
    • D
      net: Kill plain NET_XMIT_BYPASS. · cc6533e9
      David S. Miller 提交于
      dst_input() was doing something completely absurd, looping
      on skb->dst->input() if NET_XMIT_BYPASS was seen, but these
      functions never return such an error.
      
      And as a result plain ole' NET_XMIT_BYPASS has no more
      references and can be completely killed off.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cc6533e9
    • J
      net_sched: Add qdisc __NET_XMIT_STOLEN flag · 378a2f09
      Jarek Poplawski 提交于
      Patrick McHardy <kaber@trash.net> noticed:
      "The other problem that affects all qdiscs supporting actions is
      TC_ACT_QUEUED/TC_ACT_STOLEN getting mapped to NET_XMIT_SUCCESS
      even though the packet is not queued, corrupting upper qdiscs'
      qlen counters."
      
      and later explained:
      "The reason why it translates it at all seems to be to not increase
      the drops counter. Within a single qdisc this could be avoided by
      other means easily, upper qdiscs would still increase the counter
      when we return anything besides NET_XMIT_SUCCESS though.
      
      This means we need a new NET_XMIT return value to indicate this to
      the upper qdiscs. So I'd suggest to introduce NET_XMIT_STOLEN,
      return that to upper qdiscs and translate it to NET_XMIT_SUCCESS
      in dev_queue_xmit, similar to NET_XMIT_BYPASS."
      
      David Miller <davem@davemloft.net> noticed:
      "Maybe these NET_XMIT_* values being passed around should be a set of
      bits. They could be composed of base meanings, combined with specific
      attributes.
      
      So you could say "NET_XMIT_DROP | __NET_XMIT_NO_DROP_COUNT"
      
      The attributes get masked out by the top-level ->enqueue() caller,
      such that the base meanings are the only thing that make their
      way up into the stack. If it's only about communication within the
      qdisc tree, let's simply code it that way."
      
      This patch is trying to realize these ideas.
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      378a2f09
  4. 01 8月, 2008 1 次提交
  5. 23 7月, 2008 1 次提交
    • D
      net: Fix build failure with 'make mandocs'. · d29f749e
      Dave Jones 提交于
      The function header comments have to go with the functions
      they are documenting, or things go horribly wrong when we
      try to process them with the docbook tools.
      
      Warning(include/linux/netdevice.h:1006): No description found for parameter 'dev_queue'
      Warning(include/linux/netdevice.h:1033): No description found for parameter 'dev_queue'
      Warning(include/linux/netdevice.h:1067): No description found for parameter 'dev_queue'
      Warning(include/linux/netdevice.h:1093): No description found for parameter 'dev_queue'
      Warning(include/linux/netdevice.h:1474): No description found for parameter 'txq'
      Error(net/core/dev.c:1674): cannot understand prototype: 'u32 simple_tx_hashrnd; '
      Signed-off-by: NDave Jones <davej@redhat.com>
      Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d29f749e
  6. 22 7月, 2008 1 次提交
  7. 19 7月, 2008 1 次提交
    • D
      pkt_sched: Manage qdisc list inside of root qdisc. · 30723673
      David S. Miller 提交于
      Idea is from Patrick McHardy.
      
      Instead of managing the list of qdiscs on the device level, manage it
      in the root qdisc of a netdev_queue.  This solves all kinds of
      visibility issues during qdisc destruction.
      
      The way to iterate over all qdiscs of a netdev_queue is to visit
      the netdev_queue->qdisc, and then traverse it's list.
      
      The only special case is to ignore builting qdiscs at the root when
      dumping or doing a qdisc_lookup().  That was not needed previously
      because builtin qdiscs were not added to the device's qdisc_list.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      30723673
  8. 18 7月, 2008 12 次提交
  9. 15 7月, 2008 3 次提交
  10. 11 7月, 2008 1 次提交
  11. 09 7月, 2008 11 次提交
  12. 06 7月, 2008 1 次提交
  13. 28 6月, 2008 1 次提交
  14. 20 6月, 2008 1 次提交
  15. 18 6月, 2008 2 次提交