From 705b29624371ef75f38f914aa955e1b8c168f094 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Fri, 14 Jun 2019 21:14:36 +0200 Subject: avf: add more link speeds Type: feature Change-Id: I6f94f7ef5ffbd938457c9356a5a11f3d1afeb0a2 Signed-off-by: Damjan Marion --- src/plugins/avf/device.c | 4 ++++ src/plugins/avf/virtchnl.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/plugins/avf') 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 { -- cgit 1.2.3-korg