virtio: fix build with debug enabled
Remove useless message that breaks if VIRTIO_DEBUG_DRIVER is defined. virtio_ethdev.c:224:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] Signed-off-by: Stephen Hemminger <shemming@brocade.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
This commit is contained in:
parent
14337d0b7a
commit
36c248ebc6
@ -213,8 +213,6 @@ virtio_set_multiple_queues(struct rte_eth_dev *dev, uint16_t nb_queues)
|
||||
ctrl.hdr.cmd = VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET;
|
||||
memcpy(ctrl.data, &nb_queues, sizeof(uint16_t));
|
||||
|
||||
PMD_INIT_LOG(DEBUG, "ctrl.data=%d\n", *(int *)ctrl.data);
|
||||
|
||||
dlen[0] = sizeof(uint16_t);
|
||||
|
||||
ret = virtio_send_command(hw->cvq, &ctrl, dlen, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user