diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2021-08-25 08:01:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-25 11:18:17 +0100 |
commit | d5d95c11365bc880669bbc52786b176cf60dcd92 (patch) | |
tree | 70dd234eb0933ad4cd79938132bf8fcfec4902f7 /drivers/net/ethernet/renesas/ravb.h | |
parent | ravb: Factorise ravb_ring_init function (diff) | |
download | linux-dev-d5d95c11365bc880669bbc52786b176cf60dcd92.tar.xz linux-dev-d5d95c11365bc880669bbc52786b176cf60dcd92.zip |
ravb: Factorise ravb_rx function
R-Car uses an extended descriptor in RX whereas, RZ/G2L uses
normal descriptor in RX. Factorise the ravb_rx function to
support the later SoC.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
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 39df045b1a0b..00f2d67b4dad 100644 --- a/drivers/net/ethernet/renesas/ravb.h +++ b/drivers/net/ethernet/renesas/ravb.h @@ -983,6 +983,7 @@ struct ravb_hw_info { void (*rx_ring_free)(struct net_device *ndev, int q); void (*rx_ring_format)(struct net_device *ndev, int q); void *(*alloc_rx_desc)(struct net_device *ndev, int q); + bool (*receive)(struct net_device *ndev, int *quota, int q); const char (*gstrings_stats)[ETH_GSTRING_LEN]; size_t gstrings_size; netdev_features_t net_hw_features; |