* [PATCH net-next v2] fec: Staticize fec_enet_select_queue()
@ 2014-09-19 17:59 Fabio Estevam
2014-09-19 18:55 ` Zhi Li
2014-09-22 20:16 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2014-09-19 17:59 UTC (permalink / raw)
To: davem; +Cc: Frank.Li, netdev, Fabio Estevam
fec_enet_select_queue() is only used locally, so mark it as 'static' to fix the
following sparse warning:
drivers/net/ethernet/freescale/fec_main.c:2707:5: warning: symbol 'fec_enet_select_queue' was not declared. Should it be static?
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- Make checkpatch happy
drivers/net/ethernet/freescale/fec_main.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 6e93336..2389dff 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -2704,8 +2704,9 @@ static int fec_set_features(struct net_device *netdev,
return 0;
}
-u16 fec_enet_select_queue(struct net_device *ndev, struct sk_buff *skb,
- void *accel_priv, select_queue_fallback_t fallback)
+static u16 fec_enet_select_queue(struct net_device *ndev, struct sk_buff *skb,
+ void *accel_priv,
+ select_queue_fallback_t fallback)
{
return skb_tx_hash(ndev, skb);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next v2] fec: Staticize fec_enet_select_queue()
2014-09-19 17:59 [PATCH net-next v2] fec: Staticize fec_enet_select_queue() Fabio Estevam
@ 2014-09-19 18:55 ` Zhi Li
2014-09-22 20:16 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Zhi Li @ 2014-09-19 18:55 UTC (permalink / raw)
To: Fabio Estevam
Cc: David Miller, Frank.Li@freescale.com, netdev@vger.kernel.org
On Fri, Sep 19, 2014 at 12:59 PM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:
> fec_enet_select_queue() is only used locally, so mark it as 'static' to fix the
> following sparse warning:
>
> drivers/net/ethernet/freescale/fec_main.c:2707:5: warning: symbol 'fec_enet_select_queue' was not declared. Should it be static?
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Frank Li <Frank.Li@freescale.com>
> ---
> Changes since v1:
> - Make checkpatch happy
>
> drivers/net/ethernet/freescale/fec_main.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
> index 6e93336..2389dff 100644
> --- a/drivers/net/ethernet/freescale/fec_main.c
> +++ b/drivers/net/ethernet/freescale/fec_main.c
> @@ -2704,8 +2704,9 @@ static int fec_set_features(struct net_device *netdev,
> return 0;
> }
>
> -u16 fec_enet_select_queue(struct net_device *ndev, struct sk_buff *skb,
> - void *accel_priv, select_queue_fallback_t fallback)
> +static u16 fec_enet_select_queue(struct net_device *ndev, struct sk_buff *skb,
> + void *accel_priv,
> + select_queue_fallback_t fallback)
> {
> return skb_tx_hash(ndev, skb);
> }
> --
> 1.9.1
>
> --
> 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] 3+ messages in thread* Re: [PATCH net-next v2] fec: Staticize fec_enet_select_queue()
2014-09-19 17:59 [PATCH net-next v2] fec: Staticize fec_enet_select_queue() Fabio Estevam
2014-09-19 18:55 ` Zhi Li
@ 2014-09-22 20:16 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2014-09-22 20:16 UTC (permalink / raw)
To: fabio.estevam; +Cc: Frank.Li, netdev
From: Fabio Estevam <fabio.estevam@freescale.com>
Date: Fri, 19 Sep 2014 14:59:34 -0300
> fec_enet_select_queue() is only used locally, so mark it as 'static' to fix the
> following sparse warning:
>
> drivers/net/ethernet/freescale/fec_main.c:2707:5: warning: symbol 'fec_enet_select_queue' was not declared. Should it be static?
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Changes since v1:
> - Make checkpatch happy
Please just delete this function.
It's overriding code which does exactly the same thing.
Actually, more precisely, this code is duplicating code in a way that
bypasses many core facilitites of the networking. For example, this
override means that socket based flow steering, XPS, etc. are all
not happening on these devices.
Without ->ndo_select_queue(), the flow dissector does __netdev_pick_tx
which is exactly what you want to happen.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-22 20:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-19 17:59 [PATCH net-next v2] fec: Staticize fec_enet_select_queue() Fabio Estevam
2014-09-19 18:55 ` Zhi Li
2014-09-22 20:16 ` 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).