1. 22 1月, 2014 7 次提交
  2. 20 1月, 2014 9 次提交
  3. 19 1月, 2014 3 次提交
  4. 18 1月, 2014 9 次提交
    • S
      Bluetooth: remove direct compilation of 6lowpan_iphc.c · c9151497
      Stephen Warren 提交于
      It's now built as a separate utility module, and enabling BT selects
      that module in Kconfig. This fixes:
      
      net/ieee802154/built-in.o:(___ksymtab_gpl+lowpan_process_data+0x0): multiple definition of `__ksymtab_lowpan_process_data'
      net/bluetooth/built-in.o:(___ksymtab_gpl+lowpan_process_data+0x0): first defined here
      net/ieee802154/built-in.o:(___ksymtab_gpl+lowpan_header_compress+0x0): multiple definition of `__ksymtab_lowpan_header_compress'
      net/bluetooth/built-in.o:(___ksymtab_gpl+lowpan_header_compress+0x0): first defined here
      net/ieee802154/built-in.o: In function `lowpan_header_compress':
      net/ieee802154/6lowpan_iphc.c:606: multiple definition of `lowpan_header_compress'
      net/bluetooth/built-in.o:/home/swarren/shared/git_wa/kernel/kernel.git/net/bluetooth/../ieee802154/6lowpan_iphc.c:606: first defined here
      net/ieee802154/built-in.o: In function `lowpan_process_data':
      net/ieee802154/6lowpan_iphc.c:344: multiple definition of `lowpan_process_data'
      net/bluetooth/built-in.o:/home/swarren/shared/git_wa/kernel/kernel.git/net/bluetooth/../ieee802154/6lowpan_iphc.c:344: first defined here
      make[1]: *** [net/built-in.o] Error 1
      
      (this change probably simply wasn't "git add"d to a53d34c3)
      
      Fixes: a53d34c3 ("net: move 6lowpan compression code to separate module")
      Fixes: 18722c24 ("Bluetooth: Enable 6LoWPAN support for BT LE devices")
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c9151497
    • S
      Bluetooth: remove direct compilation of 6lowpan_iphc.c · 7bbc084c
      Stephen Warren 提交于
      It's now built as a separate utility module, and enabling BT selects
      that module in Kconfig. This fixes:
      
      net/ieee802154/built-in.o:(___ksymtab_gpl+lowpan_process_data+0x0): multiple definition of `__ksymtab_lowpan_process_data'
      net/bluetooth/built-in.o:(___ksymtab_gpl+lowpan_process_data+0x0): first defined here
      net/ieee802154/built-in.o:(___ksymtab_gpl+lowpan_header_compress+0x0): multiple definition of `__ksymtab_lowpan_header_compress'
      net/bluetooth/built-in.o:(___ksymtab_gpl+lowpan_header_compress+0x0): first defined here
      net/ieee802154/built-in.o: In function `lowpan_header_compress':
      net/ieee802154/6lowpan_iphc.c:606: multiple definition of `lowpan_header_compress'
      net/bluetooth/built-in.o:/home/swarren/shared/git_wa/kernel/kernel.git/net/bluetooth/../ieee802154/6lowpan_iphc.c:606: first defined here
      net/ieee802154/built-in.o: In function `lowpan_process_data':
      net/ieee802154/6lowpan_iphc.c:344: multiple definition of `lowpan_process_data'
      net/bluetooth/built-in.o:/home/swarren/shared/git_wa/kernel/kernel.git/net/bluetooth/../ieee802154/6lowpan_iphc.c:344: first defined here
      make[1]: *** [net/built-in.o] Error 1
      
      (this change probably simply wasn't "git add"d to a53d34c3)
      
      Fixes: a53d34c3 ("net: move 6lowpan compression code to separate module")
      Fixes: 18722c24 ("Bluetooth: Enable 6LoWPAN support for BT LE devices")
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7bbc084c
    • S
      bonding: add netlink attributes to slave link dev · 1d3ee88a
      sfeldma@cumulusnetworks.com 提交于
      If link is IFF_SLAVE, extend link dev netlink attributes to include
      slave attributes with new IFLA_SLAVE nest.  Add netlink notification
      (RTM_NEWLINK) when slave status changes from backup to active, or
      visa-versa.
      
      Adds new ndo_get_slave op to net_device_ops to fill skb with IFLA_SLAVE
      attributes.  Currently only used by bonding driver, but could be
      used by other aggregating devices with slaves.
      Signed-off-by: NScott Feldman <sfeldma@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1d3ee88a
    • E
      ipv4: fix a dst leak in tunnels · 6c7e7610
      Eric Dumazet 提交于
      This patch :
      
      1) Remove a dst leak if DST_NOCACHE was set on dst
         Fix this by holding a reference only if dst really cached.
      
      2) Remove a lockdep warning in __tunnel_dst_set()
          This was reported by Cong Wang.
      
      3) Remove usage of a spinlock where xchg() is enough
      
      4) Remove some spurious inline keywords.
         Let compiler decide for us.
      
      Fixes: 7d442fab ("ipv4: Cache dst in tunnels")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Cong Wang <cwang@twopensource.com>
      Cc: Tom Herbert <therbert@google.com>
      Cc: Maciej Żenczykowski <maze@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6c7e7610
    • F
      ipv6: send Change Status Report after DAD is completed · 6a7cc418
      Flavio Leitner 提交于
      The RFC 3810 defines two type of messages for multicast
      listeners. The "Current State Report" message, as the name
      implies, refreshes the *current* state to the querier.
      Since the querier sends Query messages periodically, there
      is no need to retransmit the report.
      
      On the other hand, any change should be reported immediately
      using "State Change Report" messages. Since it's an event
      triggered by a change and that it can be affected by packet
      loss, the rfc states it should be retransmitted [RobVar] times
      to make sure routers will receive timely.
      
      Currently, we are sending "Current State Reports" after
      DAD is completed.  Before that, we send messages using
      unspecified address (::) which should be silently discarded
      by routers.
      
      This patch changes to send "State Change Report" messages
      after DAD is completed fixing the behavior to be RFC compliant
      and also to pass TAHI IPv6 testsuite.
      Signed-off-by: NFlavio Leitner <fbl@redhat.com>
      Acked-by: NHannes Frederic Sowa <hannes@stressinduktion.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6a7cc418
    • H
      ipv6: simplify detection of first operational link-local address on interface · 11ffff75
      Hannes Frederic Sowa 提交于
      In commit 1ec047eb ("ipv6: introduce per-interface counter for
      dad-completed ipv6 addresses") I build the detection of the first
      operational link-local address much to complex. Additionally this code
      now has a race condition.
      
      Replace it with a much simpler variant, which just scans the address
      list when duplicate address detection completes, to check if this is
      the first valid link local address and send RS and MLD reports then.
      
      Fixes: 1ec047eb ("ipv6: introduce per-interface counter for dad-completed ipv6 addresses")
      Reported-by: NJiri Pirko <jiri@resnulli.us>
      Cc: Flavio Leitner <fbl@redhat.com>
      Signed-off-by: NHannes Frederic Sowa <hannes@stressinduktion.org>
      Acked-by: NFlavio Leitner <fbl@redhat.com>
      Acked-by: NJiri Pirko <jiri@resnulli.us>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      11ffff75
    • C
      tcp: metrics: Avoid duplicate entries with the same destination-IP · 77f99ad1
      Christoph Paasch 提交于
      Because the tcp-metrics is an RCU-list, it may be that two
      soft-interrupts are inside __tcp_get_metrics() for the same
      destination-IP at the same time. If this destination-IP is not yet part of
      the tcp-metrics, both soft-interrupts will end up in tcpm_new and create
      a new entry for this IP.
      So, we will have two tcp-metrics with the same destination-IP in the list.
      
      This patch checks twice __tcp_get_metrics(). First without holding the
      lock, then while holding the lock. The second one is there to confirm
      that the entry has not been added by another soft-irq while waiting for
      the spin-lock.
      
      Fixes: 51c5d0c4 (tcp: Maintain dynamic metrics in local cache.)
      Signed-off-by: NChristoph Paasch <christoph.paasch@uclouvain.be>
      Reviewed-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      77f99ad1
    • F
      ipv6: tcp: fix flowlabel value in ACK messages send from TIME_WAIT · 1d13a96c
      Florent Fourcot 提交于
      This patch is following the commit b903d324 (ipv6: tcp: fix TCLASS
      value in ACK messages sent from TIME_WAIT).
      
      For the same reason than tclass, we have to store the flow label in the
      inet_timewait_sock to provide consistency of flow label on the last ACK.
      Signed-off-by: NFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1d13a96c
    • G
      net: rds: fix per-cpu helper usage · c196403b
      Gerald Schaefer 提交于
      commit ae4b46e9 "net: rds: use this_cpu_* per-cpu helper" broke per-cpu
      handling for rds. chpfirst is the result of __this_cpu_read(), so it is
      an absolute pointer and not __percpu. Therefore, __this_cpu_write()
      should not operate on chpfirst, but rather on cache->percpu->first, just
      like __this_cpu_read() did before.
      
      Cc: <stable@vger.kernel.org> # 3.8+
      Signed-off-byd Gerald Schaefer <gerald.schaefer@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c196403b
  5. 17 1月, 2014 12 次提交