]> git.baikalelectronics.ru Git - kernel.git/commit
net: qmi_wwan: Add pass through mode
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Mon, 25 Jan 2021 07:33:35 +0000 (00:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 02:01:29 +0000 (18:01 -0800)
commit756c5033282dd8f69fbc6961701da0a53f3a96c1
tree955c5b55b4a05802ebaf90713650b99cbdfa4daf
parenta2446dc927fb5ebbc944c7ea0c151e5f867f31f3
net: qmi_wwan: Add pass through mode

Pass through mode is to allow packets in MAP format to be passed
on to the stack. rmnet driver can be used to process and demultiplex
these packets.

Pass through mode can be enabled when the device is in raw ip mode only.
Conversely, raw ip mode cannot be disabled when pass through mode is
enabled.

Userspace can use pass through mode in conjunction with rmnet driver
through the following steps-

1. Enable raw ip mode on qmi_wwan device
2. Enable pass through mode on qmi_wwan device
3. Create a rmnet device with qmi_wwan device as real device using netlink

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Acked-by: Bjørn Mork <bjorn@mork.no>
Link: https://lore.kernel.org/r/1611560015-20034-1-git-send-email-subashab@codeaurora.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/qmi_wwan.c