]> git.baikalelectronics.ru Git - kernel.git/commit
wwan_hwsim: support network interface creation
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Mon, 21 Jun 2021 22:50:51 +0000 (01:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 17:01:16 +0000 (10:01 -0700)
commit27b89e2afdac9d769c5d8e055c906809bcff810a
tree519a78c04f17e76dd7e7d4024f4adda033c15a16
parenta9458bf753ce97f1c9da250d45e7d48b3c263e04
wwan_hwsim: support network interface creation

Add support for networking interface creation via the WWAN core by
registering the WWAN netdev creation ops for each simulated WWAN device.
Implemented minimalistic netdev support where the xmit callback just
consumes all egress skbs.

This should help with WWAN network interfaces creation testing.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/wwan_hwsim.c