<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/tipc/subscr.c, branch linux-2.6.36.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.36.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.36.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-04-07T02:50:19Z</updated>
<entry>
<title>TIPC: Updated topology subscription protocol according to latest spec</title>
<updated>2010-04-07T02:50:19Z</updated>
<author>
<name>Jon Paul Maloy</name>
</author>
<published>2010-04-06T11:40:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6537d6742985da1fbf12ae26cde6a096fd35b5c'/>
<id>urn:sha1:c6537d6742985da1fbf12ae26cde6a096fd35b5c</id>
<content type='text'>
This patch makes it explicit in the API that all fields in subscriptions and events exchanged with the Topology Server must be in
network byte order.
It also ensures that all fields of a subscription are compared when cancelling a subscription, in order to avoid inadvertent
cancelling of the wrong subscription.
Finally, the tipc module version is updated to 2.0.0, to reflect the API change.

Signed-off-by: Jon Maloy &lt;jon.maloy@ericsson.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: fix endianness on tipc subscriber messages</title>
<updated>2010-03-08T20:20:58Z</updated>
<author>
<name>Neil Horman</name>
</author>
<published>2010-03-08T20:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d88dca79d3852a3623f606f781e013d61486828a'/>
<id>urn:sha1:d88dca79d3852a3623f606f781e013d61486828a</id>
<content type='text'>
Remove htohl implementation from tipc

I was working on forward porting the downstream commits for TIPC and ran accross this one:
http://tipc.cslab.ericsson.net/cgi-bin/gitweb.cgi?p=people/allan/tipc.git;a=commitdiff;h=894279b9437b63cbb02405ad5b8e033b51e4e31e

I was going to just take it, when I looked closer and noted what it was doing.
This is basically a routine to byte swap fields of data in sent/received packets
for tipc, dependent upon the receivers guessed endianness of the peer when a
connection is established.  Asside from just seeming silly to me, it appears to
violate the latest RFC draft for tipc:
http://tipc.sourceforge.net/doc/draft-spec-tipc-02.txt
Which, according to section 4.2 and 4.3.3, requires that all fields of all
commands be sent in network byte order.  So instead of just taking this patch,
instead I'm removing the htohl function and replacing the calls with calls to
ntohl in the rx path and htonl in the send path.

As part of this fix, I'm also changing the subscr_cancel function, which
searches the list of subscribers, using a memcmp of the entire subscriber list,
for the entry to tear down.  unfortunately it memcmps the entire tipc_subscr
structure which has several bits that are private to the local side, so nothing
will ever match.  section 5.2 of the draft spec indicates the &lt;type,upper,lower&gt;
tuple should uniquely identify a subscriber, so convert subscr_cancel to just
match on those fields (properly endian swapped).

I've tested this using the tipc test suite, and its passed without issue.

Signed-off-by: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: Move &amp;&amp; and || to end of previous line</title>
<updated>2009-11-30T00:55:45Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2009-11-30T00:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f64f9e719261a87818dd192a3a2352e5b20fbd0f'/>
<id>urn:sha1:f64f9e719261a87818dd192a3a2352e5b20fbd0f</id>
<content type='text'>
Not including net/atm/

Compiled tested x86 allyesconfig only
Added a &gt; 80 column line or two, which I ignored.
Existing checkpatch plaints willfully, cheerfully ignored.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net/tipc/subscr.c: don't use ___constant_swab32</title>
<updated>2008-08-13T09:32:06Z</updated>
<author>
<name>Andrew Morton</name>
</author>
<published>2008-08-13T09:32:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ced0b3f1e1c089caf8798485423a093744b6a48'/>
<id>urn:sha1:6ced0b3f1e1c089caf8798485423a093744b6a48</id>
<content type='text'>
It's an internal implementation detail which we _should_ be free to change. 
So we did, and it promptly broke.

The compiler shold be able to work out when to use the __constant version
anyway.

Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: Cosmetic cleanup of topology service code</title>
<updated>2008-05-19T20:30:13Z</updated>
<author>
<name>Allan Stephens</name>
</author>
<published>2008-05-19T20:30:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a'/>
<id>urn:sha1:5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a</id>
<content type='text'>
This patch contains a set of cosmetic changes to TIPC's network
topology service subsystem, including:

- updates to comments (including copyright dates)
- re-ordering structure fields to group them more logically
- removal of optional debugging code that is no longer required
- minor changes to whitespace to conform to Linux coding conventions

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: Consolidate subscriber &amp; subscriber port references</title>
<updated>2008-05-19T20:29:47Z</updated>
<author>
<name>Allan Stephens</name>
</author>
<published>2008-05-19T20:29:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28353e7fad1d224687220a448950dc552645a50a'/>
<id>urn:sha1:28353e7fad1d224687220a448950dc552645a50a</id>
<content type='text'>
This patch modifies TIPC's network topology service so that it
only requires a single reference table entry per subscriber
connection, rather than two.  This is achieved by letting the
reference to the server port communicating with the subscriber
act as the reference to the subscriber object itself.  (Since
the subscriber cannot exist without its port, and vice versa,
this dual role for the reference is perfectly natural.)  This
consolidation reduces the size of the reference table by 50%
in the default configuration.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: Fix bug in topology server byte swapping routine</title>
<updated>2008-05-19T20:29:06Z</updated>
<author>
<name>Allan Stephens</name>
</author>
<published>2008-05-19T20:29:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc5ad582709ce9c7b9ab7b70c1e5b5e2cfc384db'/>
<id>urn:sha1:fc5ad582709ce9c7b9ab7b70c1e5b5e2cfc384db</id>
<content type='text'>
This patch fixes TIPC's topology server so that it does byte swapping
correctly when endianness conversion is required.  (Note: This bug only
impacted an application if it issues a subscription request to a
topology server on another node, rather than the server on it's own
node; since the topology server is normally not accessible by off-node
applications, most TIPC applications were not impacted by the bug.)

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: Add support for customized subscription endianness</title>
<updated>2008-05-19T20:28:32Z</updated>
<author>
<name>Allan Stephens</name>
</author>
<published>2008-05-19T20:28:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e9501f5188d90eed737240453c32cad01849c96'/>
<id>urn:sha1:8e9501f5188d90eed737240453c32cad01849c96</id>
<content type='text'>
This patch enables TIPC's topology server code to do customized
endianness conversions on a per-subscription basis.  (This
capability is needed to support the upcoming consolidation of
subscriber and subscription object references.)

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: Add support for customized subscription overlap handling</title>
<updated>2008-05-19T20:27:31Z</updated>
<author>
<name>Allan Stephens</name>
</author>
<published>2008-05-19T20:27:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e15f880409c807bb589e9492263564e80f0de6e9'/>
<id>urn:sha1:e15f880409c807bb589e9492263564e80f0de6e9</id>
<content type='text'>
This patch enables TIPC's topology server code to do customized
overlap detection handling on a per-subscription basis.  (This
capability is needed to support the upcoming introduction of
multi-cluster TIPC networks.)

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tipc: Fix race condition when creating socket or native port</title>
<updated>2008-05-12T22:42:28Z</updated>
<author>
<name>Allan Stephens</name>
</author>
<published>2008-05-12T22:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ef43ebaa538e0cc9063cbf84593a05091bcace2'/>
<id>urn:sha1:7ef43ebaa538e0cc9063cbf84593a05091bcace2</id>
<content type='text'>
This patch eliminates the (very remote) chance of a crash resulting
from a partially initialized socket or native port unexpectedly
receiving a message.  Now, during the creation of a socket or native
port, the underlying generic port's lock is not released until all
initialization required to handle incoming messages has been done.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
