<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/net/ethtool/debug.c, branch linux-6.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.13.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.13.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2023-08-15T22:01:03Z</updated>
<entry>
<title>ethtool: netlink: always pass genl_info to .prepare_data</title>
<updated>2023-08-15T22:01:03Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-08-14T21:47:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f946270d05c26044c67511ef5a9d91e06962d79f'/>
<id>urn:sha1:f946270d05c26044c67511ef5a9d91e06962d79f</id>
<content type='text'>
We had a number of bugs in the past because developers forgot
to fully test dumps, which pass NULL as info to .prepare_data.
.prepare_data implementations would try to access info-&gt;extack
leading to a null-deref.

Now that dumps and notifications can access struct genl_info
we can pass it in, and remove the info null checks.

Reviewed-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Tested-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt; # pause
Reviewed-by: Jiri Pirko &lt;jiri@nvidia.com&gt;
Link: https://lore.kernel.org/r/20230814214723.2924989-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>ethtool: netlink: convert commands to common SET</title>
<updated>2023-01-27T12:24:32Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-01-25T23:05:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=04007961bfaf76894b65de2af67f96d9d1fa82cf'/>
<id>urn:sha1:04007961bfaf76894b65de2af67f96d9d1fa82cf</id>
<content type='text'>
Convert all SET commands where new common code is applicable.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: use ethnl_parse_header_dev_put()</title>
<updated>2021-12-15T10:27:47Z</updated>
<author>
<name>Eric Dumazet</name>
<email>edumazet@google.com</email>
</author>
<published>2021-12-14T08:42:30Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=34ac17ecbf575eb079094d44f1bd30c66897aa21'/>
<id>urn:sha1:34ac17ecbf575eb079094d44f1bd30c66897aa21</id>
<content type='text'>
It seems I missed that most ethnl_parse_header_dev_get() callers
declare an on-stack struct ethnl_req_info, and that they simply call
dev_put(req_info.dev) when about to return.

Add ethnl_parse_header_dev_put() helper to properly untrack
reference taken by ethnl_parse_header_dev_get().

Fixes: e4b8954074f6 ("netlink: add net device refcount tracker to struct ethnl_req_info")
Signed-off-by: Eric Dumazet &lt;edumazet@google.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: link up ethnl_header_policy as a nested policy</title>
<updated>2020-10-06T13:25:55Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2020-10-05T22:07:36Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=329d9c333ee4a904341d555b72cd6218f4104d53'/>
<id>urn:sha1:329d9c333ee4a904341d555b72cd6218f4104d53</id>
<content type='text'>
To get the most out of parsing by the core, and to allow dumping
full policies we need to specify which policy applies to nested
attrs. For headers it's ethnl_header_policy.

