lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1623486057-13075-1-git-send-email-loic.poulain@linaro.org>
Date:   Sat, 12 Jun 2021 10:20:53 +0200
From:   Loic Poulain <loic.poulain@...aro.org>
To:     kuba@...nel.org, davem@...emloft.net
Cc:     netdev@...r.kernel.org, m.chetan.kumar@...el.com,
        johannes.berg@...el.com, leon@...nel.org, ryazanov.s.a@...il.com,
        parav@...dia.com, Loic Poulain <loic.poulain@...aro.org>
Subject: [PATCH net-next v3 0/4] net: Add WWAN link creation support

Most of the modern WWAN modems are able to support multiple network
contexts, allowing user to connect to different APNs (e.g. Internet,
MMS, etc...). These contexts are usually dynamically configured via
a control channel such as MBIM, QMI or AT.

Each context is naturally represented as a network link/device, and
the muxing of these links is usually vendor/bus specific (QMAP, MBIM,
intel iosm...). Today some drivers create a static collection of
netdevs at init time, some relies on VLAN link for associating a context
(cdc-mbim), some exposes sysfs attribute for dynamically creating
additional netdev (qmi_wwan add_mux attr) or relies on vendor specific
link type (rmnet) for performing the muxing... so there is no generic
way to handle WWAN links, making user side integration painful.

This series introduces a generic WWAN link management interface to the
WWAN framework, allowing user to dynamically create and remove WWAN
links through rtnetlink ('wwan' type). The underlying 'muxing' vendor
implementation is completely abstracted.

The idea is to use this interface for upcoming WWAN drivers (intel
iosm) and to progressively integrate support into existing ones
(qmi_wwan, cdc-mbim, mhi_net, etc...).


v2: - Squashed Johannes and Sergey changes
    - Added IFLA_PARENT_DEV_BUS_NAME attribute
    - reworded commit message + introduce Sergey's comment

v3: - Added basic new interface user to this series (mhi_net)
    - Moved IFLA_PARENT_DEV_NAME nla_policy introduction to right patch
    - Added cover letter
    - moved kdoc to .c file


Johannes Berg (3):
  rtnetlink: add alloc() method to rtnl_link_ops
  rtnetlink: add IFLA_PARENT_[DEV|DEV_BUS]_NAME
  wwan: add interface creation support

Loic Poulain (1):
  net: mhi_net: Register wwan_ops for link creation

 drivers/net/Kconfig          |   1 +
 drivers/net/mhi/net.c        | 123 ++++++++++++++++++----
 drivers/net/wwan/wwan_core.c | 245 +++++++++++++++++++++++++++++++++++++++++--
 include/linux/wwan.h         |  24 +++++
 include/net/rtnetlink.h      |   8 ++
 include/uapi/linux/if_link.h |   7 ++
 include/uapi/linux/wwan.h    |  16 +++
 net/core/rtnetlink.c         |  30 +++++-
 8 files changed, 419 insertions(+), 35 deletions(-)
 create mode 100644 include/uapi/linux/wwan.h

-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