]> git.baikalelectronics.ru Git - kernel.git/commit
ravb: add support for changing MTU
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 16 Feb 2018 16:10:08 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 21:34:50 +0000 (16:34 -0500)
commit7e5893f25cefa2c8b5ca7f895bc06b2ffc79e37e
treefd58bf23816832d12ad64d4927a2fb2d7fae6253
parent40fbe88f432039c43e8b72e7e8d42bf4c401e598
ravb: add support for changing MTU

Allow for changing the MTU within the limit of the maximum size of a
descriptor (2048 bytes). Add the callback to change MTU from user-space
and take the configurable MTU into account when configuring the
hardware.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c