On 11/16/2015 09:02 PM, Tom Herbert wrote:
On Mon, Nov 16, 2015 at 4:20 PM, Ben Greear wrote:
Hello!
I'm hacking on (my already hacked) pktgen, trying to get it to send TCP
frames.
And, having issues getting checksums to work properly.
I'm trying this:
struct iphdr *iph = ip_hdr(skb
On 11/17/2015 07:32 PM, Ben Greear wrote:
On 11/17/2015 10:26 AM, Eric Dumazet wrote:
On Tue, 2015-11-17 at 09:44 -0800, Ben Greear wrote:
And in case it helps, here is the output from dmesg.
This is an Ethernet frame, and in this case csum-start is the
index of the first byte of the TCP head
From: Eric Dumazet
Date: Tue, 17 Nov 2015 10:26:47 -0800
> Anyway, just use trafgen and get ~6 Mpps, more easily than with
> pktgen.
+1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.k
On 11/17/2015 10:26 AM, Eric Dumazet wrote:
On Tue, 2015-11-17 at 09:44 -0800, Ben Greear wrote:
And in case it helps, here is the output from dmesg.
This is an Ethernet frame, and in this case csum-start is the
index of the first byte of the TCP header as far as I can tell.
[64967.194251] ch
On Tue, 2015-11-17 at 09:44 -0800, Ben Greear wrote:
> And in case it helps, here is the output from dmesg.
>
> This is an Ethernet frame, and in this case csum-start is the
> index of the first byte of the TCP header as far as I can tell.
>
> [64967.194251] check: 0xf51b csum-start: 34 offset
On 11/16/2015 09:02 PM, Tom Herbert wrote:
On Mon, Nov 16, 2015 at 4:20 PM, Ben Greear wrote:
Hello!
I'm hacking on (my already hacked) pktgen, trying to get it to send TCP
frames.
And, having issues getting checksums to work properly.
I'm trying this:
struct iphdr *iph = ip_hdr(skb
On 11/16/2015 09:02 PM, Tom Herbert wrote:
On Mon, Nov 16, 2015 at 4:20 PM, Ben Greear wrote:
Hello!
I'm hacking on (my already hacked) pktgen, trying to get it to send TCP
frames.
And, having issues getting checksums to work properly.
I'm trying this:
struct iphdr *iph = ip_hdr(skb
On Mon, 2015-11-16 at 21:02 -0800, Tom Herbert wrote:
> It's really hard to tell what is happening without seeing the full
> patch your using. Maybe you're not setting the TCP correctly or
> transport header is not set right in skb.
BTW, using trafgen from netsniff-ng would save you Ben lots of
h
On Mon, Nov 16, 2015 at 4:20 PM, Ben Greear wrote:
> Hello!
>
> I'm hacking on (my already hacked) pktgen, trying to get it to send TCP
> frames.
>
> And, having issues getting checksums to work properly.
>
> I'm trying this:
> struct iphdr *iph = ip_hdr(skb);
> struct net_device *