]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2019 17:01:37 +0000 (18:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2019 17:01:37 +0000 (18:01 +0100)
added patches:
net-devlink-select-net_devlink-from-drivers.patch

queue-4.19/net-devlink-select-net_devlink-from-drivers.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/net-devlink-select-net_devlink-from-drivers.patch b/queue-4.19/net-devlink-select-net_devlink-from-drivers.patch
new file mode 100644 (file)
index 0000000..8b7b424
--- /dev/null
@@ -0,0 +1,61 @@
+From f6b19b354d50c5ae46ad66b5273f92e563fbc847 Mon Sep 17 00:00:00 2001
+From: Jiri Pirko <jiri@mellanox.com>
+Date: Sun, 24 Mar 2019 11:14:38 +0100
+Subject: net: devlink: select NET_DEVLINK from drivers
+
+From: Jiri Pirko <jiri@mellanox.com>
+
+commit f6b19b354d50c5ae46ad66b5273f92e563fbc847 upstream.
+
+Some drivers are becoming more dependent on NET_DEVLINK being selected
+in configuration. With upcoming compat functions, the behavior would be
+wrong in case devlink was not compiled in. So make the drivers select
+NET_DEVLINK and rely on the functions being there, not just stubs.
+
+Signed-off-by: Jiri Pirko <jiri@mellanox.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+[only backport 3 select NET_DEVLINK lines of original patch, to resolve
+ build issues - gregkh]
+Cc: Guenter Roeck <linux@roeck-us.net>
+Cc: Chris Paterson <Chris.Paterson2@renesas.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/ethernet/mellanox/mlx4/Kconfig      |    1 +
+ drivers/net/ethernet/mellanox/mlx5/core/Kconfig |    2 +-
+ drivers/net/ethernet/mellanox/mlxsw/Kconfig     |    2 +-
+ 3 files changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/ethernet/mellanox/mlx4/Kconfig
++++ b/drivers/net/ethernet/mellanox/mlx4/Kconfig
+@@ -27,6 +27,7 @@ config MLX4_EN_DCB
+ config MLX4_CORE
+       tristate
+       depends on PCI
++      select NET_DEVLINK
+       default n
+ config MLX4_DEBUG
+--- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
++++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
+@@ -4,8 +4,8 @@
+ config MLX5_CORE
+       tristate "Mellanox 5th generation network adapters (ConnectX series) core driver"
+-      depends on MAY_USE_DEVLINK
+       depends on PCI
++      select NET_DEVLINK
+       imply PTP_1588_CLOCK
+       imply VXLAN
+       imply MLXFW
+--- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig
++++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig
+@@ -4,7 +4,7 @@
+ config MLXSW_CORE
+       tristate "Mellanox Technologies Switch ASICs support"
+-      depends on MAY_USE_DEVLINK
++      select NET_DEVLINK
+       ---help---
+         This driver supports Mellanox Technologies Switch ASICs family.
index 2be13ba1746b2fdb61409f0a7483f8757a15cc51..2bc732b7660e830705da2461e1af2c4b3fc45c32 100644 (file)
@@ -7,6 +7,7 @@ net-gemini-add-missed-free_netdev.patch
 net-usb-qmi_wwan-add-support-for-foxconn-t77w968-lte-modules.patch
 slip-fix-memory-leak-in-slip_open-error-path.patch
 devlink-disallow-reload-operation-during-device-cleanup.patch
+net-devlink-select-net_devlink-from-drivers.patch
 alsa-usb-audio-fix-missing-error-check-at-mixer-resolution-test.patch
 alsa-usb-audio-not-submit-urb-for-stopped-endpoint.patch
 alsa-usb-audio-fix-incorrect-null-check-in-create_yamaha_midi_quirk.patch