Re: [PATCH net,stable v2] net: cdc_ncm: update datagram size after changing mtu

From: David Miller
Date: Fri May 20 2016 - 19:32:17 EST


From: Robert Dobrowolski <robert.dobrowolski@xxxxxxxxxxxxxxx>
Date: Thu, 19 May 2016 11:56:09 +0200

> From: Rafal Redzimski <rafal.f.redzimski@xxxxxxxxx>
>
> Current implementation updates the mtu size and notify cdc_ncm
> device using USB_CDC_SET_MAX_DATAGRAM_SIZE request about datagram
> size change instead of changing rx_urb_size.
>
> Whenever mtu is being changed, datagram size should also be
> updated. Also updating maxmtu formula so it takes max_datagram_size with
> use of cdc_ncm_max_dgram_size() and not ctx.
>
> Signed-off-by: Robert Dobrowolski <robert.dobrowolski@xxxxxxxxxxxxxxx>
> Signed-off-by: Rafal Redzimski <rafal.f.redzimski@xxxxxxxxx>

Appied, thanks.