LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2012, 09:45 AM   #1
Lo Sfrek
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Question How can I force checksum off for a specific NIC since ethtool can't do it?


Hello everyone,
I'm working on a NetFPGA card, and what I'm currently trying to do is, amongst other things, checksum offload.
The code itself is quite simple, the point is I need to test it now... And the card does not support checksum offload by itself, so I can't just use ethtool.
Is there a way to "force" Linux not to perform checksum, since I already do it in hardware?
Or maybe the checksum is performed at driver level, so I should try to modify the card drivers?

Thanks in advance!
 
Old 03-14-2012, 03:20 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
If the card has no means to do checksum then the ONLY choice is to let the normal OS do it. You can't change that. It either has to be calculated on the nic or use the cpu to compute it.

Go out and get a quality NIC and one that has OEM linux support. I have found the Intel Pro line some of the good ones.

I find it almost impossible to believe that this device doesn't support the most common advanced features.

Over the years I have seen a few deals like that. A single card you buy once and use anywhere for almost any connection. Never seems to have caught on.

Last edited by jefro; 03-14-2012 at 03:26 PM.
 
Old 03-14-2012, 05:05 PM   #3
Lo Sfrek
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
If the card has no means to do checksum then the ONLY choice is to let the normal OS do it. You can't change that. It either has to be calculated on the nic or use the cpu to compute it.

Go out and get a quality NIC and one that has OEM linux support. I have found the Intel Pro line some of the good ones.

I find it almost impossible to believe that this device doesn't support the most common advanced features.

Over the years I have seen a few deals like that. A single card you buy once and use anywhere for almost any connection. Never seems to have caught on.
It seems I've not made myself clear, I'm sorry.
I'm working on a project that aims to implement on a netFPGA card a NIC with checksum offload features (and others). I'm starting from the built-in NIC reference project, but I work on hardware only, so I'll not touch the drivers (I'm very short on time for my work!)
The problem is the OS won't know the nic can do checksum offload (on incoming packets). So what I'm asking is a way to deactivate the OS checksum, since I already do it in hardware, but I can't tell him!
I hope it's clearer now
 
Old 03-15-2012, 04:20 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
OH.

I think then we need to investigate how a normal nic using offload tells the os that the checksum is OK.

On a normal system a nic that uses checksum, I think sends over a dummy number. The OS even knows it is a bad checksum on every packet. That is the case on say wireshark. But the OS never seems to care.

You not need to to anything.

The best place to ask might be the designers of the board. The many have seen this issue already.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force TCP traffic out over specific interface when IP is bound to another local NIC yeager Linux - Networking 7 08-17-2010 09:16 AM
How to force specific domain or user specific emails to proces in sendmail 8.13.5 FC5 peanutsa Linux - Newbie 1 03-22-2009 05:33 AM
Force specific refresh for specific resolution miner49er Linux - General 2 03-20-2009 02:36 AM
ethtool support for changing NIC parameters bhrugu Linux - Networking 1 09-08-2008 07:39 AM
ethtool can't seem to enable wake-on-LAN (wol) on my NIC bellsal Linux - Newbie 4 10-28-2007 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration