diff options
Diffstat (limited to 'src/vnet/gso/gso.c')
-rw-r--r-- | src/vnet/gso/gso.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vnet/gso/gso.c b/src/vnet/gso/gso.c index cf90d22696d..231196adc5d 100644 --- a/src/vnet/gso/gso.c +++ b/src/vnet/gso/gso.c @@ -34,9 +34,11 @@ vnet_sw_interface_gso_enable_disable (u32 sw_if_index, u8 enable) em = ðernet_main; si = vnet_get_sw_interface (vnm, sw_if_index); - /* - * only ethernet HW interfaces are supported at this time - */ + if (si->type == VNET_SW_INTERFACE_TYPE_SUB) + { + si = vnet_get_sup_sw_interface (vnm, sw_if_index); + } + if (si->type != VNET_SW_INTERFACE_TYPE_HARDWARE) { return (VNET_API_ERROR_INVALID_VALUE); |