From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211-hwsim: Don't enqueue pkts that do not want txstatus.
Date: Tue, 24 Feb 2015 06:28:04 -0800 [thread overview]
Message-ID: <54EC8A74.2080700@candelatech.com> (raw)
In-Reply-To: <1424772854.2192.19.camel@sipsolutions.net>
On 02/24/2015 02:14 AM, Johannes Berg wrote:
> On Mon, 2015-02-23 at 09:38 -0800, Ben Greear wrote:
>
>>> This doesn't really seem right - essentially it means that whatever you
>>> just gave to userspace is now completely useless?
>>>
>>> It seems skb_orphan() could/should be put here.
>>
>> I don't understand your complaint, why is what I gave to user-space useless?
>
> userspace is supposed to give back the SKB pointer as a cookie when it
> reports whether or not it was transmitted correctly, and then we will
> free the SKB afterwards.
If there is no status to return, then why would user-space call back at all?
Should user-space *always* return a status even when not requested to?
Thanks,
Ben
> Note that I also just merged a patch from Bob in this area.
>
>> If we just orphan them, does that clean up the skb memory properly?
>
> No, of course not, but it removes it from socket accounting. This may be
> what you want, although I'm not really sure it's the right thing to do
> since it would make this behave differently than other drivers which
> also don't orphan the SKB (and shouldn't - you can consider the SKB on
> this queue as being on the HW DMA queue where it should still be
> accounted for correctly)
>
> I think perhaps you just want Bob's patch to fix the case of too slow
> userspace.
>
>> If not, what eventually frees the skb?
>
> The tx status path does.
>
> johannes
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2015-02-24 14:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-10 18:25 [PATCH] mac80211-hwsim: Don't enqueue pkts that do not want txstatus greearb
2015-02-23 16:08 ` Johannes Berg
2015-02-23 17:38 ` Ben Greear
2015-02-24 10:14 ` Johannes Berg
2015-02-24 14:28 ` Ben Greear [this message]
2015-02-24 14:34 ` Johannes Berg
2015-02-24 14:38 ` Ben Greear
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54EC8A74.2080700@candelatech.com \
--to=greearb@candelatech.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.