New upstream version 18.11.2
[deb_dpdk.git] / drivers / net / bnx2x / ecore_sp.h
index f295bf5..7126097 100644 (file)
@@ -151,14 +151,15 @@ typedef rte_spinlock_t ECORE_MUTEX_SPIN;
                }                                                       \
        } while (0)
 
-#define ECORE_ILT_FREE(x, y, size)                   \
-    do {                                             \
-       if (x) {                                     \
-           rte_free(x);                             \
-           x = NULL;                                \
-           y = 0;                                   \
-       }                                            \
-    } while (0)
+#define ECORE_ILT_FREE(x, y, size)                                     \
+       do {                                                            \
+               if (x) {                                                \
+                       bnx2x_dma_free((struct bnx2x_dma *)x);          \
+                       rte_free(x);                                    \
+                       x = NULL;                                       \
+                       y = 0;                                          \
+               }                                                       \
+       } while (0)
 
 #define ECORE_IS_VALID_ETHER_ADDR(_mac) TRUE