summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/renesas/ravb.h
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2021-08-25 10:01:46 +0300
committerDavid S. Miller <davem@davemloft.net>2021-08-25 13:18:16 +0300
commitbf46b7578404f6fbde0bc2e1ea60fe0fd6f207a8 (patch)
tree9968a3d3c92de43e4bf1063c5c40800825ee974c /drivers/net/ethernet/renesas/ravb.h
parenta69a3d094de38007ce54e4e1411b5769ed66a426 (diff)
downloadlinux-bf46b7578404f6fbde0bc2e1ea60fe0fd6f207a8.tar.xz
ravb: Factorise ravb_ring_free function
R-Car uses extended descriptor in RX, whereas RZ/G2L uses normal descriptor. Factorise ravb_ring_free function so that it can support 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h
index 209e030935aa..7cb30319524a 100644
--- a/drivers/net/ethernet/renesas/ravb.h
+++ b/drivers/net/ethernet/renesas/ravb.h
@@ -980,6 +980,7 @@ struct ravb_ptp {
};
struct ravb_hw_info {
+ void (*rx_ring_free)(struct net_device *ndev, int q);
const char (*gstrings_stats)[ETH_GSTRING_LEN];
size_t gstrings_size;
netdev_features_t net_hw_features;