* [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf
@ 2012-02-12 8:12 Roopa Prabhu
2012-02-12 9:13 ` Roopa Prabhu
2012-02-13 5:51 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Roopa Prabhu @ 2012-02-12 8:12 UTC (permalink / raw)
To: netdev, davem
From: Roopa Prabhu <roprabhu@cisco.com>
This patch removes random mac assignment on vf's. The vf's will start with
a zero mac and with upcoming support in fw/driver, a vf mac can be set
via the pf. vf's also support ndo_set_mac_address. This decision was made
based on the fact that a random mac on a vf is not really needed. And this
will reduce some of the problems with the vf's getting a new mac on
every driver load/unload (one of them being udev renaming the device on ever
load/unload and reboot).
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: sujith sankar <ssujith@cisco.com>
Signed-off-by: ChingWei Chang <cwchang@cisco.com>
---
drivers/net/ethernet/cisco/enic/enic.h | 2 +-
drivers/net/ethernet/cisco/enic/enic_main.c | 5 -----
2 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/cisco/enic/enic.h b/drivers/net/ethernet/cisco/enic/enic.h
index e65d431..f7c3067 100644
--- a/drivers/net/ethernet/cisco/enic/enic.h
+++ b/drivers/net/ethernet/cisco/enic/enic.h
@@ -32,7 +32,7 @@
#define DRV_NAME "enic"
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
-#define DRV_VERSION "2.1.1.34"
+#define DRV_VERSION "2.1.1.35"
#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc"
#define ENIC_BARS_MAX 6
diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c
index 2838891..dd7e24b 100644
--- a/drivers/net/ethernet/cisco/enic/enic_main.c
+++ b/drivers/net/ethernet/cisco/enic/enic_main.c
@@ -2463,11 +2463,6 @@ static int __devinit enic_probe(struct pci_dev *pdev,
enic->port_mtu = enic->config.mtu;
(void)enic_change_mtu(netdev, enic->port_mtu);
-#ifdef CONFIG_PCI_IOV
- if (enic_is_sriov_vf(enic) && is_zero_ether_addr(enic->mac_addr))
- random_ether_addr(enic->mac_addr);
-#endif
-
err = enic_set_mac_addr(netdev, enic->mac_addr);
if (err) {
dev_err(dev, "Invalid MAC address, aborting\n");
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf
2012-02-12 8:12 [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf Roopa Prabhu
@ 2012-02-12 9:13 ` Roopa Prabhu
2012-02-12 22:00 ` David Miller
2012-02-13 5:51 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Roopa Prabhu @ 2012-02-12 9:13 UTC (permalink / raw)
To: netdev, davem
Please apply this patch on top of recently submitted "enic: Fix address
deregistration for sriov vf during port profile disassociate" patch. Thanks.
On 2/12/12 12:12 AM, "Roopa Prabhu" <roprabhu@cisco.com> wrote:
> From: Roopa Prabhu <roprabhu@cisco.com>
>
> This patch removes random mac assignment on vf's. The vf's will start with
> a zero mac and with upcoming support in fw/driver, a vf mac can be set
> via the pf. vf's also support ndo_set_mac_address. This decision was made
> based on the fact that a random mac on a vf is not really needed. And this
> will reduce some of the problems with the vf's getting a new mac on
> every driver load/unload (one of them being udev renaming the device on ever
> load/unload and reboot).
>
> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
> Signed-off-by: Christian Benvenuti <benve@cisco.com>
> Signed-off-by: sujith sankar <ssujith@cisco.com>
> Signed-off-by: ChingWei Chang <cwchang@cisco.com>
> ---
> drivers/net/ethernet/cisco/enic/enic.h | 2 +-
> drivers/net/ethernet/cisco/enic/enic_main.c | 5 -----
> 2 files changed, 1 insertions(+), 6 deletions(-)
>
>
> diff --git a/drivers/net/ethernet/cisco/enic/enic.h
> b/drivers/net/ethernet/cisco/enic/enic.h
> index e65d431..f7c3067 100644
> --- a/drivers/net/ethernet/cisco/enic/enic.h
> +++ b/drivers/net/ethernet/cisco/enic/enic.h
> @@ -32,7 +32,7 @@
>
> #define DRV_NAME "enic"
> #define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
> -#define DRV_VERSION "2.1.1.34"
> +#define DRV_VERSION "2.1.1.35"
> #define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc"
>
> #define ENIC_BARS_MAX 6
> diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c
> b/drivers/net/ethernet/cisco/enic/enic_main.c
> index 2838891..dd7e24b 100644
> --- a/drivers/net/ethernet/cisco/enic/enic_main.c
> +++ b/drivers/net/ethernet/cisco/enic/enic_main.c
> @@ -2463,11 +2463,6 @@ static int __devinit enic_probe(struct pci_dev *pdev,
> enic->port_mtu = enic->config.mtu;
> (void)enic_change_mtu(netdev, enic->port_mtu);
>
> -#ifdef CONFIG_PCI_IOV
> - if (enic_is_sriov_vf(enic) && is_zero_ether_addr(enic->mac_addr))
> - random_ether_addr(enic->mac_addr);
> -#endif
> -
> err = enic_set_mac_addr(netdev, enic->mac_addr);
> if (err) {
> dev_err(dev, "Invalid MAC address, aborting\n");
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf
2012-02-12 9:13 ` Roopa Prabhu
@ 2012-02-12 22:00 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2012-02-12 22:00 UTC (permalink / raw)
To: roprabhu; +Cc: netdev
From: Roopa Prabhu <roprabhu@cisco.com>
Date: Sun, 12 Feb 2012 01:13:37 -0800
> Please apply this patch on top of recently submitted "enic: Fix
> address deregistration for sriov vf during port profile
> disassociate" patch. Thanks.
If you had properly numbered your patches, you wouldn't have to
explicitly specify stuff like this.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf
2012-02-12 8:12 [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf Roopa Prabhu
2012-02-12 9:13 ` Roopa Prabhu
@ 2012-02-13 5:51 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2012-02-13 5:51 UTC (permalink / raw)
To: roprabhu; +Cc: netdev
From: Roopa Prabhu <roprabhu@cisco.com>
Date: Sun, 12 Feb 2012 00:12:44 -0800
> From: Roopa Prabhu <roprabhu@cisco.com>
>
> This patch removes random mac assignment on vf's. The vf's will start with
> a zero mac and with upcoming support in fw/driver, a vf mac can be set
> via the pf. vf's also support ndo_set_mac_address. This decision was made
> based on the fact that a random mac on a vf is not really needed. And this
> will reduce some of the problems with the vf's getting a new mac on
> every driver load/unload (one of them being udev renaming the device on ever
> load/unload and reboot).
>
> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
> Signed-off-by: Christian Benvenuti <benve@cisco.com>
> Signed-off-by: sujith sankar <ssujith@cisco.com>
> Signed-off-by: ChingWei Chang <cwchang@cisco.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-13 5:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-12 8:12 [net-next-2.6 PATCH] enic: remove assignment of random mac on enic vf Roopa Prabhu
2012-02-12 9:13 ` Roopa Prabhu
2012-02-12 22:00 ` David Miller
2012-02-13 5:51 ` David Miller
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).