From: "ravinandan arakali" <ravinandan.arakali@s2io.com>
To: "'Jeff Garzik'" <jgarzik@pobox.com>, <raghavendra.koushik@wipro.com>
Cc: <leonid.grossman@s2io.com>, <netdev@oss.sgi.com>,
<raghavendra.koushik@s2io.com>
Subject: RE: Submission for S2io 10GbE driver
Date: Thu, 19 Feb 2004 18:33:35 -0800 [thread overview]
Message-ID: <002701c3f759$f14dbea0$8e10100a@S2IOtech.com> (raw)
In-Reply-To: <40347076.8030105@pobox.com>
Hi Jeff,
For #7, the temporary variable tmp_v_addr is assigned as follows
(immediately below the code you have quoted):
nic->rx_blocks[i][j].block_virt_addr = tmp_v_addr;
In the freeSharedMem() routine, we go thru' each block of each
receive ring and free it. Following is the relevant piece of
code:
for (i = 0; i < config->RxRingNum; i++) {
blk_cnt = nic->block_count[i];
for (j = 0; j < blk_cnt; j++) {
tmp_v_addr = nic->rx_blocks[i][j].block_virt_addr;
tmp_p_addr = nic->rx_blocks[i][j].block_dma_addr;
pci_free_consistent(nic->pdev, size, tmp_v_addr, tmp_p_addr);
}
}
But I guess in the above piece of code, it may be a good idea to
check if nic->rx_blocks[i][j].block_virt_addr is non-NULL before
doing the pci_free_consistent().
Thanks,
Ravi
-----Original Message-----
From: Jeff Garzik [mailto:jgarzik@pobox.com]
Sent: Thursday, February 19, 2004 12:15 AM
To: raghavendra.koushik@wipro.com
Cc: leonid.grossman@s2io.com; netdev@oss.sgi.com;
raghavendra.koushik@s2io.com; ravinandan.arakali@s2io.com
Subject: Re: Submission for S2io 10GbE driver
raghavendra.koushik@wipro.com wrote:
> Hi Jeff,
>
> 1. points 7 and 8, when initSharedMem returns error, I call
> freeSharedMem which should free any partially alloced memory.
For #8 quite possibly, and if so, I stand corrected.
For #7, it's a temporary variable so this would be impossible.
> 2. For point 17 and 33
> We do support IPV6 checksum offload. There is one issue though,
> our hardware only says whether the checksum is Ok or not it does
> not actually return the checksum values!
[...]
> If I say features as NETIF_F_IP_CSUM instead of NETIF_F_HW_CSUM,
> then I cannot utilize it's entire gamut of checksum offload feature
> as the offload will be limited to just TCP/UDP over IPV4.
Correct. Your hardware cannot utilize NETIF_F_HW_CSUM. You must be
able to supply a valid csum from hardware, to use NETIF_F_HW_CSUM.
Using NETIF_F_HW_CSUM as s2io does is abuse of the API, and prone to
breakage...
For the future, it sounds like you should create a NETIF_F_IPV6_CSUM
that works for both IPv4 and IPv6, and more closely matches your
hardware. We need to do this anyway, because most future cards will
almost certainly offload IPv6 as well as IPv4.
For the present, NETIF_F_IP_CSUM is unfortunately your only choice.
Zero-copy only occurs for sendfile(2) system call, which works fine with
NETIF_F_IP_CSUM, so no big deal.
In general, I certainly want to encourage s2io to participate in adding
features to Linux that is needed to more fully utilize the hardware.
Some of the proposed features might not be appropriate, but adding
NETIF_F_IPV6_CSUM for you guys certainly seems reasonable.
Jeff
next prev parent reply other threads:[~2004-02-20 2:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-19 7:16 Submission for S2io 10GbE driver raghavendra.koushik
2004-02-19 8:14 ` Jeff Garzik
2004-02-20 2:33 ` ravinandan arakali [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-25 6:03 raghavendra.koushik
2004-02-26 7:40 ` Jeff Garzik
[not found] <403573B5.4050100@pobox.com>
2004-02-20 2:59 ` ravinandan arakali
2004-02-20 3:30 ` Jeff Garzik
2004-02-05 0:49 FW: " Grant Grundler
2004-02-16 21:16 ` Leonid Grossman
2004-02-16 22:12 ` Jeff Garzik
2004-02-16 23:53 ` Leonid Grossman
2004-02-17 0:11 ` Christoph Hellwig
2004-02-17 0:16 ` Stephen Hemminger
2004-01-23 21:22 FW: " Leonid Grossman
2004-01-23 21:54 ` Stephen Hemminger
2004-01-23 21:58 ` Leonid Grossman
2004-01-23 22:22 ` FW: " Andi Kleen
2004-01-24 0:21 ` Stephen Hemminger
2004-01-27 5:32 ` Leonid Grossman
2004-01-27 6:08 ` Jeff Garzik
2004-01-27 6:19 ` Leonid Grossman
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='002701c3f759$f14dbea0$8e10100a@S2IOtech.com' \
--to=ravinandan.arakali@s2io.com \
--cc=jgarzik@pobox.com \
--cc=leonid.grossman@s2io.com \
--cc=netdev@oss.sgi.com \
--cc=raghavendra.koushik@s2io.com \
--cc=raghavendra.koushik@wipro.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).