summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 6lowpan: revert 'reuse eth_mac_addr()'alex.bluesman.smirnov@gmail.com2012-07-051-2/+14
| | | | | | | | | | | | This reverts the commit cdf49c283e2e105da86ca575ad35b453f5ff24ea which replaces lowpan '.ndo_set_mac_address' method by ethernet's one. Accorind to the IEEE 802.15.4 standard, device has 8-byte length address, so this hook loses the last 2 bytes which may rise a compatibility problems with other IEEE 802.15.4 standard implementations. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* dccp: remove unnecessary codes in ipv6.cRongQing.Li2012-07-051-16/+5
| | | | | | | | | opt always equals np->opts, so it is meaningless to define opt, and check if opt does not equal np->opts and then try to free opt. Signed-off-by: RongQing.Li <roy.qing.li@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv6: remove unnecessary codes in tcp_ipv6.cRongQing.Li2012-07-051-13/+3
| | | | | | | | | opt always equals np->opts, so it is meaningless to define opt, and check if opt does not equal np->opts and then try to free opt. Signed-off-by: RongQing.Li <roy.qing.li@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* be2net: set maximal number of default RSS queuesYuval Mintz2012-07-051-4/+6
| | | | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Sathya Perla <sathya.perla@emulex.com> Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com> Cc: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* bnx2x: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+2
| | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* bnx2: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+1
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* tg3: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+1
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* myri10ge: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+1
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Jon Mason <mason@myri.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* cxgb4: set maximal number of default RSS queuesYuval Mintz2012-07-051-2/+2
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* cxgb3: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+1
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* qlge: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+1
| | | | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Cc: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> Cc: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* vxge: set maximal number of default RSS queuesYuval Mintz2012-07-051-1/+2
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Jon Mason <jdmason@kudzu.us> Signed-off-by: David S. Miller <davem@davemloft.net>
* mlx4: set maximal number of default RSS queuesYuval Mintz2012-07-051-2/+3
| | | | | | | | Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net-next: Add netif_get_num_default_rss_queuesYuval Mintz2012-07-052-0/+14
| | | | | | | | | | | | Most multi-queue networking driver consider the number of online cpus when configuring RSS queues. This patch adds a wrapper to the number of cpus, setting an upper limit on the number of cpus a driver should consider (by default) when allocating resources for his queues. Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv4: defer fib_compute_spec_dst() callEric Dumazet2012-07-051-3/+12
| | | | | | | | | | ip_options_compile() can avoid calling fib_compute_spec_dst() by default, and perform the call only if needed. David suggested to add a helper to make the call only once. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: Kill dst->_neighbour, accessors, and final uses.David S. Miller2012-07-052-34/+1
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* xfrm: No need to copy generic neighbour pointer.David S. Miller2012-07-051-3/+0
| | | | | | Nobody reads it any longer. Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv4: No need to set generic neighbour pointer.David S. Miller2012-07-051-59/+3
| | | | | | Nobody reads it any longer. Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv6: Store route neighbour in rt6_info struct.David S. Miller2012-07-054-18/+35
| | | | | | | | This makes for a simplified conversion away from dst_get_neighbour*(). All code outside of ipv6 will use neigh lookups via dst_neigh_lookup*(). Signed-off-by: David S. Miller <davem@davemloft.net>
* cxgb3: Convert t3_l2t_get() over to dst_neigh_lookup().David S. Miller2012-07-055-10/+17
| | | | | | This means passing in a suitable destination address. Signed-off-by: David S. Miller <davem@davemloft.net>
* net: Pass neighbours and dest address into NETEVENT_REDIRECT events.David S. Miller2012-07-053-15/+19
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* decnet: Use neighbours privately in dn_route struct.David S. Miller2012-07-053-8/+32
| | | | | | This allows an easy conversion away from dst_get_neighbour*(). Signed-off-by: David S. Miller <davem@davemloft.net>
* neigh: Convert over to dst_neigh_lookup_skb().David S. Miller2012-07-051-3/+16
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* br_netfilter: Convert to dst_neigh_lookup_skb().David S. Miller2012-07-051-13/+23
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* cxgb4i: Convert over to dst_neigh_lookup().David S. Miller2012-07-051-1/+4
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* cxgbi: Convert over to dst_neigh_lookup().David S. Miller2012-07-051-4/+8
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* qeth: Convert over to dst_neigh_lookup_skb().David S. Miller2012-07-051-1/+2
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* ipoib: Convert over to dev_lookup_neigh_skb().David S. Miller2012-07-052-10/+16
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sch_teql: Convert over to dev_neigh_lookup_skb().David S. Miller2012-07-051-25/+22
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* net: Add optional SKB arg to dst_ops->neigh_lookup().David S. Miller2012-07-057-15/+43
| | | | | | | Causes the handler to use the daddr in the ipv4/ipv6 header when the route gateway is unspecified (local subnet). Signed-off-by: David S. Miller <davem@davemloft.net>
* net: Do delayed neigh confirmation.David S. Miller2012-07-056-32/+38
| | | | | | | | | | | | | | When a dst_confirm() happens, mark the confirmation as pending in the dst. Then on the next packet out, when we have the neigh in-hand, do the update. This removes the dependency in dst_confirm() of dst's having an attached neigh. While we're here, remove the explicit 'dst' NULL check, all except 2 or 3 call sites ensure it's not NULL. So just fix those cases up. Signed-off-by: David S. Miller <davem@davemloft.net>
* sunrpc: Don't do a dst_confirm() on an input routes.David S. Miller2012-07-051-3/+0
| | | | | | | | | | | | xs_udp_data_ready() is operating on received packets, and tries to do a dst_confirm() on the dst attached to the SKB. This isn't right, dst confirmation is for output routes, not input rights. It's for resetting the timers on the nexthop neighbour entry for the route, indicating that we've got good evidence that we've successfully reached it. Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv4: Don't report neigh uptodate state in rtcache procfs.David S. Miller2012-07-051-10/+2
| | | | | | | | Soon routes will not have a cached neigh attached, nor will we be able to necessarily go directly to a neigh from an arbitrary route. Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv4: Make neigh lookups directly in output packet path.David S. Miller2012-07-055-25/+44
| | | | | | Do not use the dst cached neigh, we'll be getting rid of that. Signed-off-by: David S. Miller <davem@davemloft.net>
* ipv4: Fix crashes in ip_options_compile().David S. Miller2012-07-051-3/+6
| | | | | | | | The spec_dst uses should be guarded by skb_rtable() being non-NULL not just the SKB being non-null. Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-mergeDavid S. Miller2012-07-0237-1844/+2011
|\ | | | | | | | | | | | | | | | | | | | | Included changes: - The last batch of patches aimed to clean the batman-adv namespace - a couple of style fixes - a fix for the ethtool support - a fix to prevent sending unicast packets with an uninitialised header field Signed-off-by: David S. Miller <davem@davemloft.net>
| * batman-adv: Don't leak information through uninitialized packet fieldsSven Eckelmann2012-07-013-0/+4
| | | | | | | | | | | | | | | | | | | | The reserved fields in batman-adv packets are not set to a constant value. The content of these memory regions is leaked unintentionally to the network. This regression was introduced in 3b27ffb00fbe9d9189715ea13ce8712e2f0cb0c5 Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
| * batman-adv: fix counter summary lengthMarek Lindner2012-07-011-2/+1
| | | | | | | | | | | | Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Acked-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
| * batman-adv: Fix alignment after opened parenthesesSven Eckelmann2012-07-015-19/+24
| | | | | | | | | | Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
| * batman-adv: Remove space before semicolonSven Eckelmann2012-07-011-1/+1
| | | | | | | | | | Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
| * batman-adv: Remove bat_ prefix from bat_{debugfs, sysfs}.{c, h}Sven Eckelmann2012-07-019-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | The "bat_" prefix in the source files implementing the batman-adv sysfs and debugfs interface doesn't have a special meaning and are only used by these files and files that implement the actual B.A.T.M.A.N. path finding algorithm. The prefix is better suited to mark files that are used to implement the main part of the path finding. All other files should not use it and therefore gets renamed. Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Transform BATADV_LOG_BUFF(idx) into functionSven Eckelmann2012-07-011-4/+15
| | | | | | | | | | | | | | | | | | The linux Documentation/CodingStyle says that: * Chapter 12: "inline functions are preferable to macros resembling functions" * Chapter 12.2: Depending on local variables with a magic name is bad * Chapter 12.3: Macros with arguments used as l-value are bad Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix types structs with batadv_Sven Eckelmann2012-07-0131-938/+1029
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix packet structs with batadv_Sven Eckelmann2012-07-0119-347/+369
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix local sysfs struct with batadv_Sven Eckelmann2012-07-012-7/+7
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix hash struct and typedef with batadv_Sven Eckelmann2012-07-019-64/+67
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix local debugfs structs with batadv_Sven Eckelmann2012-07-011-5/+5
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix main enum with BATADV_Sven Eckelmann2012-07-0114-135/+140
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix packet enum with BATADV_Sven Eckelmann2012-07-0112-232/+254
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
| * batman-adv: Prefix types enum with BATADV_Sven Eckelmann2012-07-015-31/+31
| | | | | | | | | | Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>