$ sed -i 's@\(ETHTOOL_A_.*HEADER\].*=\) { .type = NLA_NESTED },@\1\n\t\tNLA_POLICY_NESTED(ethnl_header_policy),@' net/ethtool/*

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: trim policy tables</title>
<updated>2020-10-06T13:25:55Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2020-10-05T22:07:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ff419afa43109e05d42d75629f21d9fd87f635ea'/>
<id>urn:sha1:ff419afa43109e05d42d75629f21d9fd87f635ea</id>
<content type='text'>
Since ethtool uses strict attribute validation there's no need
to initialize all attributes in policy tables. 0 is NLA_UNSPEC
which is going to be rejected. Remove the NLA_REJECTs.

Similarly attributes above maxattrs are rejected, so there's
no need to always size the policy tables to ETHTOOL_A_..._MAX.

v2: - new patch

Suggested-by: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: wire up set policies to ops</title>
<updated>2020-10-06T13:25:55Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2020-10-05T22:07:34Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5028588b62cbda74744f4f28b35f618e5b1078ef'/>
<id>urn:sha1:5028588b62cbda74744f4f28b35f618e5b1078ef</id>
<content type='text'>
Similarly to get commands wire up the policies of set commands
to get parsing by the core and policy dumps.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: wire up get policies to ops</title>
<updated>2020-10-06T13:25:55Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2020-10-05T22:07:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=4f30974feb9667f12e224b195b551a170fcc8723'/>
<id>urn:sha1:4f30974feb9667f12e224b195b551a170fcc8723</id>
<content type='text'>
Wire up policies for get commands in struct nla_policy of the ethtool
family. Make use of genetlink code attr validation and parsing, as well
as allow dumping policies to user space.

For every ETHTOOL_MSG_*_GET:
 - add 'ethnl_' prefix to policy name
 - add extern declaration in net/ethtool/netlink.h
 - wire up the policy &amp; attr in ethtool_genl_ops[].
 - remove .request_policy and .max_attr from ethnl_request_ops.

Obviously core only records the first "layer" of parsed attrs
so we still need to parse the sub-attrs of the nested header
attribute.

v2:
 - merge of patches 1 and 2 from v1
 - remove stray empty lines in ops
 - also remove .max_attr

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2020-03-26T01:58:11Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2020-03-26T01:58:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9fb16955fb661945ddffce4504dcffbe55cd518a'/>
<id>urn:sha1:9fb16955fb661945ddffce4504dcffbe55cd518a</id>
<content type='text'>
Overlapping header include additions in macsec.c

A bug fix in 'net' overlapping with the removal of 'version'
string in ena_netdev.c

Overlapping test additions in selftests Makefile

Overlapping PCI ID table adjustments in iwlwifi driver.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: fix reference leak in some *_SET handlers</title>
<updated>2020-03-24T04:50:14Z</updated>
<author>
<name>Michal Kubecek</name>
<email>mkubecek@suse.cz</email>
</author>
<published>2020-03-22T21:24:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=2f599ec422ad6634fb5ad43748b9969ca9d742bd'/>
<id>urn:sha1:2f599ec422ad6634fb5ad43748b9969ca9d742bd</id>
<content type='text'>
Andrew noticed that some handlers for *_SET commands leak a netdev
reference if required ethtool_ops callbacks do not exist. A simple
reproducer would be e.g.

  ip link add veth1 type veth peer name veth2
  ethtool -s veth1 wol g
  ip link del veth1

Make sure dev_put() is called when ethtool_ops check fails.

v2: add Fixes tags

Fixes: a53f3d41e4d3 ("ethtool: set link settings with LINKINFO_SET request")
Fixes: bfbcfe2032e7 ("ethtool: set link modes related data with LINKMODES_SET request")
Fixes: e54d04e3afea ("ethtool: set message mask with DEBUG_SET request")
Fixes: 8d425b19b305 ("ethtool: set wake-on-lan settings with WOL_SET request")
Reported-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: Michal Kubecek &lt;mkubecek@suse.cz&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Reviewed-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get()</title>
<updated>2020-03-12T22:32:32Z</updated>
<author>
<name>Michal Kubecek</name>
<email>mkubecek@suse.cz</email>
</author>
<published>2020-03-12T20:07:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=98130546da115a8aab663bc0c0971cc0bcc50542'/>
<id>urn:sha1:98130546da115a8aab663bc0c0971cc0bcc50542</id>
<content type='text'>
Andrew Lunn pointed out that even if it's documented that
ethnl_parse_header() takes reference to network device if it fills it
into the target structure, its name doesn't make it apparent so that
corresponding dev_put() looks like mismatched.

Rename the function ethnl_parse_header_dev_get() to indicate that it
takes a reference.

Suggested-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: Michal Kubecek &lt;mkubecek@suse.cz&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
.y&amp;id=7ea502e1d885966cb5912b4488255d8c12645042'>MIPS: X1000: Add X1000 system type.</a></td><td>Zhou Yanjie</td></tr>
<tr><td><span title='2019-07-22 14:28:40 -0700'>2019-07-22</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=f23478f6ea2ed6c8dccc6f7b902c2362ebc197ef'>MIPS: qi_lb60: Move MMC configuration to devicetree</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2019-07-17 10:07:48 -0700'>2019-07-17</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=916f562fb28a49457d3d99d156ca415b50d6750e'>Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cl...</a></td><td>Linus Torvalds</td></tr>
<tr><td><span title='2019-07-17 09:42:03 -0700'>2019-07-17</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=fa121bb3fed6313b1f0af23952301e06cf6d32ed'>Merge tag 'mips_5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux</a></td><td>Linus Torvalds</td></tr>
<tr><td><span title='2019-06-25 15:44:47 -0700'>2019-06-25</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=4abf9adc12c6ed4df158029a7381a0004d10117a'>MIPS: Remove dead code</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2019-06-25 15:43:36 -0700'>2019-06-25</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=32ebc193cda650ad089d04b8ac14324264c5420b'>MIPS: jz4740: PM: Let CGU driver suspend clocks and set sleep mode</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2019-06-11 15:18:20 -0700'>2019-06-11</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=1323c3b72a987de57141cabc44bf9cd83656bc70'>MIPS: lb60: Fix pin mappings</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2019-05-30 11:26:28 -0700'>2019-05-30</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=a912e80bd0bbfec053ccfdca625c2c760a8b08e8'>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 151</a></td><td>Thomas Gleixner</td></tr>
<tr><td><span title='2019-05-21 11:28:40 +0200'>2019-05-21</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=3a63cbb8db7178550c7b428c98532b35853d1f40'>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 3</a></td><td>Thomas Gleixner</td></tr>
<tr><td><span title='2019-02-21 15:55:41 -0800'>2019-02-21</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=15205fc05482ba3d9574ded5bd4508f240f6ff52'>MIPS: ingenic: Add support for appended devicetree</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-12-17 08:26:24 +0100'>2018-12-17</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=0f6f3235b816ef7e6692d6f31920bf6aa2d1623d'>mmc: jz4740: Use GPIO descriptor for power</a></td><td>Linus Walleij</td></tr>
<tr><td><span title='2018-12-17 08:26:24 +0100'>2018-12-17</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=0c901c0566fb4edc2631c3786e5085a037be91f8'>mmc: jz4740: Get CD/WP GPIOs from descriptors</a></td><td>Linus Walleij</td></tr>
<tr><td><span title='2018-08-14 10:57:44 -0700'>2018-08-14</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=c2fc71c9b74c1e87336a27dba1a5edc69d2690f1'>Merge tag 'mtd/for-4.19' of git://git.infradead.org/linux-mtd</a></td><td>Linus Torvalds</td></tr>
<tr><td><span title='2018-07-23 17:35:19 -0700'>2018-07-23</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=c6ea7e9747318e5a6774995f4f8e3e0f7c0fa8ba'>MIPS: jz4740: Bump zload address</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-07-18 10:10:23 +0200'>2018-07-18</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=e65e3a50702f4e7a01c0b36ff08d6ed8dde7ee7b'>MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740</a></td><td>Boris Brezillon</td></tr>
<tr><td><span title='2018-05-14 23:58:23 +0100'>2018-05-14</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=1761ad8c9e7985817b037c9a534fbbca452a7fda'>MIPS: JZ4740: Drop old platform reset code</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-05-14 23:58:23 +0100'>2018-05-14</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=fbc23c71dfc9406ee0585d058edd834b523ef0e7'>MIPS: JZ4740: dts: Add bindings for the jz4740-wdt driver</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-02-14 16:02:41 +0000'>2018-02-14</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=9b00bc7b901ff672a9252002d3810fdf9489bc64'>spi: spi-gpio: Rewrite to use GPIO descriptors</a></td><td>Linus Walleij</td></tr>
<tr><td><span title='2018-01-18 22:08:10 +0000'>2018-01-18</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=590c1f0f04336b92c802b94e2506efec5f6735f6'>MIPS: ingenic: Initial GCW Zero support</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-01-18 22:07:31 +0000'>2018-01-18</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=9be5f3e92ed5a4176bb4d99b498dc87aaafa622b'>MIPS: ingenic: Initial JZ4770 support</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-01-18 22:07:24 +0000'>2018-01-18</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=ce0d60f731f0011a3e0b6e7d17a01f229313d2a0'>MIPS: ingenic: Detect machtype from SoC compatible string</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2018-01-18 22:07:09 +0000'>2018-01-18</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=e08a48d9250184d8ce6dc6c728b2ca68d7f40f35'>MIPS: ingenic: Use common cmdline handling code</a></td><td>Paul Burton</td></tr>
<tr><td><span title='2017-11-02 11:10:55 +0100'>2017-11-02</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=b24413180f5600bcb3bb70fbed5cf186b60864bd'>License cleanup: add SPDX GPL-2.0 license identifier to files with no license</a></td><td>Greg Kroah-Hartman</td></tr>
<tr><td><span title='2017-05-22 17:26:34 +0200'>2017-05-22</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=e25f2af64679581f22b3b9a4681964bd0bb8e417'>MIPS: jz4740: Remove custom GPIO code</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2017-05-22 17:25:11 +0200'>2017-05-22</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=636f8ba67fb606a4a0ab4deedb39c71d1ea5dc8a'>MIPS: JZ4740: Qi LB60: Add pinctrl configuration for several drivers</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2017-04-14 13:11:16 -0700'>2017-04-14</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=e4db9253d6b4c1d927254f1c4bef875573229502'>MIPS: clockevent drivers: Set -&gt;min_delta_ticks and -&gt;max_delta_ticks</a></td><td>Nicolai Stange</td></tr>
<tr><td><span title='2017-02-14 09:00:25 +0000'>2017-02-14</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=26dd3e4ff9ac1aa576c97d23d7425d2544dbc5bf'>MIPS: Audit and remove any unnecessary uses of module.h</a></td><td>Paul Gortmaker</td></tr>
<tr><td><span title='2016-12-25 11:04:12 +0100'>2016-12-25</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=a5a1d1c2914b5316924c7893eb683a5420ebd3be'>clocksource: Use a plain u64 instead of cycle_t</a></td><td>Thomas Gleixner</td></tr>
<tr><td><span title='2016-11-05 00:02:02 +0100'>2016-11-05</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=d839c60ac55681494d7f96c0c278eccc3eac3918'>MIPS: jz4740: Remove obsolete code</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2016-11-05 00:02:01 +0100'>2016-11-05</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=6ab59018370345b0909af7c1f24553b2608c5fbc'>MIPS: qi_lb60: Probe RTC driver from DT and use it as power controller</a></td><td>Paul Cercueil</td></tr>
<tr><td><span title='2016-08-04 08:50:07 -0400'>2016-08-04</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=97f2645f358b411ba2afb22e5966753f0ad92916'>tree-wide: replace config_enabled() with IS_ENABLED()</a></td><td>Masahiro Yamada</td></tr>
<tr><td><span title='2016-06-23 15:00:29 -0500'>2016-06-23</span></td><td><a href='/distro/kernel/commit/arch/mips/jz4740?h=linux-6.6.y&amp;id=ddd0ce87bfdebbc92c639286a2bf1241f335e6c8'>mips: Remove unnecessary of_platform_populate with default match table</a></td><td>Kefeng Wang</td></tr>
