diff mbox series

[RFC,v2,net-next,08/21] net: mscc: ocelot: auto-detect VCAP ES0 and IS1 parameters

Message ID 20200929101016.3743530-9-vladimir.oltean@nxp.com
State RFC
Delegated to: David Miller
Headers show
Series Offload tc-flower to mscc_ocelot switch using VCAP chains | expand

Commit Message

Vladimir Oltean Sept. 29, 2020, 10:10 a.m. UTC
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
Changes in v2:
Patch is new.

 drivers/net/ethernet/mscc/ocelot.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c
index 8a9ad0507b99..2eba6b5385d1 100644
--- a/drivers/net/ethernet/mscc/ocelot.c
+++ b/drivers/net/ethernet/mscc/ocelot.c
@@ -1467,6 +1467,8 @@  static void ocelot_detect_features(struct ocelot *ocelot)
 		 "Detected %d bytes of packet buffer and %d frame references\n",
 		 ocelot->packet_buffer_size, ocelot->num_frame_refs);
 
+	ocelot_detect_vcap_constants(ocelot, &ocelot->vcap[VCAP_ES0]);
+	ocelot_detect_vcap_constants(ocelot, &ocelot->vcap[VCAP_IS1]);
 	ocelot_detect_vcap_constants(ocelot, &ocelot->vcap[VCAP_IS2]);
 }