* [PATCH 1/1] net: usb: qmi_wwan: allow qmimux add/del with master up
@ 2021-03-04 13:15 Daniele Palmas
2021-03-04 17:48 ` Bjørn Mork
2021-03-04 22:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Daniele Palmas @ 2021-03-04 13:15 UTC (permalink / raw)
To: Bjørn Mork, David S . Miller, Jakub Kicinski
Cc: netdev, linux-usb, Aleksander Morgado, Daniele Palmas
There's no reason for preventing the creation and removal
of qmimux network interfaces when the underlying interface
is up.
This makes qmi_wwan mux implementation more similar to the
rmnet one, simplifying userspace management of the same
logical interfaces.
Fixes: c6adf77953bc ("net: usb: qmi_wwan: add qmap mux protocol support")
Reported-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
---
drivers/net/usb/qmi_wwan.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index 17a050521b86..6700f1970b24 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -429,13 +429,6 @@ static ssize_t add_mux_store(struct device *d, struct device_attribute *attr, c
goto err;
}
- /* we don't want to modify a running netdev */
- if (netif_running(dev->net)) {
- netdev_err(dev->net, "Cannot change a running device\n");
- ret = -EBUSY;
- goto err;
- }
-
ret = qmimux_register_device(dev->net, mux_id);
if (!ret) {
info->flags |= QMI_WWAN_FLAG_MUX;
@@ -465,13 +458,6 @@ static ssize_t del_mux_store(struct device *d, struct device_attribute *attr, c
if (!rtnl_trylock())
return restart_syscall();
- /* we don't want to modify a running netdev */
- if (netif_running(dev->net)) {
- netdev_err(dev->net, "Cannot change a running device\n");
- ret = -EBUSY;
- goto err;
- }
-
del_dev = qmimux_find_dev(dev, mux_id);
if (!del_dev) {
netdev_err(dev->net, "mux_id not present\n");
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] net: usb: qmi_wwan: allow qmimux add/del with master up
2021-03-04 13:15 [PATCH 1/1] net: usb: qmi_wwan: allow qmimux add/del with master up Daniele Palmas
@ 2021-03-04 17:48 ` Bjørn Mork
2021-03-04 22:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Bjørn Mork @ 2021-03-04 17:48 UTC (permalink / raw)
To: Daniele Palmas
Cc: David S . Miller, Jakub Kicinski, netdev, linux-usb, Aleksander Morgado
Daniele Palmas <dnlplm@gmail.com> writes:
> There's no reason for preventing the creation and removal
> of qmimux network interfaces when the underlying interface
> is up.
>
> This makes qmi_wwan mux implementation more similar to the
> rmnet one, simplifying userspace management of the same
> logical interfaces.
>
> Fixes: c6adf77953bc ("net: usb: qmi_wwan: add qmap mux protocol support")
> Reported-by: Aleksander Morgado <aleksander@aleksander.es>
> Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Acked-by: Bjørn Mork <bjorn@mork.no>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] net: usb: qmi_wwan: allow qmimux add/del with master up
2021-03-04 13:15 [PATCH 1/1] net: usb: qmi_wwan: allow qmimux add/del with master up Daniele Palmas
2021-03-04 17:48 ` Bjørn Mork
@ 2021-03-04 22:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-03-04 22:30 UTC (permalink / raw)
To: Daniele Palmas; +Cc: bjorn, davem, kuba, netdev, linux-usb, aleksander
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Thu, 4 Mar 2021 14:15:13 +0100 you wrote:
> There's no reason for preventing the creation and removal
> of qmimux network interfaces when the underlying interface
> is up.
>
> This makes qmi_wwan mux implementation more similar to the
> rmnet one, simplifying userspace management of the same
> logical interfaces.
>
> [...]
Here is the summary with links:
- [1/1] net: usb: qmi_wwan: allow qmimux add/del with master up
https://git.kernel.org/netdev/net/c/6c59cff38e66
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-04 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 13:15 [PATCH 1/1] net: usb: qmi_wwan: allow qmimux add/del with master up Daniele Palmas
2021-03-04 17:48 ` Bjørn Mork
2021-03-04 22:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).