|
|
@@ -22,20 +22,22 @@ Signed-off-by: Robert Marko <[email protected]>
|
|
|
|
|
|
--- a/nss_dp_switchdev.c
|
|
|
+++ b/nss_dp_switchdev.c
|
|
|
-@@ -29,6 +29,8 @@
|
|
|
+@@ -29,6 +29,10 @@
|
|
|
#include "nss_dp_dev.h"
|
|
|
#include "fal/fal_stp.h"
|
|
|
#include "fal/fal_ctrlpkt.h"
|
|
|
++#if defined(NSS_DP_PPE_SUPPORT)
|
|
|
+#include "fal/fal_fdb.h"
|
|
|
+#include "ref/ref_vsi.h"
|
|
|
++#endif
|
|
|
|
|
|
#define NSS_DP_SWITCH_ID 0
|
|
|
#define NSS_DP_SW_ETHTYPE_PID 0 /* PPE ethtype profile ID for slow protocols */
|
|
|
-@@ -534,7 +536,76 @@ static struct notifier_block *nss_dp_sw_
|
|
|
+@@ -534,8 +538,82 @@ static struct notifier_block *nss_dp_sw_
|
|
|
|
|
|
#else
|
|
|
|
|
|
--static struct notifier_block *nss_dp_sw_ev_nb;
|
|
|
++#if defined(NSS_DP_PPE_SUPPORT)
|
|
|
+/*
|
|
|
+ * nss_dp_switchdev_fdb_del_event
|
|
|
+ *
|
|
|
@@ -106,6 +108,11 @@ Signed-off-by: Robert Marko <[email protected]>
|
|
|
+};
|
|
|
+
|
|
|
+static struct notifier_block *nss_dp_sw_ev_nb = &nss_dp_switchdev_notifier_nb;
|
|
|
++
|
|
|
++#else
|
|
|
+ static struct notifier_block *nss_dp_sw_ev_nb;
|
|
|
|
|
|
++#endif
|
|
|
/*
|
|
|
* nss_dp_bridge_attr_set()
|
|
|
+ * Sets bridge attributes
|