]> git.baikalelectronics.ru Git - kernel.git/commit
wwan: core: add WWAN common private data for netdev
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Mon, 21 Jun 2021 22:51:00 +0000 (01:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 17:01:17 +0000 (10:01 -0700)
commitfc636b8fe97b4455ac6332c3e8ebfd0d1115c7a5
treeccb93be7cb9825b86d0156507a0827cbd875fcc5
parent5d3f8b546013309c1c582750653cacc415d9061a
wwan: core: add WWAN common private data for netdev

The WWAN core not only multiplex the netdev configuration data, but
process it too, and needs some space to store its private data
associated with the netdev. Add a structure to keep common WWAN core
data. The structure will be stored inside the netdev private data before
WWAN driver private data and have a field to make it easier to access
the driver data. Also add a helper function that simplifies drivers
access to their data.

At the moment we use the common WWAN private data to store the WWAN data
link (channel) id at the time the link is created, and report it back to
user using the .fill_info() RTNL callback. This should help the user to
be aware which network interface is bound to which WWAN device data
channel.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
CC: M Chetan Kumar <m.chetan.kumar@intel.com>
CC: Intel Corporation <linuxwwan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mhi/net.c
drivers/net/mhi/proto_mbim.c
drivers/net/wwan/iosm/iosm_ipc_wwan.c
drivers/net/wwan/wwan_core.c
include/linux/wwan.h