<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net, branch v5.8</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.8</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2020-08-01T18:49:18Z</updated>
<entry>
<title>vxlan: fix memleak of fdb</title>
<updated>2020-08-01T18:49:18Z</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2020-08-01T07:07:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fda2ec62cf1aa7cbee52289dc8059cd3662795da'/>
<id>urn:sha1:fda2ec62cf1aa7cbee52289dc8059cd3662795da</id>
<content type='text'>
When vxlan interface is deleted, all fdbs are deleted by vxlan_flush().
vxlan_flush() flushes fdbs but it doesn't delete fdb, which contains
all-zeros-mac because it is deleted by vxlan_uninit().
But vxlan_uninit() deletes only the fdb, which contains both all-zeros-mac
and default vni.
So, the fdb, which contains both all-zeros-mac and non-default vni
will not be deleted.

Test commands:
    ip link add vxlan0 type vxlan dstport 4789 external
    ip link set vxlan0 up
    bridge fdb add to 00:00:00:00:00:00 dst 172.0.0.1 dev vxlan0 via lo \
	    src_vni 10000 self permanent
    ip link del vxlan0

kmemleak reports as follows:
unreferenced object 0xffff9486b25ced88 (size 96):
  comm "bridge", pid 2151, jiffies 4294701712 (age 35506.901s)
  hex dump (first 32 bytes):
    02 00 00 00 ac 00 00 01 40 00 09 b1 86 94 ff ff  ........@.......
    46 02 00 00 00 00 00 00 a7 03 00 00 12 b5 6a 6b  F.............jk
  backtrace:
    [&lt;00000000c10cf651&gt;] vxlan_fdb_append.part.51+0x3c/0xf0 [vxlan]
    [&lt;000000006b31a8d9&gt;] vxlan_fdb_create+0x184/0x1a0 [vxlan]
    [&lt;0000000049399045&gt;] vxlan_fdb_update+0x12f/0x220 [vxlan]
    [&lt;0000000090b1ef00&gt;] vxlan_fdb_add+0x12a/0x1b0 [vxlan]
    [&lt;0000000056633c2c&gt;] rtnl_fdb_add+0x187/0x270
    [&lt;00000000dd5dfb6b&gt;] rtnetlink_rcv_msg+0x264/0x490
    [&lt;00000000fc44dd54&gt;] netlink_rcv_skb+0x4a/0x110
    [&lt;00000000dff433e7&gt;] netlink_unicast+0x18e/0x250
    [&lt;00000000b87fb421&gt;] netlink_sendmsg+0x2e9/0x400
    [&lt;000000002ed55153&gt;] ____sys_sendmsg+0x237/0x260
    [&lt;00000000faa51c66&gt;] ___sys_sendmsg+0x88/0xd0
    [&lt;000000006c3982f1&gt;] __sys_sendmsg+0x4e/0x80
    [&lt;00000000a8f875d2&gt;] do_syscall_64+0x56/0xe0
    [&lt;000000003610eefa&gt;] entry_SYSCALL_64_after_hwframe+0x44/0xa9
