From: Stephen Hemminger <shemminger@vyatta.com>
To: Ron Mercer <ron.mercer@qlogic.com>
Cc: jeff@garzik.org, netdev@vger.kernel.org, linux-driver@qlogic.com,
ron.mercer@qlogic.com
Subject: Re: [PATCH 6/7] [RFC] qlge: New Driver: Add ethtool source file qlge_ethtool.c
Date: Fri, 29 Aug 2008 14:22:25 -0700 [thread overview]
Message-ID: <20080829142225.48cef2fd@extreme> (raw)
In-Reply-To: <1220044102828-git-send-email-ron.mercer@qlogic.com>
> +static struct ethtool_ops qlge_ethtool_ops = {
Should be const in recent kernels
> + .get_drvinfo = ql_get_drvinfo,
> + .get_msglevel = ql_get_msglevel,
> + .set_msglevel = ql_set_msglevel,
> + .get_rx_csum = ql_get_rx_csum,
> + .set_rx_csum = ql_set_rx_csum,
> + .get_tx_csum = ethtool_op_get_tx_csum,
> + .get_sg = ethtool_op_get_sg,
> + .set_sg = ethtool_op_set_sg,
> + .get_tso = ethtool_op_get_tso,
> + .set_tso = ql_set_tso,
> + .get_coalesce = ql_get_coalesce,
> + .set_coalesce = ql_set_coalesce,
> + .get_sset_count = ql_get_sset_count,
> + .get_strings = ql_get_strings,
> + .get_ethtool_stats = ql_get_ethtool_stats,
> +};
> +
> +void ql_set_ethtool_ops(struct net_device *ndev)
> +{
> + SET_ETHTOOL_OPS(ndev, &qlge_ethtool_ops);
> +}
This function is useless overhead that only happens
because you made qlge_ethtool_ops static, just make it
global and call SET_ETHTOOL_OPS over in the setup code.
next prev parent reply other threads:[~2008-08-29 21:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 21:06 [PATCH 0/7][RFC] qlge: New Qlogic 10Gb Ethernet Driver Ron Mercer
2008-08-29 21:08 ` [PATCH 1/7] [RFC] qlge: New Driver: Makefile and Kconfig changes Ron Mercer
2008-08-29 21:08 ` [PATCH 2/7] [RFC] qlge: New Driver: Added Makefile Ron Mercer
2008-08-29 21:08 ` [PATCH 3/7] [RFC] qlge: New Driver: Add header file qlge.h Ron Mercer
2008-08-29 21:08 ` [PATCH 4/7] [RFC] qlge: New Driver: Add main source file qlge_main.c Ron Mercer
2008-08-29 21:08 ` [PATCH 5/7] [RFC] qlge: New Driver: Add Mgmt Port Xface file qlge_mpi.c Ron Mercer
2008-08-29 21:08 ` [PATCH 6/7] [RFC] qlge: New Driver: Add ethtool source file qlge_ethtool.c Ron Mercer
2008-08-29 21:20 ` Stephen Hemminger
2008-08-29 21:22 ` Stephen Hemminger [this message]
2008-08-29 21:08 ` [PATCH 7/7] [RFC] qlge: New Driver: Add debug source file qlge_dbg.c Ron Mercer
2008-08-29 21:23 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080829142225.48cef2fd@extreme \
--to=shemminger@vyatta.com \
--cc=jeff@garzik.org \
--cc=linux-driver@qlogic.com \
--cc=netdev@vger.kernel.org \
--cc=ron.mercer@qlogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).