Search Linux Wireless

Re: [PATCH] rt2x00mac: In error case stop netdev queue, free skb and return NETDEV_TX_OK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-07-23 at 18:22 +0200, Ivo van Doorn wrote:
> On Wednesday 23 July 2008, Daniel Wagner wrote:
> > It is not allowed to use NETDEV_TX_BUSY in tx path anymore.
> 
> If not, then why is mac80211 checking and handling the return value
> and is tx() still a function returning an int. mac80211 is actually requeueing
> the frame when the hardware fails to send it, so why should that be completely blocked?

Well, we want to remove that code from mac80211 because it's horribly
ugly. But yes, if you stop queues it _should_ work.

> >  		WARNING(rt2x00dev, "Failed to create RTS/CTS frame.\n");
> > -		return NETDEV_TX_BUSY;
> > +		return -1;
> 
> I am kind of missing the point here, this patch seems to come down to:
> 	We can't return TX_BUSY so we return a random other value

Yeah that's fishy. But I think this error code is just in this rts/cts
function and getting handled in ->tx()

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux