diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/avf/device.c | 4 | ||||
-rw-r--r-- | src/plugins/avf/virtchnl.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index d595da281b7..543a54e60ca 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -1026,6 +1026,10 @@ avf_process_one_device (vlib_main_t * vm, avf_device_t * ad, int is_irq) kbps = 25000000; else if (speed == VIRTCHNL_LINK_SPEED_10GB) kbps = 10000000; + else if (speed == VIRTCHNL_LINK_SPEED_5GB) + kbps = 5000000; + else if (speed == VIRTCHNL_LINK_SPEED_2_5GB) + kbps = 2500000; else if (speed == VIRTCHNL_LINK_SPEED_1GB) kbps = 1000000; else if (speed == VIRTCHNL_LINK_SPEED_100MB) diff --git a/src/plugins/avf/virtchnl.h b/src/plugins/avf/virtchnl.h index 7561b65b52b..1657c027e70 100644 --- a/src/plugins/avf/virtchnl.h +++ b/src/plugins/avf/virtchnl.h @@ -193,12 +193,14 @@ typedef enum } virtchnl_event_codes_t; #define foreach_virtchnl_link_speed \ + _(0, 2_5GB, "2.5 Gbps") \ _(1, 100MB, "100 Mbps") \ _(2, 1GB, "1 Gbps") \ _(3, 10GB, "10 Gbps") \ _(4, 40GB, "40 Gbps") \ _(5, 20GB, "20 Gbps") \ - _(6, 25GB, "25 Gbps") + _(6, 25GB, "25 Gbps") \ + _(7, 5GB, "5 Gbps") typedef enum { |