summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/device.c
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/avf/device.c
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/avf/device.c')
-rw-r--r--src/plugins/avf/device.c4
1 files changed, 4 insertions, 0 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)