diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-06-12 10:20:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-12 13:16:45 -0700 |
commit | 13adac032982c61bb590669e8e87e51558917ca1 (patch) | |
tree | 83c9b1b5962c0eddb16624ae9ba1e210d9ebdacb /drivers/net/wwan/iosm/iosm_ipc_irq.c | |
parent | 88b710532e53de2466d1033fb1d5125aabf3215a (diff) |
net: mhi_net: Register wwan_ops for link creation
Register wwan_ops for link management via wwan rtnetlink. This is
only basic support for now, since we only support creating one
single link (link-0), but is useful to validate new wwan rtnetlink
interface.
For backward compatibity support, we still register a default netdev
at probe time, except if 'create_default_iface' module parameter is
set to false.
This has been tested with iproute2 and mbimcli:
$ ip link add dev wwan0-0 parentdev-name wwan0 type wwan linkid 0
$ mbimcli -p -d /dev/wwan0p2MBIM --connect apn=free
$ ip link set dev wwan0-0 up
$ ip addr add dev wwan0 ${IP}
$ ip route replace default via ${IP}
$ ping 8.8.8.8
...
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_irq.c')
0 files changed, 0 insertions, 0 deletions