Re: [PATCH 16/18] net: iosm: net driver

2021-01-07 Thread Andrew Lunn
> +static int ipc_wwan_add_vlan(struct iosm_wwan *ipc_wwan, u16 vid) > +{ > + if (vid >= 512 || !ipc_wwan->vlan_devs) > + return -EINVAL; > + > + if (vid == WWAN_ROOT_VLAN_TAG) > + return 0; > + > + mutex_lock(&ipc_wwan->if_mutex); > + > + /* get channel id *

[PATCH 16/18] net: iosm: net driver

2021-01-07 Thread M Chetan Kumar
1) Create net device for data/IP communication. 2) Bind VLAN ID to mux IP session. 3) Implement net device operations. Signed-off-by: M Chetan Kumar --- drivers/net/wwan/iosm/iosm_ipc_wwan.c | 649 ++ drivers/net/wwan/iosm/iosm_ipc_wwan.h | 72 2 files chang