From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subash Abhinov Kasiviswanathan Subject: Re: Qualcomm rmnet driver and qmi_wwan Date: Fri, 08 Jun 2018 11:19:32 -0600 Message-ID: <8a77f905ddcd6a8136dd9f2d5de11438@codeaurora.org> References: <2a96c941b6699827ea6ac1ce3603fae5@codeaurora.org> <9786ab4bf4e425566f55a0654911ab788f3f1a38.camel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: =?UTF-8?Q?Bj=C3=B8rn_Mork?= , Dan Williams , netdev@vger.kernel.org To: Daniele Palmas Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:36950 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752989AbeFHRTd (ORCPT ); Fri, 8 Jun 2018 13:19:33 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > 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. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project