linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless@vger.kernel.org
Cc: nbd@nbd.name, Johannes Berg <johannes.berg@intel.com>
Subject: Re: [PATCH 3/3] mac80211: fix VLAN handling with TXQs
Date: Mon, 21 Aug 2017 15:32:16 +0200	[thread overview]
Message-ID: <87378lvyfz.fsf@toke.dk> (raw)
In-Reply-To: <20170622102030.9795-3-johannes@sipsolutions.net>

Johannes Berg <johannes@sipsolutions.net> writes:

> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index b2b5419467cc..263cb30d77c8 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -919,21 +919,10 @@ struct ieee80211_tx_info {
>  				unsigned long jiffies;
>  			};
>  			/* NB: vif can be NULL for injected frames */
> -			union {
> -				/* NB: vif can be NULL for injected frames */
> -				struct ieee80211_vif *vif;
> -
> -				/* When packets are enqueued on txq it's easy
> -				 * to re-construct the vif pointer. There's no
> -				 * more space in tx_info so it can be used to
> -				 * store the necessary enqueue time for packet
> -				 * sojourn time computation.
> -				 */
> -				codel_time_t enqueue_time;
> -			};
> +			struct ieee80211_vif *vif;
>  			struct ieee80211_key_conf *hw_key;
>  			u32 flags;
> -			/* 4 bytes free */
> +			codel_time_t enqueue_time;

A side effect of this is that enqueue_time will be valid in the driver;
which is good as far as I'm concerned (I've been thinking about using it
to make decisions about when to stop retrying a frame).

If we want to save the four bytes, is there any reason we can't just
change the codel code to use skb->tstamp instead?

-Toke

  reply	other threads:[~2017-08-21 13:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-22 10:20 [PATCH 1/3] mac80211: agg-tx: call drv_wake_tx_queue in proper context Johannes Berg
2017-06-22 10:20 ` [PATCH 2/3] mac80211: avoid allocating TXQs that won't be used Johannes Berg
2017-06-22 10:20 ` [PATCH 3/3] mac80211: fix VLAN handling with TXQs Johannes Berg
2017-08-21 13:32   ` Toke Høiland-Jørgensen [this message]
2017-09-04  9:33     ` Johannes Berg
2017-09-04 14:23       ` Toke Høiland-Jørgensen
2017-09-05  6:58         ` Johannes Berg
2017-09-05  9:02           ` Toke Høiland-Jørgensen
2017-09-05  9:18             ` Johannes Berg
2017-09-05  9:49               ` Toke Høiland-Jørgensen
2017-09-05  9:54                 ` Johannes Berg
2017-09-05 10:16                   ` Toke Høiland-Jørgensen

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=87378lvyfz.fsf@toke.dk \
    --to=toke@toke.dk \
    --cc=johannes.berg@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nbd@nbd.name \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).