diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2018-02-16 17:10:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-16 22:34:50 +0100 |
commit | 75efa06f457bbed3931bf693b7137cf4da3b5c80 (patch) | |
tree | fd58bf23816832d12ad64d4927a2fb2d7fae6253 /drivers/net/ethernet/renesas/ravb.h | |
parent | Merge branch 'nfp-whitespace-sync-and-flower-TCP-flags' (diff) | |
download | linux-75efa06f457bbed3931bf693b7137cf4da3b5c80.tar.xz linux-75efa06f457bbed3931bf693b7137cf4da3b5c80.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb.h')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h index 96a27b00c90e..b81f4faf7b10 100644 --- a/drivers/net/ethernet/renesas/ravb.h +++ b/drivers/net/ethernet/renesas/ravb.h @@ -1018,6 +1018,7 @@ struct ravb_private { u32 dirty_rx[NUM_RX_QUEUE]; /* Producer ring indices */ u32 cur_tx[NUM_TX_QUEUE]; u32 dirty_tx[NUM_TX_QUEUE]; + u32 rx_buf_sz; /* Based on MTU+slack. */ struct napi_struct napi[NUM_RX_QUEUE]; struct work_struct work; /* MII transceiver section. */ |