Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> writes: >> I followed Dan's advice and prepared a very basic test patch >> (attached) for testing it through ip link. >> >> Basically things seem to be properly working with qmicli, but I needed >> to modify a bit qmi_wwan, so I'm adding Bjørn that maybe can help. >> >> Bjørn, >> >> I'm trying to add support to rmnet in qmi_wwan: I had to modify the >> code as in the attached test patch, but I'm not sure it is the right >> way. >> >> This is done under the assumption that the rmnet device would be the >> only one to register an rx handler to qmi_wwan, but it is probably >> wrong. >> >> Basically I'm wondering if there is a more correct way to understand >> if an rmnet device is linked to the real qmi_wwan device. >> >> Thanks, >> Daniele > > > Hi Daniele / Bjørn > > Is it possible to define a pass through mode in qmi_wwan. This is to > ensure that all packets in MAP format are passed through instead of > processing in qmi_wwan layer. The pass through mode would just call > netif_receive_skb() on all these packets. > > That would allow all the packets to be intercepted by the rx_handler > attached by rmnet which would subsequently de-multiplex and process > the packets.
This sounds like a good idea. I probably won't have any time to look at this in the near future, though. Sorry about that. Extremely overloaded both at work and private right now... But I trust that you and Daniele can work out something. Please keep me CCed, but don't expect timely replies. Bjørn