All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: "Park, Kyeyoon" <kyeyoonp@qca.qualcomm.com>
Cc: "johannes@sipsolutions.net" <johannes@sipsolutions.net>,
	"Malinen, Jouni" <jouni@qca.qualcomm.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC] cfg80211/mac80211: Add support for Proxy ARP
Date: Mon, 19 May 2014 08:58:22 -0700	[thread overview]
Message-ID: <537A2A1E.2040402@candelatech.com> (raw)
In-Reply-To: <E3DE377D7E4999489B304A8FF33FC0D103A211C0@nasanexd01g.na.qualcomm.com>

On 05/16/2014 04:04 PM, Park, Kyeyoon wrote:
> Hi Ben,
> 
>>> +#define STA_IPV4_HASH_SIZE 32
>>> +#define STA_IPV4_HASH(ipv4) (((u8 *)&ipv4)[3] & 0x1F)
>>
>> This should be a better hash I think.  Use an existing hash
>> method or at least mix in the higher bits manually?
> 
> I assume that there is an existing IP address hash function
> somewhere in the TCP/IP stack. I have a hard time finding
> an externally available API that does this for me. Could you
> point me to it?

Maybe jhash_1word?

Thanks,
Ben



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


  reply	other threads:[~2014-05-19 15:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-15 19:06 [RFC] cfg80211/mac80211: Add support for Proxy ARP Kyeyoon Park
2014-05-15 19:32 ` Ben Greear
2014-05-16 23:04   ` Park, Kyeyoon
2014-05-19 15:58     ` Ben Greear [this message]
2014-05-16  9:16 ` Johannes Berg
2014-05-16 22:49   ` Park, Kyeyoon
2014-06-04 11:47     ` Johannes Berg
2014-06-04 13:42       ` Jouni Malinen
2014-06-04 13:46         ` Johannes Berg
2014-06-04 15:21           ` Luis R. Rodriguez
2018-02-16 12:53 ` Ujjal Roy

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=537A2A1E.2040402@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=jouni@qca.qualcomm.com \
    --cc=kyeyoonp@qca.qualcomm.com \
    --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.