ravb: implement MTU change while device is up
authorUlrich Hecht <uli+renesas@fpond.eu>
Thu, 14 Nov 2019 01:49:49 +0000 (02:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:05:25 +0000 (18:05 -0800)
commit15fb35fa9ff456b81159033eba6397fcee85e671
tree34dc1f18e53710b18eff36c0e4528724893dd93c
parentd7f9f47d4d1243cf960725a755123cfae13a3e51
ravb: implement MTU change while device is up

Pre-allocates buffers sufficient for the maximum supported MTU (2026) in
order to eliminate the possibility of resource exhaustion when changing the
MTU while the device is up.

Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c