Hello,
this patch series add a sysfs file to let userspace know which mux
id has been used to create a qmimux network interface.
I'm aware that adding new sysfs files is not usually the right path,
but my understanding is that this piece of information can't be
retrieved in any other way and its absence restricts how
userspace application (e.g. like libqmi) can take advantage of the
qmimux implementation in qmi_wwan.
Thanks,
Daniele
Daniele Palmas (2):
net: usb: qmi_wwan: add qmap id sysfs file for qmimux interfaces
net: qmi_wwan: document qmap/mux_id sysfs file
Documentation/ABI/testing/sysfs-class-net-qmi | 10 +++++++
drivers/net/usb/qmi_wwan.c | 27 +++++++++++++++++++
2 files changed, 37 insertions(+)
--
2.17.1
@@ -48,3 +48,13 @@ Description: Write a number ranging from 1 to 254 to delete a previously created qmap mux based network device.++What: /sys/class/net/<qmimux iface>/qmap/mux_id+Date: January 2021+KernelVersion: 5.12+Contact: Daniele Palmas <dnlplm@gmail.com>+Description:+ Unsigned integer++ Indicates the mux id associated to the qmimux network interface+ during its creation.
Add qmimux interface sysfs file qmap/mux_id to show qmap id set
during the interface creation, in order to provide a method for
userspace to associate QMI control channels to network interfaces.
Signed-off-by: Daniele Palmas <redacted>
---
drivers/net/usb/qmi_wwan.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
From: Aleksander Morgado <hidden> Date: 2021-01-26 19:32:01
On Mon, Jan 25, 2021 at 4:23 PM Daniele Palmas [off-list ref] wrote:
Add qmimux interface sysfs file qmap/mux_id to show qmap id set
during the interface creation, in order to provide a method for
userspace to associate QMI control channels to network interfaces.
Signed-off-by: Daniele Palmas <redacted>
Thanks for doing this!
Acked-by: Aleksander Morgado <redacted>
--
Aleksander
https://aleksander.es
On Mon, Jan 25, 2021 at 04:22:34PM +0100, Daniele Palmas wrote:
quoted hunk
Add qmimux interface sysfs file qmap/mux_id to show qmap id set
during the interface creation, in order to provide a method for
userspace to associate QMI control channels to network interfaces.
Signed-off-by: Daniele Palmas <redacted>
---
drivers/net/usb/qmi_wwan.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)