* [dpdk-stable] [PATCH 17.11] test/virtual_pmd: add MAC address setting fake op
@ 2019-07-19 9:01 Rybalchenko, Kirill
2019-07-23 1:31 ` Yongseok Koh
0 siblings, 1 reply; 2+ messages in thread
From: Rybalchenko, Kirill @ 2019-07-19 9:01 UTC (permalink / raw)
To: Yongseok Koh; +Cc: stable
From: Radu Nicolau <radu.nicolau@intel.com>
[ backported from upstream commit c23fc36284e26fca9b52641118ad76a4da99d7af]
Needed if used with net/bonding
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
test/test/virtual_pmd.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
index b57a949..b600b43 100644
--- a/test/test/virtual_pmd.c
+++ b/test/test/virtual_pmd.c
@@ -244,6 +244,11 @@ static void
virtual_ethdev_promiscuous_mode_disable(struct rte_eth_dev *dev __rte_unused)
{}
+static void
+virtual_ethdev_mac_address_set(__rte_unused struct rte_eth_dev *dev,
+ __rte_unused struct ether_addr *addr)
+{
+}
static const struct eth_dev_ops virtual_ethdev_default_dev_ops = {
.dev_configure = virtual_ethdev_configure_success,
@@ -256,13 +261,13 @@ static const struct eth_dev_ops virtual_ethdev_default_dev_ops = {
.rx_queue_release = virtual_ethdev_rx_queue_release,
.tx_queue_release = virtual_ethdev_tx_queue_release,
.link_update = virtual_ethdev_link_update_success,
+ .mac_addr_set = virtual_ethdev_mac_address_set,
.stats_get = virtual_ethdev_stats_get,
.stats_reset = virtual_ethdev_stats_reset,
.promiscuous_enable = virtual_ethdev_promiscuous_mode_enable,
.promiscuous_disable = virtual_ethdev_promiscuous_mode_disable
};
-
void
virtual_ethdev_start_fn_set_success(uint16_t port_id, uint8_t success)
{
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-stable] [PATCH 17.11] test/virtual_pmd: add MAC address setting fake op
2019-07-19 9:01 [dpdk-stable] [PATCH 17.11] test/virtual_pmd: add MAC address setting fake op Rybalchenko, Kirill
@ 2019-07-23 1:31 ` Yongseok Koh
0 siblings, 0 replies; 2+ messages in thread
From: Yongseok Koh @ 2019-07-23 1:31 UTC (permalink / raw)
To: Rybalchenko, Kirill; +Cc: stable
> On Jul 19, 2019, at 2:01 AM, Rybalchenko, Kirill <kirill.rybalchenko@intel.com> wrote:
>
> From: Radu Nicolau <radu.nicolau@intel.com>
>
> [ backported from upstream commit c23fc36284e26fca9b52641118ad76a4da99d7af]
>
> Needed if used with net/bonding
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
This has been cherry-picked from the upstream commit.
Thanks,
Yongseok
> test/test/virtual_pmd.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
> index b57a949..b600b43 100644
> --- a/test/test/virtual_pmd.c
> +++ b/test/test/virtual_pmd.c
> @@ -244,6 +244,11 @@ static void
> virtual_ethdev_promiscuous_mode_disable(struct rte_eth_dev *dev __rte_unused)
> {}
>
> +static void
> +virtual_ethdev_mac_address_set(__rte_unused struct rte_eth_dev *dev,
> + __rte_unused struct ether_addr *addr)
> +{
> +}
>
> static const struct eth_dev_ops virtual_ethdev_default_dev_ops = {
> .dev_configure = virtual_ethdev_configure_success,
> @@ -256,13 +261,13 @@ static const struct eth_dev_ops virtual_ethdev_default_dev_ops = {
> .rx_queue_release = virtual_ethdev_rx_queue_release,
> .tx_queue_release = virtual_ethdev_tx_queue_release,
> .link_update = virtual_ethdev_link_update_success,
> + .mac_addr_set = virtual_ethdev_mac_address_set,
> .stats_get = virtual_ethdev_stats_get,
> .stats_reset = virtual_ethdev_stats_reset,
> .promiscuous_enable = virtual_ethdev_promiscuous_mode_enable,
> .promiscuous_disable = virtual_ethdev_promiscuous_mode_disable
> };
>
> -
> void
> virtual_ethdev_start_fn_set_success(uint16_t port_id, uint8_t success)
> {
> --
> 2.7.4
>
> <0001-test-virtual_pmd-add-set-MAC-address-dev-op.patch>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-23 1:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 9:01 [dpdk-stable] [PATCH 17.11] test/virtual_pmd: add MAC address setting fake op Rybalchenko, Kirill
2019-07-23 1:31 ` Yongseok Koh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).