summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-06-14 21:14:36 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-07-11 15:37:17 +0000
commit705b29624371ef75f38f914aa955e1b8c168f094 (patch)
tree73e274f186223cb8d3bac559b1ed2fcd4ba3b885 /src/plugins
parentbc34b8f521c5c75addfb04b626c2a9b75d97cf3b (diff)
avf: add more link speeds
Type: feature Change-Id: I6f94f7ef5ffbd938457c9356a5a11f3d1afeb0a2 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/avf/device.c4
-rw-r--r--src/plugins/avf/virtchnl.h4
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
{