unreferenced object 0xffff9486b1c40080 (size 128):
  comm "bridge", pid 2157, jiffies 4294701754 (age 35506.866s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 f8 dc 42 b2 86 94 ff ff  ..........B.....
    6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
  backtrace:
    [&lt;00000000a2981b60&gt;] vxlan_fdb_create+0x67/0x1a0 [vxlan]
    [&lt;0000000049399045&gt;] vxlan_fdb_update+0x12f/0x220 [vxlan]
    [&lt;0000000090b1ef00&gt;] vxlan_fdb_add+0x12a/0x1b0 [vxlan]
    [&lt;0000000056633c2c&gt;] rtnl_fdb_add+0x187/0x270
    [&lt;00000000dd5dfb6b&gt;] rtnetlink_rcv_msg+0x264/0x490
    [&lt;00000000fc44dd54&gt;] netlink_rcv_skb+0x4a/0x110
    [&lt;00000000dff433e7&gt;] netlink_unicast+0x18e/0x250
    [&lt;00000000b87fb421&gt;] netlink_sendmsg+0x2e9/0x400
    [&lt;000000002ed55153&gt;] ____sys_sendmsg+0x237/0x260
    [&lt;00000000faa51c66&gt;] ___sys_sendmsg+0x88/0xd0
    [&lt;000000006c3982f1&gt;] __sys_sendmsg+0x4e/0x80
    [&lt;00000000a8f875d2&gt;] do_syscall_64+0x56/0xe0
    [&lt;000000003610eefa&gt;] entry_SYSCALL_64_after_hwframe+0x44/0xa9

Fixes: 3ad7a4b141eb ("vxlan: support fdb and learning in COLLECT_METADATA mode")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Acked-by: Roopa Prabhu &lt;roopa@cumulusnetworks.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge tag 'mlx5-fixes-2020-07-30' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux</title>
<updated>2020-08-01T00:05:54Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2020-08-01T00:05:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e535d87d8b4f85fe1659aa38c8fb75226b56eec5'/>
<id>urn:sha1:e535d87d8b4f85fe1659aa38c8fb75226b56eec5</id>
<content type='text'>
Saeed Mahameed says:

====================
Mellanox, mlx5 fixes 2020-07-30

This small patchset introduces some fixes to mlx5 driver.

Please pull and let me know if there is any problem.

For -stable v4.18:
 ('net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq')

For -stable v5.7:
 ('net/mlx5e: E-Switch, Add misc bit when misc fields changed for mirroring')
====================

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-queue</title>
<updated>2020-07-31T23:51:58Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2020-07-31T23:51:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=dc096288d579c82efbf6f82a5d895fed6e41e5a6'/>
<id>urn:sha1:dc096288d579c82efbf6f82a5d895fed6e41e5a6</id>
<content type='text'>
Tony Nguyen says:

====================
Intel Wired LAN Driver Updates 2020-07-30

This series contains updates to the e1000e and igb drivers.

Aaron Ma allows PHY initialization to continue if ULP disable failed for
e1000e.

Francesco Ruggeri fixes race conditions in igb reset that could cause panics.
====================

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq</title>
<updated>2020-07-31T01:53:55Z</updated>
<author>
<name>Xin Xiong</name>
<email>xiongx18@fudan.edu.cn</email>
</author>
<published>2020-07-30T10:29:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e692139e6af339a1495ef401b2d95f7f9d1c7a44'/>
<id>urn:sha1:e692139e6af339a1495ef401b2d95f7f9d1c7a44</id>
<content type='text'>
The function invokes bpf_prog_inc(), which increases the reference
count of a bpf_prog object "rq-&gt;xdp_prog" if the object isn't NULL.

The refcount leak issues take place in two error handling paths. When
either mlx5_wq_ll_create() or mlx5_wq_cyc_create() fails, the function
simply returns the error code and forgets to drop the reference count
increased earlier, causing a reference count leak of "rq-&gt;xdp_prog".

Fix this issue by jumping to the error handling path err_rq_wq_destroy
while either function fails.

Fixes: 422d4c401edd ("net/mlx5e: RX, Split WQ objects for different RQ types")
Signed-off-by: Xin Xiong &lt;xiongx18@fudan.edu.cn&gt;
Signed-off-by: Xiyu Yang &lt;xiyuyang19@fudan.edu.cn&gt;
Signed-off-by: Xin Tan &lt;tanxin.ctf@gmail.com&gt;
Signed-off-by: Saeed Mahameed &lt;saeedm@mellanox.com&gt;
</content>
</entry>
<entry>
<title>net/mlx5e: E-Switch, Specify flow_source for rule with no in_port</title>
<updated>2020-07-31T01:53:53Z</updated>
<author>
<name>Jianbo Liu</name>
<email>jianbol@mellanox.com</email>
</author>
<published>2020-07-03T02:34:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6f7bbad18e8343da6318654f408dea0ccd6efb00'/>
<id>urn:sha1:6f7bbad18e8343da6318654f408dea0ccd6efb00</id>
<content type='text'>
The flow_source must be specified, even for rule without matching
source vport, because some actions are only allowed in uplink.
Otherwise, rule can't be offloaded and firmware syndrome happens.

Fixes: 6fb0701a9cfa ("net/mlx5: E-Switch, Add support for offloading rules with no in_port")
Signed-off-by: Jianbo Liu &lt;jianbol@mellanox.com&gt;
Reviewed-by: Chris Mi &lt;chrism@mellanox.com&gt;
Reviewed-by: Roi Dayan &lt;roid@mellanox.com&gt;
Signed-off-by: Saeed Mahameed &lt;saeedm@mellanox.com&gt;
</content>
</entry>
<entry>
<title>net/mlx5e: E-Switch, Add misc bit when misc fields changed for mirroring</title>
<updated>2020-07-31T01:53:50Z</updated>
<author>
<name>Jianbo Liu</name>
<email>jianbol@mellanox.com</email>
</author>
<published>2020-07-02T01:06:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0faddfe6b7953e224a1283f89f671ef6a9ba73de'/>
<id>urn:sha1:0faddfe6b7953e224a1283f89f671ef6a9ba73de</id>
<content type='text'>
The modified flow_context fields in FTE must be indicated in
modify_enable bitmask. Previously, the misc bit in modify_enable is
always set as source vport must be set for each rule. So, when parsing
vxlan/gre/geneve/qinq rules, this bit is not set because those are all
from the same misc fileds that source vport fields are located at, and
we don't need to set the indicator twice.

After adding per vport tables for mirroring, misc bit is not set, then
firmware syndrome happens. To fix it, set the bit wherever misc fileds
are changed. This also makes it unnecessary to check misc fields and set
the misc bit accordingly in metadata matching, so here remove it.

Besides, flow_source must be specified for uplink because firmware
will check it and some actions are only allowed for packets received
from uplink.

Fixes: 96e326878fa5 ("net/mlx5e: Eswitch, Use per vport tables for mirroring")
Signed-off-by: Jianbo Liu &lt;jianbol@mellanox.com&gt;
Reviewed-by: Chris Mi &lt;chrism@mellanox.com&gt;
Reviewed-by: Roi Dayan &lt;roid@mellanox.com&gt;
Signed-off-by: Saeed Mahameed &lt;saeedm@mellanox.com&gt;
</content>
</entry>
<entry>
<title>net/mlx5e: CT: Support restore ipv6 tunnel</title>
<updated>2020-07-31T01:53:47Z</updated>
<author>
<name>Jianbo Liu</name>
<email>jianbol@mellanox.com</email>
</author>
<published>2020-07-20T01:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=01cefbbe2c51fa94d4221ca63d236907c5e19fe3'/>
<id>urn:sha1:01cefbbe2c51fa94d4221ca63d236907c5e19fe3</id>
<content type='text'>
Currently the driver restores only IPv4 tunnel headers.
Add support for restoring IPv6 tunnel header.

Fixes: b8ce90370977 ("net/mlx5e: Restore tunnel metadata on miss")
Signed-off-by: Jianbo Liu &lt;jianbol@mellanox.com&gt;
Reviewed-by: Roi Dayan &lt;roid@mellanox.com&gt;
Reviewed-by: Oz Shlomo &lt;ozsh@mellanox.com&gt;
Signed-off-by: Saeed Mahameed &lt;saeedm@mellanox.com&gt;
</content>
</entry>
<entry>
<title>net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_port_probe()</title>
<updated>2020-07-31T00:45:13Z</updated>
<author>
<name>Wang Hai</name>
<email>wanghai38@huawei.com</email>
</author>
<published>2020-07-30T07:30:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=85496a29224188051b6135eb38da8afd4c584765'/>
<id>urn:sha1:85496a29224188051b6135eb38da8afd4c584765</id>
<content type='text'>
Fix the missing clk_disable_unprepare() before return
from gemini_ethernet_port_probe() in the error handling case.

Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Wang Hai &lt;wanghai38@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ionic: unlock queue mutex in error path</title>
<updated>2020-07-31T00:37:16Z</updated>
<author>
<name>Shannon Nelson</name>
<email>snelson@pensando.io</email>
</author>
<published>2020-07-29T17:52:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=59929fbb45e06da7d501d3a97f10a91912181f7c'/>
<id>urn:sha1:59929fbb45e06da7d501d3a97f10a91912181f7c</id>
<content type='text'>
On an error return, jump to the unlock at the end to be sure
to unlock the queue_lock mutex.

Fixes: 0925e9db4dc8 ("ionic: use mutex to protect queue operations")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Reported-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Shannon Nelson &lt;snelson@pensando.io&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mtk_eth_soc: fix MTU warnings</title>
<updated>2020-07-30T23:56:30Z</updated>
<author>
<name>Landen Chao</name>
<email>landen.chao@mediatek.com</email>
</author>
<published>2020-07-29T08:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=555a893303872e044fb86f0a5834ce78d41ad2e2'/>
<id>urn:sha1:555a893303872e044fb86f0a5834ce78d41ad2e2</id>
<content type='text'>
in recent kernel versions there are warnings about incorrect MTU size
like these:

eth0: mtu greater than device maximum
mtk_soc_eth 1b100000.ethernet eth0: error -22 setting MTU to include DSA overhead

Fixes: bfcb813203e6 ("net: dsa: configure the MTU for switch ports")
Fixes: 72579e14a1d3 ("net: dsa: don't fail to probe if we couldn't set the MTU")
Fixes: 7a4c53bee332 ("net: report invalid mtu value via netlink extack")
Signed-off-by: Landen Chao &lt;landen.chao@mediatek.com&gt;
Signed-off-by: Frank Wunderlich &lt;frank-w@public-files.de&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
