patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH 17.11] net/null: add set MAC address dev op
@ 2019-07-19 14:36 Rybalchenko, Kirill
  2019-07-23  1:31 ` Yongseok Koh
  0 siblings, 1 reply; 2+ messages in thread
From: Rybalchenko, Kirill @ 2019-07-19 14:36 UTC (permalink / raw)
  To: 'Yongseok Koh'; +Cc: stable

From: Radu Nicolau <radu.nicolau@intel.com>

[ backported from upstream commit c5ac7748fd6bfd86b6fb4432b6792733cf32c94c]
Author: Radu Nicolau <radu.nicolau@intel.com>
Date:   Thu Feb 1 10:47:07 2018 +0000

    net/null: add MAC address setting fake operation

    Needed if used with net/bonding

    Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
    Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

---
 drivers/net/null/rte_eth_null.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c
index 7a5f125..bdf16f3 100644
--- a/drivers/net/null/rte_eth_null.c
+++ b/drivers/net/null/rte_eth_null.c
@@ -456,6 +456,12 @@ eth_rss_hash_conf_get(struct rte_eth_dev *dev,
 	return 0;
 }
 
+static void
+eth_mac_address_set(__rte_unused struct rte_eth_dev *dev,
+		    __rte_unused struct ether_addr *addr)
+{
+}
+
 static const struct eth_dev_ops ops = {
 	.dev_start = eth_dev_start,
 	.dev_stop = eth_dev_stop,
@@ -466,6 +472,7 @@ static const struct eth_dev_ops ops = {
 	.rx_queue_release = eth_queue_release,
 	.tx_queue_release = eth_queue_release,
 	.link_update = eth_link_update,
+	.mac_addr_set = eth_mac_address_set,
 	.stats_get = eth_stats_get,
 	.stats_reset = eth_stats_reset,
 	.reta_update = eth_rss_reta_update,
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-stable] [PATCH 17.11] net/null: add set MAC address dev op
  2019-07-19 14:36 [dpdk-stable] [PATCH 17.11] net/null: add set MAC address dev 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 7:36 AM, Rybalchenko, Kirill <kirill.rybalchenko@intel.com> wrote:
> 
> From: Radu Nicolau <radu.nicolau@intel.com>
> 
> [ backported from upstream commit c5ac7748fd6bfd86b6fb4432b6792733cf32c94c]
> Author: Radu Nicolau <radu.nicolau@intel.com>
> Date:   Thu Feb 1 10:47:07 2018 +0000
> 
>    net/null: add MAC address setting fake operation
> 
>    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

> drivers/net/null/rte_eth_null.c | 7 +++++++
> 1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c
> index 7a5f125..bdf16f3 100644
> --- a/drivers/net/null/rte_eth_null.c
> +++ b/drivers/net/null/rte_eth_null.c
> @@ -456,6 +456,12 @@ eth_rss_hash_conf_get(struct rte_eth_dev *dev,
> 	return 0;
> }
> 
> +static void
> +eth_mac_address_set(__rte_unused struct rte_eth_dev *dev,
> +		    __rte_unused struct ether_addr *addr)
> +{
> +}
> +
> static const struct eth_dev_ops ops = {
> 	.dev_start = eth_dev_start,
> 	.dev_stop = eth_dev_stop,
> @@ -466,6 +472,7 @@ static const struct eth_dev_ops ops = {
> 	.rx_queue_release = eth_queue_release,
> 	.tx_queue_release = eth_queue_release,
> 	.link_update = eth_link_update,
> +	.mac_addr_set = eth_mac_address_set,
> 	.stats_get = eth_stats_get,
> 	.stats_reset = eth_stats_reset,
> 	.reta_update = eth_rss_reta_update,
> -- 
> 2.7.4
> <0001-net-null-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 14:36 [dpdk-stable] [PATCH 17.11] net/null: add set MAC address dev 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).