From: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
To: Dan Williams <dcbw@redhat.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
fengguang.wu@intel.com, netdev-owner@vger.kernel.org
Subject: Re: [PATCH net-next 1/1 v2] net: rmnet_data: Initial implementation
Date: Fri, 31 Mar 2017 23:43:31 -0600 [thread overview]
Message-ID: <59f9a5da83d995c8a572b44c9b248ae2@codeaurora.org> (raw)
In-Reply-To: <1491000080.13807.1.camel@redhat.com>
> Yeah, seems quite a bit like VLAN (from a workflow perspective, not
> quite as much from a protocol one) and I think the same workflow could
> work for this too. Would be nice to eventually get qmi_wwan onto the
> same base, if possible (though we'd need to preserve the 802.3
> capability somehow for devices that don't support raw-ip).
>
> It doesn't necessarily mean that configuration would need to move to
> the IP tool. I just used it as an example of how VLAN works and how
> rmnet could work as well, quite easily with the ip tool.
>
> Since the ip tool is based on netlink, both it and your userspace
> library could use the same netlink attributes and families to do the
> same thing.
>
> Essentially, I am recommending that instead of your current custom
> netlink commands, port them over to rtnetlink which will mean less code
> for you, and a more standard kernel interface for everyone.
>
Thanks for your comments. I'll work on conversion into rtnl_link_ops.
Ethernet frames are supported in pass through mode (though not used
often)
but they cannot be used in conjunction with MAP functionality.
> Does the aggregation happen at the level of the raw device, or at the
> level of the MUX channels? eg, can I aggregate packets from multiple
> MUX channels into the same request, especially on USB devices?
>
Hardware does allow aggregation of packets from different mux channels
in
a single frame.
> One use-case is to put different packet data contexts into different
> namespaces. You could then isolate different EPS/PDP contexts by
> putting them into different network namespaces, and for example have
> your IMS handler only be able to access its own EPS/PDP context.
>
> We could already do this with qmi_wwan on devices that provide multiple
> USB endpoints for QMI/rmnet, but I thought the point of the MUX
> protocol was to allow a single endpoint for rmnet that can MUX multiple
> packet data contexts. So it would be nice to allow each rmnet netdev
> to be placed into a different network namespace.
>
I need to study more about namespaces since I am not familiar with it.
I'll add support for it in a follow up patchset.
> Like a usb gadget rmnet interface for debugging?
>
Yes, its mostly used for test only.
prev parent reply other threads:[~2017-04-01 5:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-13 7:43 [PATCH net-next 0/1 v2] net: Add support for rmnet_data driver Subash Abhinov Kasiviswanathan
2017-03-13 7:43 ` [PATCH net-next 1/1 v2] net: rmnet_data: Initial implementation Subash Abhinov Kasiviswanathan
2017-03-13 8:54 ` Jiri Pirko
2017-03-13 22:01 ` Subash Abhinov Kasiviswanathan
2017-03-14 6:55 ` Jiri Pirko
2017-03-14 21:19 ` Subash Abhinov Kasiviswanathan
2017-03-13 22:24 ` kbuild test robot
2017-03-24 22:15 ` Dan Williams
2017-03-24 22:21 ` Dan Williams
2017-03-25 0:49 ` Subash Abhinov Kasiviswanathan
2017-03-31 22:41 ` Dan Williams
2017-04-01 5:43 ` Subash Abhinov Kasiviswanathan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59f9a5da83d995c8a572b44c9b248ae2@codeaurora.org \
--to=subashab@codeaurora.org \
--cc=davem@davemloft.net \
--cc=dcbw@redhat.com \
--cc=fengguang.wu@intel.com \
--cc=netdev-owner@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).