All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Adrian Chadd <adrian@freebsd.org>
Cc: ath10k <ath10k@lists.infradead.org>
Subject: Re: Why does the driver configure only 2 keys per peer?
Date: Sat, 19 Mar 2016 08:42:58 -0700	[thread overview]
Message-ID: <56ED7382.4030107@candelatech.com> (raw)
In-Reply-To: <CAJ-Vmo=C2Y+E4kELzHaAEYtxa3YZyy84cctvo+Rj_ndk1ixznQ@mail.gmail.com>

No, the hardware can handle plenty of slots...looks to me like no one
actually tested to the configured limits and/or they got lucky while
testing.  As long as it is possible for user-space to (temporarily?)
configure 4 keys per peer, then the firmware can assert.  I'll just
increase the keys per peer.  Uses a bit more firmware memory, but
better than crashing.

Thanks,
Ben

On 03/18/2016 08:25 PM, Adrian Chadd wrote:
> I'm guessing it's because there were customers who er, "needed" more
> STAs, and there's only a fixed number of hardware slots in the MAC.
>
>
> -a
>
>
> On 18 March 2016 at 13:25, Ben Greear <greearb@candelatech.com> wrote:
>> For instance:
>>
>> #define TARGET_10_4_NUM_PEER_KEYS               2
>>
>> But, there are 4 key-ids, and so the driver can attempt to allocate 3 per
>> peer.
>>
>> Now, the self-peer probably only has one key ever (and that is blank key),
>> but that still averages to 5 per vdev (when vdev has 2 peers), and if AP
>> peers can have more than 2
>> keys, then the average is even worse for them.
>>
>> In 10.1, I ended up using '4' instead of 2.
>>
>> I guess I'm about to repeat that change for 10.4 firmware.
>>
>> But, I'm curious why someone thought 2 was OK to begin with?
>>
>> Thanks,
>> Ben
>>
>> --
>> Ben Greear <greearb@candelatech.com>
>> Candela Technologies Inc  http://www.candelatech.com
>>
>>
>> _______________________________________________
>> ath10k mailing list
>> ath10k@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath10k
>

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

      parent reply	other threads:[~2016-03-19 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 20:25 Why does the driver configure only 2 keys per peer? Ben Greear
     [not found] ` <CAJ-Vmo=C2Y+E4kELzHaAEYtxa3YZyy84cctvo+Rj_ndk1ixznQ@mail.gmail.com>
2016-03-19 15:42   ` Ben Greear [this message]

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=56ED7382.4030107@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=adrian@freebsd.org \
    --cc=ath10k@lists.infradead.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.