rte_virtio: removed unused code
Change-Id: Ieda0837f021ecee8e62f12cb768efb863ec9401f Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/376344 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Piotr Pelpliński <piotr.pelplinski@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
15126babc4
commit
dfbe74ff09
@ -498,7 +498,7 @@ bdev_virtio_initialize(void)
|
||||
}
|
||||
|
||||
/* TODO check rc, add virtio_dev_deinit() */
|
||||
eth_virtio_dev_init(hw, 3);
|
||||
eth_virtio_dev_init(hw);
|
||||
virtio_dev_start(hw);
|
||||
|
||||
base->hw = hw;
|
||||
|
@ -297,7 +297,6 @@ virtio_negotiate_features(struct virtio_hw *hw, uint64_t req_features)
|
||||
static int
|
||||
virtio_init_device(struct virtio_hw *hw, uint64_t req_features)
|
||||
{
|
||||
struct rte_pci_device *pci_dev = NULL;
|
||||
int ret;
|
||||
|
||||
/* Reset the device although not necessary at startup */
|
||||
@ -322,12 +321,6 @@ virtio_init_device(struct virtio_hw *hw, uint64_t req_features)
|
||||
return ret;
|
||||
|
||||
vtpci_reinit_complete(hw);
|
||||
|
||||
if (pci_dev)
|
||||
PMD_INIT_LOG(DEBUG, "port %d vendorID=0x%x deviceID=0x%x",
|
||||
hw->port_id, pci_dev->id.vendor_id,
|
||||
pci_dev->id.device_id);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -342,7 +335,7 @@ virtio_set_vtpci_ops(struct virtio_hw *hw)
|
||||
* It returns 0 on success.
|
||||
*/
|
||||
int
|
||||
eth_virtio_dev_init(struct virtio_hw *hw, int num_queues)
|
||||
eth_virtio_dev_init(struct virtio_hw *hw)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -66,7 +66,7 @@ uint16_t virtio_recv_pkts(struct virtqueue *vq, struct virtio_req **reqs,
|
||||
|
||||
uint16_t virtio_xmit_pkts(struct virtqueue *vq, struct virtio_req *req);
|
||||
|
||||
int eth_virtio_dev_init(struct virtio_hw *hw, int num_queues);
|
||||
int eth_virtio_dev_init(struct virtio_hw *hw);
|
||||
int virtio_dev_start(struct virtio_hw *hw);
|
||||
struct virtio_hw *get_pci_virtio_hw(void);
|
||||
|
||||
|
@ -211,8 +211,6 @@ struct virtio_pci_ops {
|
||||
void (*notify_queue)(struct virtio_hw *hw, struct virtqueue *vq);
|
||||
};
|
||||
|
||||
struct virtio_net_config;
|
||||
|
||||
struct virtio_hw {
|
||||
uint64_t req_guest_features;
|
||||
uint64_t guest_features;
|
||||
|
@ -117,16 +117,6 @@ virtqueue_dequeue_burst_rx(struct virtqueue *vq, struct virtio_req **rx_pkts,
|
||||
return i;
|
||||
}
|
||||
|
||||
#ifndef DEFAULT_TX_FREE_THRESH
|
||||
#define DEFAULT_TX_FREE_THRESH 32
|
||||
#endif
|
||||
|
||||
/* avoid write operation when necessary, to lessen cache issues */
|
||||
#define ASSIGN_UNLESS_EQUAL(var, val) do { \
|
||||
if ((var) != (val)) \
|
||||
(var) = (val); \
|
||||
} while (0)
|
||||
|
||||
static inline void
|
||||
virtqueue_iov_to_desc(struct virtqueue *vq, uint16_t desc_idx, struct iovec *iov)
|
||||
{
|
||||
|
@ -56,12 +56,6 @@
|
||||
#define virtio_rmb() rte_smp_rmb()
|
||||
#define virtio_wmb() rte_smp_wmb()
|
||||
|
||||
#ifdef RTE_PMD_PACKET_PREFETCH
|
||||
#define rte_packet_prefetch(p) rte_prefetch1(p)
|
||||
#else
|
||||
#define rte_packet_prefetch(p) do {} while(0)
|
||||
#endif
|
||||
|
||||
#define VIRTQUEUE_MAX_NAME_SZ 32
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user