From owner-freebsd-net@freebsd.org Tue Mar 27 08:22:02 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C778CF5DCE7 for ; Tue, 27 Mar 2018 08:22:02 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CB75756E5 for ; Tue, 27 Mar 2018 08:22:02 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-qt0-x22c.google.com with SMTP id c23so4177674qtj.5 for ; Tue, 27 Mar 2018 01:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7r7B7lya6nh1l2debO+dF3pXJfATDdAoma9wyTK0UgI=; b=oxGbl+TBWkzABD0Sg0dLfypMPp7pJ2MSokN9jVucMKUSExLnBhE4Atbe1mJVxgJy9G J8UaXfhQqKCPCwVCUTV2H56IGbQSxUKzFna69Wr0w73ZcMg+pHdiVLkOW9SnyBPo8b4n wQkVMPpX7t3Y+bTGHBUWMm0SsX4CWBLFrzc5xFMB74Yu+NappZ/aFTE/+HoP125DsTet zP+N+jZwyOQ4ADSRxAkOugk5vSur29+6dpXF9RpYF7+ufkxJioyiqIt7uOXskd9dwFQy cU+fl6j+yxOOTinKxyvlH/UX5hFNb4Dm3HoNwhaUz3DkPiyKH5IzGJlzduSkw9OmNi47 eGKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7r7B7lya6nh1l2debO+dF3pXJfATDdAoma9wyTK0UgI=; b=okRSyBfB4VuqULRZZZr3zTLaC1VRBd+9e77cHva2uy7jLjSRoZRhfRPvl2H4vQkbR2 p0RKzHiMKuaQ8G2Il5oClKkNb1Mu6O/8iaCsoB3zdB0GNEZuzaFGFRC4aVwEuG+5p5FC 2d5RkZAExGUw91Yig2nT+wCuGwrWWjy9NOO6Z3wADYfWi9YPfzFdNirXgsp/wPSAyrvN BD2WeTEoMGztNimdWQK64CDvuW1PcZ2levybYFhw4oK1Dri6Dv34f/TKQb3Wd/D+HoPt xJ7D/H8IruqGQLX/gQ+UQDX4w380fPrChew8Fqdguk1oPyhqiGSoOZIJguqVxuSZvZAG pa1w== X-Gm-Message-State: AElRT7FlYPJ2q1HOyD6lY/lXnUvvKbryy3ZZccadwu6MLpvUR9BQUnfR ApN3WiRN0n+vdf2L7Etu0+PINMfobyVNYTiVKSU= X-Google-Smtp-Source: AIpwx4/MrrxBRAzvlgxj3rZhaTMb034Ts95R7QUVuo4ZTBxJaV6RitmwHvlPqqLoX5r0h03UjABVDKzA09qZ1CN8fm0= X-Received: by 10.200.68.85 with SMTP id m21mr11739645qtn.49.1522138921767; Tue, 27 Mar 2018 01:22:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.195.204 with HTTP; Tue, 27 Mar 2018 01:22:01 -0700 (PDT) In-Reply-To: References: <5AAC49BE.3030508@cox.net> <5AAC4A96.1040107@cox.net> <5AB01439.3090003@cox.net> <5AB166DC.8060708@cox.net> From: Vincenzo Maffione Date: Tue, 27 Mar 2018 10:22:01 +0200 Message-ID: Subject: Re: netmap ixgbevf mtu To: Joe Buehler Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 08:22:03 -0000 Hi, This commit (fe13476b106ed1f4b517b1590e1dfb3f268b6e78) in the upstream netmap should have fixed the NS_MOREFRAG issue for ixgbe. If you happen give a try let us know. Cheers, Vincenzo 2018-03-21 21:40 GMT+01:00 Vincenzo Maffione : > I see. Unfortunately this breaks the API, so I don't think we can accept > it. > We should probably sum up the fragment lengths, remember which one was the > first descriptor and write the olinfo field when we process the last > descriptor ... > I hope this does not slow down the simpler case where NS_MOREFRAG is not > used. > > In any, case we should move this discussion to the github, if possible (so > that the issue gets tracked). > > Cheers, > Vincenzo > > 2018-03-20 20:54 GMT+01:00 Joe Buehler : > >> Attached is a patch that allows fragmented TX with the ixgbevf driver. >> >> For the first TX buffer set the slot length to the full length of the >> frame and make sure that the slot buffer is fully filled. For succeeding >> slots just set the length to the amount of the buffer filled. >> >> Not intended as the perfect solution but it works fine for my situation. >> >> Joe Buehler >> >> > > > -- > Vincenzo Maffione > -- Vincenzo Maffione