mmc: fsl_esdhc: drop i.MX DDR support code
[oweals/u-boot.git] / net / eth-uclass.c
index 1d5d2f03b7d946f989dadfcb852d6d62576c4693..3bd98b01ad32ac097754c5c3ff78b1b485a32cfb 100644 (file)
@@ -11,6 +11,7 @@
 #include <net.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <net/pcap.h>
 #include "eth_internal.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -344,6 +345,10 @@ int eth_send(void *packet, int length)
                /* We cannot completely return the error at present */
                debug("%s: send() returned error %d\n", __func__, ret);
        }
+#if defined(CONFIG_CMD_PCAP)
+       if (ret >= 0)
+               pcap_post(packet, length, true);
+#endif
        return ret;
 }