From: Florin Coras Date: Fri, 9 May 2025 18:37:14 +0000 (-0400) Subject: af_packet: log fatal error on send X-Git-Tag: v25.10-rc0~17 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=63d42e89fe8c0856edfa2050909cbc0397d9bcce;p=vpp.git af_packet: log fatal error on send Type: improvement Change-Id: I6f5801a5e01fd066d4a5d07c4bd5f2ecf45796ff Signed-off-by: Florin Coras --- diff --git a/src/plugins/af_packet/device.c b/src/plugins/af_packet/device.c index d76dad3dde0..993e7cb137d 100644 --- a/src/plugins/af_packet/device.c +++ b/src/plugins/af_packet/device.c @@ -586,6 +586,10 @@ VNET_DEVICE_CLASS_TX_FN (af_packet_device_class) (vlib_main_t * vm, if (unix_error_is_fatal (errno)) { counter = AF_PACKET_TX_ERROR_TXRING_FATAL; + vlib_log_err (apm->log_class, + "af_packet_%s sendto failed: %d %s", + apif->host_if_name, errno, strerror (errno)); + /* TODO attempt to reattach */ } else {