OSDN Git Service

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)
commit75efa06f457bbed3931bf693b7137cf4da3b5c80
treefd58bf23816832d12ad64d4927a2fb2d7fae6253
parenta73d65b5cd1c766fc64db59d18255923d01e92db
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