[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 4 Apr 2011 14:27:13 -0700
From: "Rose, Gregory V" <gregory.v.rose@...el.com>
To: Stephen Hemminger <shemminger@...tta.com>,
"David S. Miller" <davem@...emloft.net>,
Ben Hutchings <bhutchings@...arflare.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"Allan, Bruce W" <bruce.w.allan@...el.com>,
"Wyborny, Carolyn" <carolyn.wyborny@...el.com>,
"Skidmore, Donald C" <donald.c.skidmore@...el.com>,
"Ronciak, John" <john.ronciak@...el.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH net-next-2.6 07/12] igbvf: remove bogus phys_id
> -----Original Message-----
> From: netdev-owner@...r.kernel.org [mailto:netdev-owner@...r.kernel.org]
> On Behalf Of Stephen Hemminger
> Sent: Monday, April 04, 2011 11:44 AM
> To: David S. Miller; Ben Hutchings; Kirsher, Jeffrey T; Brandeburg, Jesse;
> Allan, Bruce W; Wyborny, Carolyn; Skidmore, Donald C; Ronciak, John
> Cc: netdev@...r.kernel.org
> Subject: [PATCH net-next-2.6 07/12] igbvf: remove bogus phys_id
>
> This device lies about supporting phys_id. Remove it and just
> let the upper layer report not supported.
>
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
>
> --- a/drivers/net/igbvf/ethtool.c 2011-04-04 11:15:50.477019338 -0700
> +++ b/drivers/net/igbvf/ethtool.c 2011-04-04 11:16:12.661202774 -0700
> @@ -391,11 +391,6 @@ static int igbvf_set_wol(struct net_devi
> return -EOPNOTSUPP;
> }
>
> -static int igbvf_phys_id(struct net_device *netdev, u32 data)
> -{
> - return 0;
> -}
> -
> static int igbvf_get_coalesce(struct net_device *netdev,
> struct ethtool_coalesce *ec)
> {
> @@ -527,7 +522,6 @@ static const struct ethtool_ops igbvf_et
> .self_test = igbvf_diag_test,
> .get_sset_count = igbvf_get_sset_count,
> .get_strings = igbvf_get_strings,
> - .phys_id = igbvf_phys_id,
> .get_ethtool_stats = igbvf_get_ethtool_stats,
> .get_coalesce = igbvf_get_coalesce,
> .set_coalesce = igbvf_set_coalesce,
I would just like to note that many virtual devices lie about their underlying capabilities. Many systems report having an Realtek adapter when in fact they don't. I'm agnostic about this change but at one time I had an internal bug report because my VF driver *didn't* report phys_id. I'll keep this email around if my tester writes up a big for me.
Regards,
- Greg
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists