From 67090011f4eb0d919116cb8aeb34938ae66d52d7 Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Tue, 26 Dec 2017 17:25:00 +0800 Subject: [PATCH] net/virtio: remove unnecessary macro definitions DPDK has already the definition of Ethernet numeric link speeds in Mbps in the file Rte_ethdev.h, it is unnecessary to rededine virtio specific link speeds macros again. Signed-off-by: Zhiyong Yang Acked-by: Yuanhan Liu --- drivers/net/virtio/virtio_ethdev.c | 2 +- drivers/net/virtio/virtio_ethdev.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 21f2131a9e..60cc1c02e9 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1936,7 +1936,7 @@ virtio_dev_link_update(struct rte_eth_dev *dev, __rte_unused int wait_to_complet virtio_dev_atomic_read_link_status(dev, &link); old = link; link.link_duplex = ETH_LINK_FULL_DUPLEX; - link.link_speed = SPEED_10G; + link.link_speed = ETH_SPEED_NUM_10G; if (hw->started == 0) { link.link_status = ETH_LINK_DOWN; diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 765d249e6e..1cc81f2204 100644 --- a/drivers/net/virtio/virtio_ethdev.h +++ b/drivers/net/virtio/virtio_ethdev.h @@ -9,11 +9,6 @@ #include "virtio_pci.h" -#define SPEED_10 10 -#define SPEED_100 100 -#define SPEED_1000 1000 -#define SPEED_10G 10000 - #ifndef PAGE_SIZE #define PAGE_SIZE 4096 #endif -- 2.20.1