From: Stephen Hemminger <shemminger@vyatta.com>
To: Amit Kumar Salecha <amit.salecha@qlogic.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org, dhananjay.phadke@qlogic.com
Subject: Re: [PATCHv2 NEXT 1/2] qlcnic: Qlogic ethernet driver for CNA devices
Date: Wed, 6 Jan 2010 11:16:55 -0800 [thread overview]
Message-ID: <20100106111655.207e7414@nehalam> (raw)
In-Reply-To: <1262777154-31982-2-git-send-email-amit.salecha@qlogic.com>
Questions:
* Are rings really so big that they need to be allocated with vmalloc()
rather than kmalloc()? vmalloc() space is restricted and use kmalloc()
if possible.
* Is there some documentation on bridge mode? controlling it via sysfs is
okay, but is there a more logical place?
* Do you need overhead of tx_clean_lock if you only call it from NAPI
context?
* crb_lock is setup as rwlock but you only use as writer;
also isn't this already covered by mem_lock?
* mem_lock could/should be mutex
can ioremap want to sleep?
Minor stuff:
* the following are only used in one file and should be static
init_module
cleanup_module
qlcnic_get_stats
qlcnic_set_mac
* Could qlcnic_process_cmd_ring be moved to qlcnic_main.c
and made static so gcc can inline
* strings can be const
qlcnic_driver_name, qlcnic_driver_string
* other things that can be const
pci_device table
diag_registers
qlcnic_config_rss::key
fw_name
msi_tgt_status
legacy_intr?
* why does diag_register[] use sentinel rather than ARRAY_SIZE()
* no need for static inline (let compiler decide)
qlnic_update_cmd_consumer
* get_brd_name_by_type
why is this an inline, it is not in fast path
just move to qlcnic_main.c
name can be const char *
* inconsistent use of extern
+int qlcnic_get_flash_mac_addr(struct qlcnic_adapter *adapter, __le64 *mac);
+int qlcnic_p3_get_mac_addr(struct qlcnic_adapter *adapter, __le64 *mac);
+extern void qlcnic_change_ringparam(struct qlcnic_adapter *adapter);
+extern int qlcnic_rom_fast_read(struct qlcnic_adapter *adapter, int addr,
+ int *valp);
* Polling should be aligned to safe power (see round_jiffies)
--
next prev parent reply other threads:[~2010-01-06 19:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-06 11:25 [PATCHv2 NEXT 0/2]qlcnic: Add Qlogic ethernet driver for CNA devices Amit Kumar Salecha
2010-01-06 11:25 ` [PATCHv2 NEXT 1/2] qlcnic: " Amit Kumar Salecha
2010-01-06 19:16 ` Stephen Hemminger [this message]
2010-01-07 11:38 ` Amit Salecha
2010-01-07 18:40 ` Dhananjay Phadke
2010-01-06 11:25 ` [PATCHv2 NEXT 2/2] NET: Add " Amit Kumar Salecha
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=20100106111655.207e7414@nehalam \
--to=shemminger@vyatta.com \
--cc=amit.salecha@qlogic.com \
--cc=davem@davemloft.net \
--cc=dhananjay.phadke@qlogic.com \
--cc=netdev@vger.kernel.org \
/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