<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/dccp/ccids, branch linux-2.6.24.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.24.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.24.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2007-12-20T21:59:39Z</updated>
<entry>
<title>[DCCP]: Spelling fixes</title>
<updated>2007-12-20T21:59:39Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2007-12-20T21:59:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e8e034cc5154abd639aa5c05d13e24e535c6a9c'/>
<id>urn:sha1:5e8e034cc5154abd639aa5c05d13e24e535c6a9c</id>
<content type='text'>
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>[DCCP]: Add missing "space"</title>
<updated>2007-11-20T07:46:02Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2007-11-20T07:46:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4756daa3b63e806d8ef093c8b4b5f56ee34250a2'/>
<id>urn:sha1:4756daa3b63e806d8ef093c8b4b5f56ee34250a2</id>
<content type='text'>
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>[CCID2/3]: Initialisation assignments of 0 are redundant</title>
<updated>2007-10-24T12:53:01Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-24T12:53:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24c667db59a9cc4caaafe4f77f6f4ef85899a454'/>
<id>urn:sha1:24c667db59a9cc4caaafe4f77f6f4ef85899a454</id>
<content type='text'>
Assigning initial values of `0' is redundant when loading a new CCID structure,
since in net/dccp/ccid.c the entire CCID structure is zeroed out prior to
initialisation in ccid_new():

    	struct ccid {
    		struct ccid_operations *ccid_ops;
    		char		       ccid_priv[0];
    	};

    	// ...
    	if (rx) {
    		memset(ccid + 1, 0, ccid_ops-&gt;ccid_hc_rx_obj_size);
    		if (ccid-&gt;ccid_ops-&gt;ccid_hc_rx_init != NULL &amp;&amp;
    		    ccid-&gt;ccid_ops-&gt;ccid_hc_rx_init(ccid, sk) != 0)
    			goto out_free_ccid;
    	} else {
    		memset(ccid + 1, 0, ccid_ops-&gt;ccid_hc_tx_obj_size);
    		/* analogous to the rx case */
    	}

This patch therefore removes the redundant assignments. Thanks to Arnaldo for
the inspiration.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Ian McDonald &lt;ian.mcdonald@jandi.co.nz&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Unaligned pointer access</title>
<updated>2007-10-24T12:46:58Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-24T12:46:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=76fd1e87d9456c8185b8df76ac5e533e0c8b39bb'/>
<id>urn:sha1:76fd1e87d9456c8185b8df76ac5e533e0c8b39bb</id>
<content type='text'>
This fixes `unaligned (read) access' errors of the type

Kernel unaligned access at TPC[100f970c] dccp_parse_options+0x4f4/0x7e0 [dccp]
Kernel unaligned access at TPC[1011f2e4] ccid3_hc_tx_parse_options+0x1ac/0x380 [dccp_ccid3]
Kernel unaligned access at TPC[100f9898] dccp_parse_options+0x680/0x880 [dccp]

by using the get_unaligned macro for parsing options.

Commiter note: Preserved the sparse __be{16,32} annotations.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Ian McDonald &lt;ian.mcdonald@jandi.co.nz&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
</content>
</entry>
<entry>
<title>[CCID2]: Sequence number wraparound issues</title>
<updated>2007-10-10T23:54:35Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-04T21:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e28599a6e45eb8ce7e50510b06c3a34ebf1a8fa'/>
<id>urn:sha1:5e28599a6e45eb8ce7e50510b06c3a34ebf1a8fa</id>
<content type='text'>
This replaces several uses of standard arithmetic with the DCCP
sequence number arithmetic functions. The problem here is that the
sequence number wrap-around was not taken into consideration.

 * Condition "seqp-&gt;ccid2s_seq &lt;= prev-&gt;ccid2s_seq" has been replaced
   by

   	dccp_delta_seqno(seqp-&gt;ccid2s_seq, prev-&gt;ccid2s_seq) &gt;= 0

   since if seqp is `before' prev, then the delta_seqno() is positive.

 * The test whether sequence numbers `a' and `b' are consecutive has
   the form

   	dccp_delta_seqno(a, b) == 1

 * Increment of ccid2hctx_rpseq could be done using dccp_inc_seqno(),
   but since here the incremented ccid2hctx_rpseq == seqno, used
   assignment instead.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CCID2]: Remove redundant case block</title>
<updated>2007-10-10T23:54:35Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-04T21:42:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c583248083c30c5305ec561e79f666ca465b376'/>
<id>urn:sha1:6c583248083c30c5305ec561e79f666ca465b376</id>
<content type='text'>
skb's passed to ccid2_hc_tx_send_packet() are headerless, the packet
type is decided later, in dccp_write_xmit(). Therefore the first test
of the switch/case block is always true, the others are never reached.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CCID2]: Remove redundant BUG_ON</title>
<updated>2007-10-10T23:54:34Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-04T21:41:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee196c2186d24d82088c94962598470e5abc081f'/>
<id>urn:sha1:ee196c2186d24d82088c94962598470e5abc081f</id>
<content type='text'>
This removes a test for `val &lt; 1' which would only have been triggered
when val &lt; 0, due to a preceding test for 0.  Fixed by using an
unsigned type for cwnd (as in TCP) instead.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CCID2]: Remove ugly BUG_ON</title>
<updated>2007-10-10T23:54:34Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-04T21:41:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d9e8931f93683e575679e41f188d3b465269f08'/>
<id>urn:sha1:7d9e8931f93683e575679e41f188d3b465269f08</id>
<content type='text'>
This removes an ugly BUG_ON which has been pointed out by Arnaldo.

Instead of freezing up the machine, a `critical' message is now issued
to the system log.

There is potential of doing this more gracefully (eg. there are a few
internal variables which could be updated despite the lack of memory),
but that requires more complicated changes to the algorithm; thus a
`FIXME' has been added.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CCID2]: Simplify interface</title>
<updated>2007-10-10T23:54:33Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-04T21:41:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd1f7d347c9e51f348119811bd41b74346ec57b8'/>
<id>urn:sha1:cd1f7d347c9e51f348119811bd41b74346ec57b8</id>
<content type='text'>
This patch simplifies the interface of ccid2_hc_tx_alloc_seq():

   * ccid2_hc_tx_alloc_seq() is always called with an argument of
     CCID2_SEQBUF_LEN;

   * other code - ccid2_hc_tx_check_sanity() - even depends on the
     assumption that ccid2_hc_tx_alloc_seq() has been called with this
     particular size;

   * passing the `gfp_t' argument to ccid2_hc_tx_alloc_seq() is
     redundant with gfp_any().

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Make all `debug' parameters bool</title>
<updated>2007-10-10T23:54:32Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2007-10-04T21:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=042d18f9f39a51716683b4e156fbee689314bb22'/>
<id>urn:sha1:042d18f9f39a51716683b4e156fbee689314bb22</id>
<content type='text'>
This just sets the parameter to bool, since debugging messages are
either on or off.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Ian McDonald &lt;ian.mcdonald@jandi.co.nz&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
