| 464 | } |
| 465 | |
| 466 | static int |
| 467 | virtio_dev_allmulticast_disable(struct rte_eth_dev *dev) |
| 468 | { |
| 469 | struct virtio_hw *hw = dev->data->dev_private; |
| 470 | struct virtio_pmd_ctrl ctrl; |
| 471 | int dlen[1]; |
| 472 | int ret; |
| 473 | |
| 474 | if (!virtio_with_feature(hw, VIRTIO_NET_F_CTRL_RX)) { |
| 475 | PMD_INIT_LOG(INFO, "host does not support rx control"); |
| 476 | return -ENOTSUP; |
| 477 | } |
| 478 | |
| 479 | ctrl.hdr.class = VIRTIO_NET_CTRL_RX; |
| 480 | ctrl.hdr.cmd = VIRTIO_NET_CTRL_RX_ALLMULTI; |
| 481 | ctrl.data[0] = 0; |
| 482 | dlen[0] = 1; |
| 483 | |
| 484 | ret = virtio_send_command(hw->cvq, &ctrl, dlen, 1); |
| 485 | if (ret) { |
| 486 | PMD_INIT_LOG(ERR, "Failed to disable allmulticast"); |
| 487 | return -EAGAIN; |
| 488 | } |
| 489 | |
| 490 | return 0; |
| 491 | } |
| 492 | |
| 493 | uint16_t |
| 494 | virtio_rx_mem_pool_buf_size(struct rte_mempool *mp) |
nothing calls this directly
no test coverage detected