[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-net
Subject:    Re: ip_output()/if_output() behaviour
From:       Michael Tuexen <Michael.Tuexen () lurchi ! franken ! de>
Date:       2013-11-30 8:50:55
Message-ID: 41906339-8AE7-4444-8B84-6FC19D48B132 () lurchi ! franken ! de
[Download RAW message or body]

On Nov 29, 2013, at 11:39 PM, Adrian Chadd <adrian@freebsd.org> wrote:

> +1
> 
> 
> On 29 November 2013 08:14, Julian Elischer <julian@freebsd.org> wrote:
> 
>>> ifnet(9) says:
>>> 
>>>            if_transmit()
>>>            Transmit a packet on an interface or queue it if the interface
>>> is
>>>            in use.  This function will return ENOBUFS if the devices
>>> software
>>>            and hardware queues are both full.  ...
>>> 
>>> So I guess returning ENOBUFS when the packet was queued is wrong...
>> 
>> I think it is.
>> 
>> ENOBUFS means "I couldn't proceed due to no buffers"
>> not "I used up the last one on this operation".
> 
> Yes, it's wrong. ENOBUFS means "couldn't queue; no buffers." Please
> provide a diff against igb and I'll make sure Jack/Intel get it into
> (his, freebsd) tree.
I sent the patch already yesterday to the list and Jack. It covers
em, igb and ixgbe.

Best regards
Michael
> 
> Thanks!
> 
> 
> 
> -adrian
> 

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic