<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/l2tp/l2tp_debugfs.c, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-07-25T00:19:14Z</updated>
<entry>
<title>l2tp: WARN_ON rather than BUG_ON in l2tp_dfs_seq_start</title>
<updated>2020-07-25T00:19:14Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-24T15:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a379558c28c435681221aa5d84ead8ff19211be'/>
<id>urn:sha1:7a379558c28c435681221aa5d84ead8ff19211be</id>
<content type='text'>
l2tp_dfs_seq_start had a BUG_ON to catch a possible programming error in
l2tp_dfs_seq_open.

Since we can easily bail out of l2tp_dfs_seq_start, prefer to do that
and flag the error with a WARN_ON rather than crashing the kernel.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: check socket address type in l2tp_dfs_seq_tunnel_show</title>
<updated>2020-07-23T18:54:40Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-23T11:29:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=26d9a2710616c4499b661cada35ac5e4b125ebe8'/>
<id>urn:sha1:26d9a2710616c4499b661cada35ac5e4b125ebe8</id>
<content type='text'>
checkpatch warns about indentation and brace balancing around the
conditionally compiled code for AF_INET6 support in
l2tp_dfs_seq_tunnel_show.

By adding another check on the socket address type we can make the code
more readable while removing the checkpatch warning.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: cleanup comparisons to NULL</title>
<updated>2020-07-23T18:54:40Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-23T11:29:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0febc7b3cd17bd2323a036356c2ae6514acf9010'/>
<id>urn:sha1:0febc7b3cd17bd2323a036356c2ae6514acf9010</id>
<content type='text'>
checkpatch warns about comparisons to NULL, e.g.

        CHECK: Comparison to NULL could be written "!rt"
        #474: FILE: net/l2tp/l2tp_ip.c:474:
        +       if (rt == NULL) {

These sort of comparisons are generally clearer and more readable
the way checkpatch suggests, so update l2tp accordingly.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: prefer seq_puts for unformatted output</title>
<updated>2020-07-23T01:08:39Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-22T16:32:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdf9866e4b1be12a7af7eaf11f6dcf1b92f7073f'/>
<id>urn:sha1:bdf9866e4b1be12a7af7eaf11f6dcf1b92f7073f</id>
<content type='text'>
checkpatch warns about use of seq_printf where seq_puts would do.

Modify l2tp_debugfs accordingly.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: cleanup wonky alignment of line-broken function calls</title>
<updated>2020-07-23T01:08:39Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-22T16:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8ce9825a5993a935631a84b5cce9f65af61d4e59'/>
<id>urn:sha1:8ce9825a5993a935631a84b5cce9f65af61d4e59</id>
<content type='text'>
Arguments should be aligned with the function call open parenthesis as
per checkpatch.  Tweak some function calls which were not aligned
correctly.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: cleanup comments</title>
<updated>2020-07-23T01:08:39Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-22T16:32:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=20dcb1107ab1a3423c72a88269b9775cc549262a'/>
<id>urn:sha1:20dcb1107ab1a3423c72a88269b9775cc549262a</id>
<content type='text'>
Modify some l2tp comments to better adhere to kernel coding style, as
reported by checkpatch.pl.

Add descriptive comments for the l2tp per-net spinlocks to document
their use.

Fix an incorrect comment in l2tp_recv_common:

RFC2661 section 5.4 states that:

"The LNS controls enabling and disabling of sequence numbers by sending a
data message with or without sequence numbers present at any time during
the life of a session."

l2tp handles this correctly in l2tp_recv_common, but the comment around
the code was incorrect and confusing.  Fix up the comment accordingly.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: cleanup whitespace use</title>
<updated>2020-07-23T01:08:39Z</updated>
<author>
<name>Tom Parkin</name>
</author>
<published>2020-07-22T16:32:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b71a61ccfebb4ff733d2d9fc66cd5c75b7ae46a2'/>
<id>urn:sha1:b71a61ccfebb4ff733d2d9fc66cd5c75b7ae46a2</id>
<content type='text'>
Fix up various whitespace issues as reported by checkpatch.pl:

 * remove spaces around operators where appropriate,
 * add missing blank lines following declarations,
 * remove multiple blank lines, or trailing blank lines at the end of
   functions.

Signed-off-by: Tom Parkin &lt;tparkin@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>l2tp: no need to check return value of debugfs_create functions</title>
<updated>2019-06-14T15:45:05Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2019-06-14T07:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3adcfa4478661463dd8eb91f3717c5bdd77633eb'/>
<id>urn:sha1:3adcfa4478661463dd8eb91f3717c5bdd77633eb</id>
<content type='text'>
When calling debugfs functions, there is no need to ever check the
return value.  The function can work or not, but the code logic should
never do something different based on this.

Also, there is no need to store the individual debugfs file name, just
remove the whole directory all at once, saving a local variable.

Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
Cc: netdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Acked-by: Guillaume Nault &lt;gnault@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152</title>
<updated>2019-05-30T18:26:32Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2019-05-27T06:55:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2874c5fd284268364ece81a7bd936f3c8168e567'/>
<id>urn:sha1:2874c5fd284268364ece81a7bd936f3c8168e567</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license as published by
  the free software foundation either version 2 of the license or at
  your option any later version

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-or-later

has been chosen to replace the boilerplate/reference in 3029 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>l2tp: ignore L2TP_ATTR_MTU</title>
<updated>2018-08-03T17:03:57Z</updated>
<author>
<name>Guillaume Nault</name>
</author>
<published>2018-08-03T10:38:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e9697e2effad50c0081b3c72002d3975f8ab4347'/>
<id>urn:sha1:e9697e2effad50c0081b3c72002d3975f8ab4347</id>
<content type='text'>
This attribute's handling is broken. It can only be used when creating
Ethernet pseudo-wires, in which case its value can be used as the
initial MTU for the l2tpeth device.
However, when handling update requests, L2TP_ATTR_MTU only modifies
session-&gt;mtu. This value is never propagated to the l2tpeth device.
Dump requests also return the value of session-&gt;mtu, which is not
synchronised anymore with the device MTU.

The same problem occurs if the device MTU is properly updated using the
generic IFLA_MTU attribute. In this case, session-&gt;mtu is not updated,
and L2TP_ATTR_MTU will report an invalid value again when dumping the
session.

It does not seem worthwhile to complexify l2tp_eth.c to synchronise
session-&gt;mtu with the device MTU. Even the ip-l2tp manpage advises to
use 'ip link' to initialise the MTU of l2tpeth devices (iproute2 does
not handle L2TP_ATTR_MTU at all anyway). So let's just ignore it
entirely.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
