Merge "[qca-nss-dp] Add check for rx flow steer handler"
diff --git a/nss_dp_main.c b/nss_dp_main.c
index bfcc7dc..6e02059 100644
--- a/nss_dp_main.c
+++ b/nss_dp_main.c
@@ -340,6 +340,14 @@
 		return 0;
 
 	/*
+	 * check rx_flow_steer is defined in data plane ops
+	 */
+	if (!dp_priv->data_plane_ops->rx_flow_steer) {
+		netdev_dbg(netdev, "Data plane ops not defined for flow steer\n");
+		return -EINVAL;
+	}
+
+	/*
 	 * Delete the old flow rule
 	 */
 	if (dp_priv->data_plane_ops->rx_flow_steer(dp_priv->dpc, skb, rxcpu, false)) {