On 08/28/2014 02:36 PM, Christian Kreibich wrote:
> Hey Alex,
> 
> On 08/28/2014 08:48 AM, Alexander Duyck wrote:
>> Last I knew tcpreplay doesn't request any checksum offloading.  It just
>> replays the packets as they are.
> 
> Yep, I think I need to teach my tcpreplay a few tricks. How would I go
> about requesting checksum offloading? Is there an API, a socket option,
> or do I perhaps just set the checksums to zero?
> 
> Thanks!
> -C.
> 

The problem is you would need to be sending the data though a socket
type that can actually request a checksum offload.  So for example if
you were actually sending the data through a TCP socket then it can
request such an offload.

If you are just needing a capture with correct checksums you might
consider disabling the TSO, GRO, LRO, and Tx checksum offloads prior to
capturing the trace.  This way the software stack should generate the
checksums prior to sending the frames.

Thanks,

Alex

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to