Ben Greear wrote:
Hello!

I got my chelsio NICs in a machine running 2.6.15 + my hacks
today and started playing with it...

I noticed one immediate problem with pktgen, and fixed my pktgen to
respect the hard-header-len that the chelsio driver reports.  My
pktgen doesn't track mainline very well, but the change is to do
something like this in the fill_packet method:

    int rsrv = (odev->hard_header_len + 16) & ~0xF;
....

    skb = alloc_skb(info->cur_pkt_size + 64 + rsrv, GFP_ATOMIC);
....

    /* Make some extra space, align on 16-byte boundary
     * (helps Chelsio)  Used to be just a default 16 for
     * everyone...
     */
    skb_reserve(skb, rsrv);


I do notice something strange though:  If I use the pktgens multi-pkt
feature, the duplicate packets are never actually sent!!!

Well, to answer myself:  I found the problem.  Pktgen's multi-skb
trick only works if the device makes no change to the skb.  But, the
cxgb driver pushes a header on the front of the skb...

So, you just can't use the multi-skb pktgen option with this driver...

Ben

--
Ben Greear <[EMAIL PROTECTED]>
Candela Technologies Inc  http://www.candelatech.com

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to