Message ID | 1461662037-15637-2-git-send-email-bala.manoharan@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 148adc9..4378335 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -410,6 +410,11 @@ int odp_pktio_config(odp_pktio_t id, const odp_pktio_config_t *config) return -1; } + if (config->enable_loop && !capa.loop_supported) { + ODP_ERR("Loopback mode not supported\n"); + return -1; + } + lock_entry(entry); if (entry->s.state == STATE_STARTED) { unlock_entry(entry);
Implements interface loopback mode Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> --- platform/linux-generic/odp_packet_io.c | 5 +++++ 1 file changed, 5 insertions(+)