@@ -20,8 +20,6 @@
#include <errno.h>
-/* MTU to be reported for the "loop" interface */
-#define PKTIO_LOOP_MTU 1500
/* MAC address for the "loop" interface */
static const char pktio_loop_mac[] = {0x02, 0xe9, 0x34, 0x80, 0x73, 0x01};
@@ -94,7 +92,8 @@ static int loopback_send(pktio_entry_t *pktio_entry, odp_packet_t pkt_tbl[],
static int loopback_mtu_get(pktio_entry_t *pktio_entry ODP_UNUSED)
{
- return PKTIO_LOOP_MTU;
+ /* the loopback interface imposes no maximum transmit size limit */
+ return INT_MAX;
}
static int loopback_mac_addr_get(pktio_entry_t *pktio_entry ODP_UNUSED,
There's no need to enforce an artificial MTU for the loop interface. Previously this value was reported but not enforced. Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org> --- platform/linux-generic/pktio/loop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)