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)
commit59e139cf0b32a7a08ef20453927ecd57db086d8e
tree955c5b55b4a05802ebaf90713650b99cbdfa4daf
parentbbe25b7d694846e8946e7aea6ac9d342a4e43345
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