From 78c896b3b3127515478090c19447e27dc406427e Mon Sep 17 00:00:00 2001 From: Jianfeng Tan Date: Mon, 18 Nov 2019 06:59:50 +0000 Subject: TLDKv2 Signed-off-by: Jianfeng Tan Signed-off-by: Jielong Zhou Signed-off-by: Jian Zhang Signed-off-by: Chen Zhao Change-Id: I55c39de4c6cd30f991f35631eb507f770230f08e --- ...irtio-user-add-rss-update-for-virtio-user.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 dpdk/dpdk-v18.11_patches/0004-net-virtio-user-add-rss-update-for-virtio-user.patch (limited to 'dpdk/dpdk-v18.11_patches/0004-net-virtio-user-add-rss-update-for-virtio-user.patch') diff --git a/dpdk/dpdk-v18.11_patches/0004-net-virtio-user-add-rss-update-for-virtio-user.patch b/dpdk/dpdk-v18.11_patches/0004-net-virtio-user-add-rss-update-for-virtio-user.patch new file mode 100644 index 0000000..e4eb8e7 --- /dev/null +++ b/dpdk/dpdk-v18.11_patches/0004-net-virtio-user-add-rss-update-for-virtio-user.patch @@ -0,0 +1,43 @@ +From 9bbe20eda858fd7fcbd8f137e5f96f51d571a556 Mon Sep 17 00:00:00 2001 +From: Jianfeng Tan +Date: Wed, 29 Aug 2018 14:20:51 +0000 +Subject: [PATCH 4/9] net/virtio-user: add rss update for virtio-user + +--- + drivers/net/virtio/virtio_ethdev.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c +index 614357da7..e7336cde9 100644 +--- a/drivers/net/virtio/virtio_ethdev.c ++++ b/drivers/net/virtio/virtio_ethdev.c +@@ -738,6 +738,18 @@ virtio_dev_rx_queue_intr_disable(struct rte_eth_dev *dev, uint16_t queue_id) + return 0; + } + ++static int ++virtio_rss_hash_update(struct rte_eth_dev *dev, ++ struct rte_eth_rss_conf *rss_conf __rte_unused) ++{ ++ struct virtio_hw *hw = dev->data->dev_private; ++ ++ if (hw->virtio_user_dev) ++ return 0; ++ ++ return -1; ++} ++ + /* + * dev_ops for virtio, bare necessities for basic operation + */ +@@ -772,6 +784,7 @@ static const struct eth_dev_ops virtio_eth_dev_ops = { + .mac_addr_add = virtio_mac_addr_add, + .mac_addr_remove = virtio_mac_addr_remove, + .mac_addr_set = virtio_mac_addr_set, ++ .rss_hash_update = virtio_rss_hash_update, + }; + + static void +-- +2.17.1 + -- cgit 1.2.3-korg